|
@@ -0,0 +1,43 @@
+--- core/bootsect.inc.orig 2007-06-10 18:51:39.000000000 -0400
++++ core/bootsect.inc 2007-09-04 22:25:54.444484669 -0400
+@@ -44,6 +44,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 << 4) + cmd_line_here
++ call bcopy
++
+ sub edi,100000h
+ mov [trackbuf+8],edi ; Save length
+
+@@ -181,3 +204,10 @@
+ movzx esp,di
+
+ jmp shuffle_and_boot
++
++
++ section .data
++bparams_sig db 'BootParams:'
++bparams_sig_len equ $-bparams_sig
++
++ section .text
|
@@ -1,43 +1,45 @@
---- core/bootsect.inc.orig 2007-06-10 18:51:39.000000000 -0400
-+++ core/bootsect.inc 2007-09-04 22:25:54.444484669 -0400
-@@ -44,6 +44,29 @@
+--- core/bootsect.inc.orig 2009-05-08 00:10:40.000000000 +0200
++++ core/bootsect.inc 2009-05-08 00:13:09.000000000 +0200
+@@ -41,6 +41,28 @@
+ xor dx,dx ; No padding
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 << 4) + cmd_line_here
++ call bcopy
-+ ; 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 << 4) + cmd_line_here
-+ call bcopy
-+
sub edi,100000h
mov [trackbuf+8],edi ; Save length
+@@ -189,6 +211,13 @@
-@@ -181,3 +204,10 @@
- movzx esp,di
+ jmp shuffle_and_boot_raw
- jmp shuffle_and_boot
-+
+
+ section .data
-+bparams_sig db 'BootParams:'
-+bparams_sig_len equ $-bparams_sig
-+
-+ section .text
++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.
|