Starting Point
This commit is contained in:
1
kernel/.gitignore
vendored
Normal file
1
kernel/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
# empty gitignore
|
||||
20
kernel/start.c
Normal file
20
kernel/start.c
Normal file
@@ -0,0 +1,20 @@
|
||||
#include <arch/bsp/yellow_led.h>
|
||||
|
||||
static volatile unsigned int counter = 0;
|
||||
|
||||
static void increment_counter(void)
|
||||
{
|
||||
counter++;
|
||||
}
|
||||
|
||||
void start_kernel [[noreturn]] (void);
|
||||
void start_kernel [[noreturn]] (void)
|
||||
{
|
||||
init_yellow();
|
||||
yellow_on();
|
||||
|
||||
// Endless counter
|
||||
while (true) {
|
||||
increment_counter();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user