mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-12 22:14:25 +02:00
Solve bug report 31919, by avoiding SEG reloaction in tiny model
git-svn-id: trunk@36437 -
This commit is contained in:
parent
d3d29fa84c
commit
e06f1f89ef
@ -179,7 +179,13 @@ Procedure SysInitFPU;
|
|||||||
mov dx,es
|
mov dx,es
|
||||||
mov word [prevInt06+2],dx
|
mov word [prevInt06+2],dx
|
||||||
{ Install local interrupt 06 handler }
|
{ Install local interrupt 06 handler }
|
||||||
|
{$ifdef FPC_MM_TINY}
|
||||||
|
{ Do not use SEG here, as this introduces a relocation that
|
||||||
|
is incompatible with COM executable generation }
|
||||||
|
mov dx, cs
|
||||||
|
{$else FPC_MM_TINY}
|
||||||
mov dx, SEG InterceptInvalidInstruction
|
mov dx, SEG InterceptInvalidInstruction
|
||||||
|
{$endif FPC_MM_TINY}
|
||||||
mov ds, dx
|
mov ds, dx
|
||||||
mov dx, Offset InterceptInvalidInstruction
|
mov dx, Offset InterceptInvalidInstruction
|
||||||
mov ax, $2506
|
mov ax, $2506
|
||||||
|
Loading…
Reference in New Issue
Block a user