zCore icon indicating copy to clipboard operation
zCore copied to clipboard

Implement ioports in Resource

Open wangrunji0408 opened this issue 5 years ago • 0 comments

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

wangrunji0408 avatar Jun 19 '20 03:06 wangrunji0408