Syscalls!
Changes so far:
- Added
gs_infostruct, which saves the user stack and holds a pointer to the kernel stack - Added
syscall::initwhich enables thesyscall/sysretinstructions and sets up theSTAR,LSTARandSFMASKregisters - Added
syscall_entrywhich builds aUserFrame(a snapshot of the CPU registers on syscall entry) and callssyscall_dispatch - Added
syscall_dispatch, which currently logs the received syscall number and halts (the system call return path is not implemented YET) - Added
UserFramewhich holds a CPU register snapshot which gets taken upon entering the kernel
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.