From: Ben Pfaff Date: Wed, 19 Jan 2005 18:39:39 +0000 (+0000) Subject: If the kernel image gets too big, "cmp ebx, KERNEL_LOAD_PAGES*8 + 1" X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6d03839032f21bda2358cfef83ba2412651e6588;p=pintos-anon If the kernel image gets too big, "cmp ebx, KERNEL_LOAD_PAGES*8 + 1" assembles into 3 more bytes, which causes the image to be too big. This reduces the length of the panic message to compensate. --- diff --git a/src/threads/loader.S b/src/threads/loader.S index 95ef9d9..11ab7c9 100644 --- a/src/threads/loader.S +++ b/src/threads/loader.S @@ -314,7 +314,7 @@ panic: .code16 # We only panic in real mode. jmp 1b panicmsg: - .ascii "Loader panic!\r\n" + .ascii "Panic!" .byte 0 #### Memory size in 4 kB pages.