aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/kernel.c
blob: a47a0a71b9c72b090a4145e2a2ceb48d31b87260 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include "print.h"

// Check if the compiler thinks we are targeting the wrong OS
#if defined(__linux__)
#error "Not using cross compiler!"
#endif

// Only works for 32 bit ix86 target
#if !defined(__i386__)
#error "Must use ix86-elf compiler"
#endif

// Color Constants

void kernel_main(void) {
  print_clear();
  print_set_color(PRINT_COLOR_YELLOW, PRINT_COLOR_BLACK);
  printf("printf\n\tint: %d\n\tstring: %s\n\tchar: %c\n\tpercent: "
         "%%\n\tnothing: %n",
         99, "World! ", 't');
}