mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-13 23:09:40 +02:00
dell-flash-unlock: Remove memory clobber from inline assembly
The x86 port IO instructions do not access memory so it is not needed in the clobber list. Signed-off-by: Nicholas Chin <nic.c3.14@gmail.com>
This commit is contained in:
@@ -43,7 +43,7 @@ sys_outb(unsigned int port, uint8_t data)
|
|||||||
outb(port, data);
|
outb(port, data);
|
||||||
#endif
|
#endif
|
||||||
#if defined(__NetBSD__)
|
#if defined(__NetBSD__)
|
||||||
__asm__ volatile ( "outb %b0, %w1" : : "a"(data), "d"(port) : "memory");
|
__asm__ volatile ("outb %b0, %w1" : : "a"(data), "d"(port));
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -57,7 +57,7 @@ sys_outl(unsigned int port, uint32_t data)
|
|||||||
outl(port, data);
|
outl(port, data);
|
||||||
#endif
|
#endif
|
||||||
#if defined(__NetBSD__)
|
#if defined(__NetBSD__)
|
||||||
__asm__ volatile ( "outl %0, %w1" : : "a"(data), "d"(port) : "memory");
|
__asm__ volatile ("outl %0, %w1" : : "a"(data), "d"(port));
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -70,7 +70,7 @@ sys_inb(unsigned int port)
|
|||||||
|
|
||||||
#if defined(__NetBSD__)
|
#if defined(__NetBSD__)
|
||||||
uint8_t retval;
|
uint8_t retval;
|
||||||
__asm__ volatile("inb %w1, %b0" : "=a" (retval) : "d" (port) : "memory");
|
__asm__ volatile ("inb %w1, %b0" : "=a" (retval) : "d" (port));
|
||||||
return retval;
|
return retval;
|
||||||
#endif
|
#endif
|
||||||
return 0;
|
return 0;
|
||||||
@@ -84,7 +84,7 @@ sys_inl(unsigned int port)
|
|||||||
#endif
|
#endif
|
||||||
#if defined(__NetBSD__)
|
#if defined(__NetBSD__)
|
||||||
int retval;
|
int retval;
|
||||||
__asm__ volatile("inl %w1, %0" : "=a" (retval) : "d" (port) : "memory");
|
__asm__ volatile ("inl %w1, %0" : "=a" (retval) : "d" (port));
|
||||||
return retval;
|
return retval;
|
||||||
#endif
|
#endif
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user