mirror of
https://github.com/gbowne1/ClassicOS.git
synced 2026-01-30 00:25:18 -08:00
Update pci.c
Fixed the inline assembly macro asm to __asm__
This commit is contained in:
@@ -2,12 +2,12 @@
|
|||||||
|
|
||||||
/* --- Internal I/O Helpers (If not defined in your kernel) --- */
|
/* --- Internal I/O Helpers (If not defined in your kernel) --- */
|
||||||
static inline void outl(uint16_t port, uint32_t val) {
|
static inline void outl(uint16_t port, uint32_t val) {
|
||||||
asm volatile ("outl %0, %1" : : "a"(val), "Nd"(port));
|
__asm__ __volatile__ ("outl %0, %1" : : "a"(val), "Nd"(port));
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline uint32_t inl(uint16_t port) {
|
static inline uint32_t inl(uint16_t port) {
|
||||||
uint32_t ret;
|
uint32_t ret;
|
||||||
asm volatile ("inl %1, %0" : "=a"(ret) : "Nd"(port));
|
__asm__ __volatile__ ("inl %1, %0" : "=a"(ret) : "Nd"(port));
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user