extern boot_mem_map_size
%include 'macros.inc'
-%define CON_SERIAL
[bits 16]
global _start
jmp exit
.notvm86:
+%ifdef BUG_WARNING
call warning ; issue a warning and allow the user to abort
+%endif
%ifdef CON_SERIAL
call setup_serial
str_enterpm db 'Entering 32bit protected mode ...',10,0
+%ifdef BUG_WARNING
; warns the user about the experimental and buggy state of this
; protected mode system, and allows aborting if having to reboot later
; is not acceptable.
db 'return cleanly to DOS on exit. You might be forced to reboot after quitting!',10
db 'If this is not acceptable, press ESC now to abort.',10,10
db 'Press ESC to abort and return to DOS, any other key to continue...',10,0
+%endif ; BUG_WARNING
+
+
+; ---------------------- A20 address line enable -----------------------
enable_a20:
call test_a20