Comment on How to Write an Operating SystemComments−nivertech16yI 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.
Comments
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.