diff options
author | hpa <hpa> | 2004-08-04 06:14:12 +0000 |
---|---|---|
committer | hpa <hpa> | 2004-08-04 06:14:12 +0000 |
commit | da900b66fdec8f6c4609df2ce72881bd3f6987a8 (patch) | |
tree | 78d3be8ea810c9721312a50f2b763431d93685be /pxelinux.asm | |
parent | ffd9cb024e1ca235fb44b9d89a7e7164f953fc5b (diff) | |
download | syslinux-da900b66fdec8f6c4609df2ce72881bd3f6987a8.tar.gz |
Clean up memory management and command-line creation
Diffstat (limited to 'pxelinux.asm')
-rw-r--r-- | pxelinux.asm | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/pxelinux.asm b/pxelinux.asm index 2140d5b5..6885cd99 100644 --- a/pxelinux.asm +++ b/pxelinux.asm @@ -300,6 +300,10 @@ TextColorReg resb 17 ; VGA color registers for text mode VGAFileBuf resb FILENAME_MAX ; Unmangled VGA image name VGAFileBufEnd equ $ VGAFileMBuf resb FILENAME_MAX ; Mangled VGA image name + alignb 4 ; For the good of REP MOVSD +command_line resb max_cmd_len+2 ; Command line buffer + alignb 4 +default_cmd resb max_cmd_len+1 ; "default" command line ; ; PXE packets which don't need static initialization @@ -2560,11 +2564,8 @@ linuxauto_cmd db 'linux auto',0 linuxauto_len equ $-linuxauto_cmd boot_image db 'BOOT_IMAGE=' boot_image_len equ $-boot_image - align 4, db 0 ; For the good of REP MOVSD -command_line equ $ -default_cmd equ $+(max_cmd_len+2) -ldlinux_end equ default_cmd+(max_cmd_len+1) -kern_cmd_len equ ldlinux_end-command_line +ldlinux_end equ $ + ; ; Put the getcbuf right after the code, aligned on a sector boundary ; |