mirror of https://github.com/0Nera/BMOSP.git
Добавлена отправка word в IO порт
This commit is contained in:
parent
67af4e64bc
commit
3909eb183c
|
@ -31,4 +31,14 @@ static inline uint8_t inb(uint16_t port) {
|
|||
return ret;
|
||||
}
|
||||
|
||||
static inline void outw(uint16_t port, uint16_t val) {
|
||||
asm volatile("outw %0, %1" : : "a"(val), "Nd"(port));
|
||||
}
|
||||
|
||||
static inline uint16_t inw(uint16_t port) {
|
||||
uint16_t ret;
|
||||
asm volatile("inw %1, %0" : "=a"(ret) : "Nd"(port));
|
||||
return ret;
|
||||
}
|
||||
|
||||
#endif // arch.h
|
|
@ -1,3 +1,3 @@
|
|||
#define VERSION_MAJOR 0
|
||||
#define VERSION_MINOR 1
|
||||
#define VERSION_BUILD 760
|
||||
#define VERSION_BUILD 769
|
||||
|
|
Loading…
Reference in New Issue