MCPcopy Create free account
hub / github.com/YatSenOS/YatSenOS-Tutorial-Volume-1 / a_mother

Function a_mother

lab6/src/1/src/kernel/setup.cpp:16–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14int cheese_burger;
15
16void a_mother(void *arg)
17{
18 int delay = 0;
19
20 printf("mother: start to make cheese burger, there are %d cheese burger now\n", cheese_burger);
21 // make 10 cheese_burger
22 cheese_burger += 10;
23
24 printf("mother: oh, I have to hang clothes out.\n");
25 // hanging clothes out
26 delay = 0xfffffff;
27 while (delay)
28 --delay;
29 // done
30
31 printf("mother: Oh, Jesus! There are %d cheese burgers\n", cheese_burger);
32}
33
34void a_naughty_boy(void *arg)
35{

Callers

nothing calls this directly

Calls 1

printfFunction · 0.70

Tested by

no test coverage detected