5 static void bar(char *boom) {
7 *boom = 47; // Frame bar
10 static void foo(char *boom, void (*boomer)(char *)) {
12 boomer(boom); // Frame foo
15 void lwp_main(void *unused) {
17 foo(0, bar); // Frame lwp_main
20 int main(int argc, char **argv) {
23 static const size_t ssize = 16 * 1024;
26 stack = malloc(ssize);
27 _lwp_makecontext(&uc, lwp_main, NULL, NULL, stack, ssize);
28 _lwp_create(&uc, 0, &lid);