aboutsummaryrefslogtreecommitdiff
path: root/src/kernel.rs
blob: 56f53c170aa02eafb4fb03e3bbfddad6ec2ef84f (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
30
//! 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 console;
mod cpu;
mod panic_wait;
mod print;
mod sync;
mod uart;
use crate::console::console;

/// Initialization Code
unsafe fn kernel_init() -> ! {
	console().init().unwrap();
	kernel_main()
}

/// Post init
fn kernel_main() -> ! {
	println!("I should be able to print {} here!", 5);
	loop { }
}