Updated the kernel.c comments.
Minor changes, but whatever.
This commit is contained in:
parent
c5178d56bd
commit
4af4ad89a4
|
@ -20,13 +20,17 @@
|
||||||
|
|
||||||
void gdb_end() {} /* GDB Debugging stump */
|
void gdb_end() {} /* GDB Debugging stump */
|
||||||
|
|
||||||
|
static size_t time = 0;
|
||||||
|
|
||||||
int kernel_main(FILELOADER_PARAMS* FLOP) {
|
int kernel_main(FILELOADER_PARAMS* FLOP) {
|
||||||
|
init_serial();
|
||||||
|
serial_printf("Kernel has been given control of the computer.\nStarting bootstrap init.\n");
|
||||||
/* The kernel is started in 64-bit Long Mode by Syncboot. */
|
/* The kernel is started in 64-bit Long Mode by Syncboot. */
|
||||||
/* Here, we start by drawing a splash, then loading a GDT and IDT into the placeholder UEFI gives us. */
|
|
||||||
|
/* PrepareSystem just initializes all hardware features and gets the system ready to execute every function.
|
||||||
|
/* Most of this is just preparing the interrupts system, but there is a bit of messing with AVX features, which are used extensively in drawing graphics. */
|
||||||
|
|
||||||
|
|
||||||
/* Not sure how well serial would work in UEFI. */
|
|
||||||
// TODO: look at this.
|
|
||||||
PrepareSystem(FLOP);
|
PrepareSystem(FLOP);
|
||||||
|
|
||||||
gdb_end(); /* The first important step. Waypoint it for gdb debugging. */
|
gdb_end(); /* The first important step. Waypoint it for gdb debugging. */
|
||||||
|
|
Loading…
Reference in New Issue
Block a user