zCore
zCore copied to clipboard
Implement ioports in Resource
Control the permission to access IO ports from user mode. We need to maintain IO port bitmap in TSS for each process.
Currently this function is unimplemented, we just set EFLAGS.IOPL to 3 to allow access to all IO ports.
Implement 2 syscalls:
- [ ] zx_ioports_release
- [ ] zx_ioports_request
Reference:
- https://en.wikipedia.org/wiki/Task_state_segment#I/O_port_permissions