| 48 | } |
| 49 | |
| 50 | void first_thread(void *arg) |
| 51 | { |
| 52 | // 第1个线程不可以返回 |
| 53 | stdio.moveCursor(0); |
| 54 | for (int i = 0; i < 25 * 80; ++i) |
| 55 | { |
| 56 | stdio.print(' '); |
| 57 | } |
| 58 | stdio.moveCursor(0); |
| 59 | |
| 60 | cheese_burger = 0; |
| 61 | aLock.initialize(); |
| 62 | |
| 63 | programManager.executeThread(a_mother, nullptr, "second thread", 1); |
| 64 | programManager.executeThread(a_naughty_boy, nullptr, "third thread", 1); |
| 65 | |
| 66 | asm_halt(); |
| 67 | } |
| 68 | |
| 69 | extern "C" void setup_kernel() |
| 70 | { |
nothing calls this directly
no test coverage detected