@@ -0,0 +1,46 @@
+--- core/bootsect.inc.orig 2011-12-09 19:28:17.000000000 +0100
++++ core/bootsect.inc 2012-07-29 14:50:42.655812020 +0200
+@@ -42,6 +42,29 @@
+ mov bx,abort_check ; Don't print dots, but allow abort
+ call load_high
+
++ ; Write the boot param signature after the image
++ xor ecx, ecx
++ mov cx, bparams_sig_len
++ mov esi, bparams_sig
++ cld
++ call bcopy
++
++ ; Zero terminate the boot params
++ push es
++ push real_mode_seg
++ pop es
++ mov bx, [CmdLinePtr]
++ mov [es:bx], byte 0
++ pop es
++
++ ; Write the boot params
++ xor ecx, ecx
++ mov cx, [CmdLinePtr]
++ sub cx, cmd_line_here
++ inc ecx
++ mov esi, real_mode_seg + cmd_line_here
++ call bcopy
++
+ sub edi,free_high_memory
+ mov [trackbuf+8],edi ; Save length
+
+@@ -214,6 +237,13 @@
+
+ jmp shuffle_and_boot_raw
+
++
++ section .data
++bparams_sig db 'BootParams:'
++bparams_sig_len equ $-bparams_sig
++
++ section .text
++
+ ; This stub gets run after the shuffle. It is copied
+ ; below 0x7c00 in order to properly handle the case
+ ; of bootstrap replacement.
|