3 ms·
I implemented my own timesharing kernel in C and little inline x86 assembler. Main ideas: 1. Write context switch routine, which will require a little inline
by nivertech 16y ago
I implemented my own timesharing kernel in C and little inline x86 assembler.
Main ideas:
1. Write context switch routine, which will require a little inline x86 assembler code.
2. Map it to timer interrupt.
3. Use C setjmp and longjmp to switch context.