3 ms·
The original Xv6 code uses the x86 IO ports for example[1][2][3], it would be easy to implement something similar for the soft CPU I imagine. Some good info abo
by magicalhippo 4y ago
The original Xv6 code uses the x86 IO ports for example[1][2][3], it would be easy to implement something similar for the soft CPU I imagine. Some good info about IO ports in the answers to this[4] SO question.
[1]: https://github.com/mit-pdos/xv6-public/blob/eeb7b415dbcb12cc362d0783e41c3d1f44066b17/console.c#L132 https://github.com/mit-pdos/xv6-public/blob/eeb7b415dbcb12cc...
[2]: https://github.com/mit-pdos/xv6-public/blob/eeb7b415dbcb12cc362d0783e41c3d1f44066b17/x86.h#L22 https://github.com/mit-pdos/xv6-public/blob/eeb7b415dbcb12cc...
[3]: https://www.felixcloutier.com/x86/out https://www.felixcloutier.com/x86/out
[4]: https://stackoverflow.com/questions/3215878/what-are-in-out-instructions-in-x86-used-for https://stackoverflow.com/questions/3215878/what-are-in-out-...