diff options
authorH. Peter Anvin <hpa@zytor.com>2006-05-03 18:05:05 -0700
committerH. Peter Anvin <hpa@zytor.com>2006-05-03 18:05:05 -0700
commit880b761e9720e8696acdfb88d0c011d92c4756fe (patch)
parent28eecd8965aedbd75727fb0797a2e7033d5c54ee (diff)
Remove check that a kernel can only be 8 MB or smaller.
1 files changed, 5 insertions, 4 deletions
diff --git a/runkernel.inc b/runkernel.inc
index fcffd44e..7627449e 100644
--- a/runkernel.inc
+++ b/runkernel.inc
@@ -35,16 +35,17 @@
; kernel code. The boot sector is never executed when using an external
; booting utility, but it contains some status bytes that are necessary.
-; First check that our kernel is at least 1K and less than 8M (if it is
-; more than 8M, we need to change the logic for loading it anyway...)
+; First check that our kernel is at least 1K, or else it isn't long
+; enough to have the appropriate headers.
; We used to require the kernel to be 64K or larger, but it has gotten
; popular to use the Linux kernel format for other things, which may
; not be so large.
+; Additionally, we used to have a test for 8 MB or smaller. Equally
+; obsolete.
- cmp dx,80h ; 8 megs
- ja kernel_corrupt
and dx,dx
jnz kernel_sane
cmp ax,1024 ; Bootsect + 1 setup sect