push bx
push es ;
- mov dx, cs
- call PrintHex
- call PrintNL
+; mov dx, cs
+; call PrintHex
+; call PrintNL
push cs
pop es
shl cx, 8 ; multiply by 9-1 to get number of bytes / 2 (words)
;; Print out the size of the kernel
- mov dx, cx
- call PrintHex
- call PrintNL
+; mov dx, cx
+; call PrintHex
+; call PrintNL
int 0x15
adc ax, 0
;; Print out the return code to the screen
- mov dx, ax
- call PrintHex
- call PrintNL
+; mov dx, ax
+; call PrintHex
+; call PrintNL
- mov dx, KERNSEG
- call PrintHex
- call PrintNL
+; mov dx, KERNSEG
+; call PrintHex
+; call PrintNL
- mov dx, SETUPSEG
- call PrintHex
- call PrintNL
+; mov dx, SETUPSEG
+; call PrintHex
+; call PrintNL
- mov dx, 0x4a4a
- call PrintHex
- call PrintNL
+; mov dx, 0x4a4a
+; call PrintHex
+; call PrintNL
pop es ;
pop bx
#include <geekos/crc32.h>
#include <geekos/tss.h>
#include <geekos/int.h>
-#include <geekos/kthread.h>
+#include <geekos/kthread.h>
#include <geekos/trap.h>
#include <geekos/timer.h>
#include <geekos/keyboard.h>
struct Kernel_Thread * spkr_thread;
+ // VMConsPutLineN("hello\n", 6);
ulong_t doIBuzz = 0;
// Invalidate_PG((void *)0x2000);
-
+
// VM_Test(bootInfo, 32);
//VM_Test(bootInfo, 1536);
}
mov ds, ax
+; mov ah, 0x2e
+; out 0xc0c0, ax
+; mov ah, 0xa
+; out 0xc0c0, ax
+
; Use int 15h to find out size of extended memory in KB.
; Extended memory is the memory above 1MB. So by
; adding 1MB to this amount, we get the total amount