14 lines
184 B
C
14 lines
184 B
C
void yield() {
|
|
asm volatile(" \
|
|
mov $1, %eax; \
|
|
int $80; \
|
|
");
|
|
}
|
|
|
|
void createTask(void* task) {
|
|
asm volatile(" \
|
|
mov $2, %%eax; \
|
|
int $80; \
|
|
"::"b"(task));
|
|
}
|