Skip to content

Commit db43a4b

Browse files
jmalakPerditionC
authored andcommitted
far-fix: symbols BIOSInt13, UserInt13 and BIOSInt19 are far (in LGROUP)
these symbols are in LGROUP and generaly cannot be addressed by DGROUP:offset for Turbo C DGROUP offset overflow because symbols are too far to be addressed by DGROUP offset
1 parent 4a1fd57 commit db43a4b

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

hdr/win.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ extern struct WinStartupInfo winStartupInfo;
2121
#if defined __GNUC__
2222
extern UWORD winseg1, winseg2, winseg3;
2323
extern UBYTE markEndInstanceData;
24-
extern struct lol ASM FAR DATASTART;
24+
extern struct lol FAR ASM DATASTART;
2525
#endif
2626

2727

kernel/init-mod.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ extern struct lol FAR *LoL;
261261
extern struct dhdr DOSTEXTFAR ASM blk_dev; /* Block device (Disk) driver */
262262

263263
extern struct buffer FAR *DOSFAR firstAvailableBuf; /* first 'available' buffer */
264-
extern struct lol ASM FAR DATASTART;
264+
extern struct lol FAR ASM DATASTART;
265265

266266
extern BYTE DOSFAR ASM _HMATextAvailable; /* first byte of available CODE area */
267267
extern BYTE FAR ASM _HMATextStart[]; /* first byte of HMAable CODE area */

kernel/inthndlr.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1914,7 +1914,9 @@ struct int2f12regs {
19141914
UWORD callerARG1; /* used if called from INT2F/12 */
19151915
};
19161916

1917-
extern intvec ASM BIOSInt13, ASM UserInt13, ASM BIOSInt19;
1917+
extern intvec FAR ASM BIOSInt13;
1918+
extern intvec FAR ASM UserInt13;
1919+
extern intvec FAR ASM BIOSInt19;
19181920

19191921

19201922
/* WARNING: modifications in `r' are used outside of int2F_12_handler()

0 commit comments

Comments
 (0)