aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/kernel.cpp
blob: 579e642d508433378bf4ceb1809ddc792f2ae041 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <stdio.h>

#include <arch/i386/tmtty.h>
#include <arch/i386/ps2_controller.h>
#include <dev/ps2kbd.h>

// compiler and target check
#if defined(__linux__)
#error "you're not using a cross compiler"
#endif

#if !defined(__i386__)
#error "needs to be compiled using an ix86-elf cross compiler"
#endif

extern "C" void kernel_main(void) {
    // Initialize terminal
    //terminal_initialize();

    //initialize_ps2_controller();
    //keyboard_init();

    printf("Hello world!\n");
    printf("among\n");
    printf("balls\n");
    printf("a%db", 1);
}