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