Blame


1 98601545 2023-02-18 continue // kernel.cc
2 98601545 2023-02-18 continue
3 8b3b29b7 2023-02-18 continue #include <uart.h>
4 98601545 2023-02-18 continue
5 98601545 2023-02-18 continue
6 8607cffe 2023-02-18 continue namespace {
7 98601545 2023-02-18 continue
8 8b3b29b7 2023-02-18 continue
9 98601545 2023-02-18 continue void
10 8b3b29b7 2023-02-18 continue uart_send_string(const char *szContent)
11 98601545 2023-02-18 continue {
12 98601545 2023-02-18 continue const char *szCurrent = szContent;
13 3be3b31b 2023-03-02 continue while (*szCurrent) {
14 8b3b29b7 2023-02-18 continue Board::Uart::send(*szCurrent);
15 3be3b31b 2023-03-02 continue ++szCurrent;
16 3be3b31b 2023-03-02 continue }
17 98601545 2023-02-18 continue }
18 98601545 2023-02-18 continue
19 8b3b29b7 2023-02-18 continue
20 8607cffe 2023-02-18 continue } // anonymous namespace
21 98601545 2023-02-18 continue
22 98601545 2023-02-18 continue
23 98601545 2023-02-18 continue extern "C"
24 98601545 2023-02-18 continue void
25 98601545 2023-02-18 continue kernel_entry_point()
26 98601545 2023-02-18 continue {
27 8b3b29b7 2023-02-18 continue Board::Uart::initialize();
28 6efd408f 2023-03-01 continue uart_send_string("Squat entry point\r\n");
29 98601545 2023-02-18 continue
30 98601545 2023-02-18 continue for (; ; )
31 6efd408f 2023-03-01 continue ;
32 98601545 2023-02-18 continue }