[FREELDR]
[reactos.git] / reactos / boot / freeldr / freeldr / arch / realmode / helpers.inc
index dd1fd49..38fe40c 100644 (file)
@@ -92,20 +92,17 @@ writehex_common:
     popfd\r
     ret\r
 \r
-SoftReboot:\r
-       mov ax, HEX(40)\r
-       mov ds, ax\r
-       mov si, HEX(72)\r
+Reboot:\r
+       cli\r
 \r
-       /* Set the word at location 40:72 to 1234h */\r
-       mov word ptr [si], HEX(1234)\r
+       /* Set the word at location 40h:72h to 0 (cold reboot) */\r
+       mov word ptr ds:[HEX(0472)], HEX(0)\r
 \r
-       /* and jump to location FFFF:0 in ROM */\r
-       ljmp16  HEX(0FFFF), HEX(0000)\r
+       /* and jump to location F000h:FFF0h in ROM */\r
+       ljmp16 HEX(0F000), HEX(0FFF0)\r
 \r
 \r
 ChainLoadBiosBootSectorCode:\r
-\r
     /* Load segment registers */\r
     cli\r
     xor ax, ax\r
@@ -117,4 +114,4 @@ ChainLoadBiosBootSectorCode:
     mov esp, HEX(7C00)\r
 \r
     /* Jump to the bootsector code */\r
-    ljmp16     HEX(0000), HEX(7C00)\r
+    ljmp16 HEX(0000), HEX(7C00)\r