Search
j0ke.net Open Build Service
>
Projects
>
server:pxe
>
syslinux
> syslinux-openbsd-bootparams-3.80.patch
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File syslinux-openbsd-bootparams-3.80.patch of Package syslinux (Revision 10)
Currently displaying revision
10
,
show latest
--- 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 sub edi,100000h mov [trackbuf+8],edi ; Save length @@ -189,6 +211,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.