Search
j0ke.net Open Build Service
>
Projects
>
server:pxe
>
syslinux
> syslinux-openbsd-bootparams-3.75.patch
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File syslinux-openbsd-bootparams-3.75.patch of Package syslinux
--- 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