feature (kernel): Implemented 'io_wait'
This commit is contained in:
parent
9fc370e549
commit
c9d1454efc
|
@ -21,5 +21,6 @@
|
|||
// sends one byte to a port
|
||||
void io_out_byte (uint16_t port, uint8_t data);
|
||||
uint8_t io_in_byte (uint16_t port);
|
||||
void io_wait ();
|
||||
|
||||
#endif //NOX_IO_H
|
||||
|
|
|
@ -24,3 +24,7 @@ uint8_t io_in_byte(uint16_t port) {
|
|||
asm volatile ("inb %1, %0" : "=a"(data) : "Nd"(port));
|
||||
return data;
|
||||
}
|
||||
|
||||
void io_wait() {
|
||||
io_out_byte(0x80, 0);
|
||||
}
|
Loading…
Reference in New Issue