Added Linux bzImage support.
This commit is contained in:
parent
ae07073cec
commit
d72f916818
1 changed files with 6 additions and 5 deletions
|
@ -61,7 +61,7 @@ ENTRY(start)
|
||||||
. = EXT_C(start) + 0x8
|
. = EXT_C(start) + 0x8
|
||||||
|
|
||||||
VARIABLE(install_partition)
|
VARIABLE(install_partition)
|
||||||
.long 0xFF00FF
|
.long 0x020000
|
||||||
VARIABLE(version_string)
|
VARIABLE(version_string)
|
||||||
.string "0.5"
|
.string "0.5"
|
||||||
VARIABLE(config_file)
|
VARIABLE(config_file)
|
||||||
|
@ -976,12 +976,8 @@ ENTRY(patch_code_end)
|
||||||
|
|
||||||
ENTRY(linux_boot)
|
ENTRY(linux_boot)
|
||||||
/* don't worry about saving anything, we're committed at this point */
|
/* don't worry about saving anything, we're committed at this point */
|
||||||
call EXT_C(stop_floppy)
|
|
||||||
cld /* forward copying */
|
cld /* forward copying */
|
||||||
|
|
||||||
/* XXX new stack pointer in safe area for calling functions */
|
|
||||||
movl $0x4000, %esp
|
|
||||||
|
|
||||||
/* copy kernel */
|
/* copy kernel */
|
||||||
movl $LINUX_SETUP, %eax
|
movl $LINUX_SETUP, %eax
|
||||||
movl LINUX_KERNEL_LEN_OFFSET(%eax), %ecx
|
movl LINUX_KERNEL_LEN_OFFSET(%eax), %ecx
|
||||||
|
@ -992,6 +988,11 @@ ENTRY(linux_boot)
|
||||||
rep
|
rep
|
||||||
movsl
|
movsl
|
||||||
|
|
||||||
|
ENTRY(big_linux_boot)
|
||||||
|
/* XXX new stack pointer in safe area for calling functions */
|
||||||
|
movl $0x4000, %esp
|
||||||
|
call EXT_C(stop_floppy)
|
||||||
|
|
||||||
/* final setup for linux boot */
|
/* final setup for linux boot */
|
||||||
|
|
||||||
movw $LINUX_SETUP_SEG, %ax
|
movw $LINUX_SETUP_SEG, %ax
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue