aboutsummaryrefslogtreecommitdiff
path: root/src/kernel.rs
blob: 9697ca8bd64a32af79ac39974da2effdc1511b3d (plain)
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
//! Kernel Code

#![allow(non_snake_case)]
#![allow(clippy::upper_case_acronyms,dead_code)]
#![feature(format_args_nl)]
#![feature(panic_info_message)]
#![feature(trait_alias)]
#![feature(exclusive_range_pattern)]
#![no_main]
#![no_std]

mod cpu;
mod panic_wait;
mod uart;
use crate::uart::*;

/// Initialization Code
unsafe fn kernel_init() -> ! {
    uart_init();

    kernel_main()
}

fn kernel_main() -> ! {
    write_char(b'a');
    write_char(b'b');
    loop {
    }
}