| 40 | } |
| 41 | |
| 42 | void first_thread(void *arg) |
| 43 | { |
| 44 | // 第1个线程不可以返回 |
| 45 | stdio.moveCursor(0); |
| 46 | for (int i = 0; i < 25 * 80; ++i) |
| 47 | { |
| 48 | stdio.print(' '); |
| 49 | } |
| 50 | stdio.moveCursor(0); |
| 51 | |
| 52 | cheese_burger = 0; |
| 53 | |
| 54 | programManager.executeThread(a_mother, nullptr, "second thread", 1); |
| 55 | programManager.executeThread(a_naughty_boy, nullptr, "third thread", 1); |
| 56 | |
| 57 | asm_halt(); |
| 58 | } |
| 59 | |
| 60 | extern "C" void setup_kernel() |
| 61 | { |
nothing calls this directly
no test coverage detected