Wrote proper Makefile

This commit is contained in:
2020-07-01 15:47:56 -05:00
parent 44523705a3
commit d3ba3c1d2a
27 changed files with 701 additions and 319 deletions

19
src/quarkkernel.cpp Normal file → Executable file
View File

@@ -1,13 +1,24 @@
#include <stddef.h>
#include <stdint.h>
#include "tty.h"
#if __STDC_HOSTED__ == 1 || __i686__ != 1
#error "ERROR: This program must be compiled for a freestanding environment, and currently only supports the i686 target."
#endif
void main()
#include "buddyallocator.h"
using namespace qkernel;
void main(void* bootInfo)
{
int x = 2;
x -= 1;
return;
char* vga = (char*) 0xC0400000;
TTY tty(vga);
tty << "--Quark Kernel--\n";
tty << "Successfully enabled paging. Kernel image mapped to 0xC0000000.\n";
tty << "Nothing left to do. Hanging.\n";
tty << 18542;
char c = 'b';
return;
}