summaryrefslogtreecommitdiff
path: root/isolinux.asm
diff options
context:
space:
mode:
authorhpa <hpa>2003-11-26 05:42:33 +0000
committerhpa <hpa>2003-11-26 05:42:33 +0000
commitdf2322b51c6ffd9e4a05b225c5c4ba44b09d3e75 (patch)
tree2e837e97013969748192fddd5bac9515e6b2596d /isolinux.asm
parent0fab936237d1b5fb713f291dfe6aa7c342c7d246 (diff)
downloadsyslinux-df2322b51c6ffd9e4a05b225c5c4ba44b09d3e75.tar.gz
Add a bootstrap chainloading API, and include a sample program for it.syslinux-2.08-pre5
Diffstat (limited to 'isolinux.asm')
-rw-r--r--isolinux.asm6
1 files changed, 5 insertions, 1 deletions
diff --git a/isolinux.asm b/isolinux.asm
index ad1c3240..57488cb7 100644
--- a/isolinux.asm
+++ b/isolinux.asm
@@ -224,6 +224,9 @@ Files resb MAX_OPEN*open_file_t_size
;; loading the rest.
;;
bootsec equ $
+
+StackBuf equ $-44
+
_start: ; Far jump makes sure we canonicalize the address
cli
jmp 0:_start1
@@ -241,7 +244,7 @@ _start1: mov [cs:InitStack],sp ; Save initial stack pointer
mov [cs:InitStack+2],ss
xor ax,ax
mov ss,ax
- mov sp,_start ; Set up stack
+ mov sp,StackBuf ; Set up stack
mov ds,ax
mov es,ax
mov fs,ax
@@ -1578,6 +1581,7 @@ exten_table: db '.cbt' ; COMBOOT (specific)
db '.img' ; Disk image
db '.bin' ; CD boot sector
db '.com' ; COMBOOT (same as DOS)
+ db '.c32' ; COM32
exten_table_end:
dd 0, 0 ; Need 8 null bytes here