2. Linker script for kernel. 2. Updated mkiso script to link C with nasm and build a runable multiboot1 iso.
11 lines
236 B
C
11 lines
236 B
C
#define HYPKERNEL32 __attribute__((__cdecl__))
|
|
extern void* kernel_stack;
|
|
extern void print_str(char* dst);
|
|
void HYPKERNEL32 hk_main(void* multiboot_info)
|
|
{
|
|
char* str = "Kernel is here";
|
|
print_str(str);
|
|
fuck:
|
|
goto fuck;
|
|
}
|