diff options
author | Marvin Borner | 2021-02-25 23:32:18 +0100 |
---|---|---|
committer | Marvin Borner | 2021-02-25 23:32:18 +0100 |
commit | dec16faf32e75d613e20cac175b8a0c2d3612b94 (patch) | |
tree | 756d1ce3cf07cfe7da80702d96f9ec9e6585dceb /kernel/main.c | |
parent | c258de9038d113cafcc8e290f7f70bbc2f1cb50d (diff) |
Added some debugging features
I've tried to track down the bugs with kvm and q35 but I didn't manage
to do it - yet!
I'll probably look into it soon.
Diffstat (limited to 'kernel/main.c')
-rw-r--r-- | kernel/main.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kernel/main.c b/kernel/main.c index 5e236a7..2112541 100644 --- a/kernel/main.c +++ b/kernel/main.c @@ -21,15 +21,15 @@ struct vid_info *boot_passed; void kernel_main(struct vid_info *vid_info); // Decl void kernel_main(struct vid_info *vid_info) { - heap_init(0x00f00000 + rand()); - - boot_passed = vid_info; - // Serial connection serial_install(); serial_print("\nKernel was compiled at " __TIME__ " on " __DATE__ "\n"); serial_print("Serial connected.\n"); + heap_init(0x00f00000 + rand()); + + boot_passed = vid_info; + cpu_enable_features(); cpu_print(); |