mirror of
https://github.com/plctlab/riscv-operating-system-mooc.git
synced 2025-11-16 12:34:47 +00:00
20 lines
322 B
C
20 lines
322 B
C
#include "os.h"
|
|
|
|
/*
|
|
* Following functions SHOULD be called ONLY ONE time here,
|
|
* so just declared here ONCE and NOT included in file os.h.
|
|
*/
|
|
extern void uart_init(void);
|
|
extern void page_init(void);
|
|
|
|
void start_kernel(void)
|
|
{
|
|
uart_init();
|
|
uart_puts("Hello, RVOS!\n");
|
|
|
|
page_init();
|
|
|
|
while (1) {}; // stop here!
|
|
}
|
|
|