Wrote proper Makefile
This commit is contained in:
19
src/quarkkernel.cpp
Normal file → Executable file
19
src/quarkkernel.cpp
Normal file → Executable 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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user