Formatting changes; comboot bug fix(?)
authorhpa <hpa>
Tue, 20 May 2003 00:56:41 +0000 (00:56 +0000)
committerhpa <hpa>
Tue, 20 May 2003 00:56:41 +0000 (00:56 +0000)
comboot.inc
ui.inc

index d358147..2e768ea 100644 (file)
@@ -98,6 +98,11 @@ is_comboot_image:
                shl ax,6                ; Kilobytes -> paragraphs
                mov word [es:02h],ax
 
+%ifndef DEPEND
+%if real_mode_seg != comboot_seg
+%error "This code assumes real_mode_seg == comboot_seg"
+%endif
+%endif
                ; Copy the command line from high memory
                mov cx,125              ; Max cmdline len (minus space and CR)
                mov si,[CmdOptPtr]
@@ -105,7 +110,7 @@ is_comboot_image:
                mov al,' '              ; DOS command lines begin with a space
                stosb
 
-comboot_cmd_cp:        lodsb
+comboot_cmd_cp:        es lodsb
                and al,al
                jz comboot_end_cmd
                stosb
diff --git a/ui.inc b/ui.inc
index 5711439..e3563e7 100644 (file)
--- a/ui.inc
+++ b/ui.inc
@@ -23,7 +23,7 @@ check_for_key:
                cmp word [ForcePrompt],byte 0   ; Force prompt?
                jnz enter_command
                test byte [KbdFlags],5Bh        ; Caps, Scroll, Shift, Alt
-               jz auto_boot            ; If neither, default boot
+               jz auto_boot                    ; If neither, default boot
 
 enter_command:
                mov si,boot_prompt
@@ -240,7 +240,7 @@ not_vk:             pop ds
 ; Find the kernel on disk
 ;
 get_kernel:     mov byte [KernelName+FILENAME_MAX],0   ; Zero-terminate filename/extension
-%if IS_SYSLINUX || IS_MDSLINUX         ; SYSLINUX has to deal with DOS mangled names...
+%if IS_SYSLINUX || IS_MDSLINUX                 ; SYSLINUX has to deal with DOS mangled names...
                mov eax,[KernelName+8]          ; Save initial extension
                mov [exten_table_end],eax       ; Last case == initial ext.
 %else