The unification dropped a bunch of bits 16/bits 32 that are needed to
make things work. Add those back where needed.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
com32_exit:
mov bx,.rm
jmp enter_rm
+
+ bits 16
.rm:
mov dword [PMESP],StackTop ; Stop use of COM32 stack
sti
;
; 16-bit intcall/farcall handling code
;
+ bits 16
+
com32_sys_rm:
pop gs
pop fs
mov cl,11 ; 44 bytes
rep movsd ; Copy register block
- add dword [word RealModeSSSP],54 ; Remove from stack
+ add word [word RealModeSSSP],54 ; Remove from stack
popad
popfd