1 [bits 32] ; Starts in 32 bit mode, then will drop back later.
24 jmp 0x8:nextp ; Clear CS bits now too
29 xor eax, 0x1 ; Clear PE
32 jmp 0x0:nowreal ; and jmp away
44 mov sp, 0xFFFF ; set up the stack
55 int 0x19 ; warm boot without clearing RAM.
56 call handload_drive ; hopefully shouldn't happen
73 ; handload_drive should be unnecessary; int 19 should take care of it for
78 mov ax, 0x0201 ; read one sector
79 mov bx, 0x0000 ; to the normal location
80 mov cx, 0x0001 ; disk sector 1
81 mov dx, 0x0080 ; drive 0
88 jmp 0x7C0:0x0 ; and return control to grub!
94 RETMSG db "SMM installer finished, booting your system of choice.",10,13,0
95 READSUCC db "Read successful; rebooting into boot sector.",10,13,0
96 READFAIL db "Boot disk read failure; system halted.",10,13,0
99 idtp db 0xFF, 0x03, 0x00, 0x00, 0x00, 0x00
105 dd 0x0000FFFF, 0x00009e00 ; CS
106 dd 0x0000FFFF, 0x00009300 ; DS