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
This commit is contained in:
Jiri Malak 2024-07-15 18:45:49 +02:00 committed by Kenneth J Davis
parent 4a1fd57f3a
commit db43a4b343
3 changed files with 5 additions and 3 deletions

View File

@ -21,7 +21,7 @@ extern struct WinStartupInfo winStartupInfo;
#if defined __GNUC__ #if defined __GNUC__
extern UWORD winseg1, winseg2, winseg3; extern UWORD winseg1, winseg2, winseg3;
extern UBYTE markEndInstanceData; extern UBYTE markEndInstanceData;
extern struct lol ASM FAR DATASTART; extern struct lol FAR ASM DATASTART;
#endif #endif

View File

@ -261,7 +261,7 @@ extern struct lol FAR *LoL;
extern struct dhdr DOSTEXTFAR ASM blk_dev; /* Block device (Disk) driver */ extern struct dhdr DOSTEXTFAR ASM blk_dev; /* Block device (Disk) driver */
extern struct buffer FAR *DOSFAR firstAvailableBuf; /* first 'available' buffer */ extern struct buffer FAR *DOSFAR firstAvailableBuf; /* first 'available' buffer */
extern struct lol ASM FAR DATASTART; extern struct lol FAR ASM DATASTART;
extern BYTE DOSFAR ASM _HMATextAvailable; /* first byte of available CODE area */ extern BYTE DOSFAR ASM _HMATextAvailable; /* first byte of available CODE area */
extern BYTE FAR ASM _HMATextStart[]; /* first byte of HMAable CODE area */ extern BYTE FAR ASM _HMATextStart[]; /* first byte of HMAable CODE area */

View File

@ -1914,7 +1914,9 @@ struct int2f12regs {
UWORD callerARG1; /* used if called from INT2F/12 */ UWORD callerARG1; /* used if called from INT2F/12 */
}; };
extern intvec ASM BIOSInt13, ASM UserInt13, ASM BIOSInt19; extern intvec FAR ASM BIOSInt13;
extern intvec FAR ASM UserInt13;
extern intvec FAR ASM BIOSInt19;
/* WARNING: modifications in `r' are used outside of int2F_12_handler() /* WARNING: modifications in `r' are used outside of int2F_12_handler()