summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorNicholas Chin <nic.c3.14@gmail.com>2024-04-28 14:55:47 -0600
committerNicholas Chin <nic.c3.14@gmail.com>2024-04-28 14:55:47 -0600
commitb737a24c903ff75475fc7ac8a2f80901fb0acfcb (patch)
tree0f382bd5529e5802286e22af006df7a93ee5a367 /util
parent515185a7f5f4ec75392c33737ddb9160fa28070e (diff)
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>
Diffstat (limited to 'util')
-rw-r--r--util/dell-flash-unlock/accessors.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/util/dell-flash-unlock/accessors.c b/util/dell-flash-unlock/accessors.c
index a35f8139..a5f936c8 100644
--- a/util/dell-flash-unlock/accessors.c
+++ b/util/dell-flash-unlock/accessors.c
@@ -43,7 +43,7 @@ sys_outb(unsigned int port, uint8_t data)
outb(port, data);
#endif
#if defined(__NetBSD__)
- __asm__ volatile ( "outb %b0, %w1" : : "a"(data), "d"(port) : "memory");
+ __asm__ volatile ("outb %b0, %w1" : : "a"(data), "d"(port));
#endif
}
@@ -57,7 +57,7 @@ sys_outl(unsigned int port, uint32_t data)
outl(port, data);
#endif
#if defined(__NetBSD__)
- __asm__ volatile ( "outl %0, %w1" : : "a"(data), "d"(port) : "memory");
+ __asm__ volatile ("outl %0, %w1" : : "a"(data), "d"(port));
#endif
}
@@ -70,7 +70,7 @@ sys_inb(unsigned int port)
#if defined(__NetBSD__)
uint8_t retval;
- __asm__ volatile("inb %w1, %b0" : "=a" (retval) : "d" (port) : "memory");
+ __asm__ volatile ("inb %w1, %b0" : "=a" (retval) : "d" (port));
return retval;
#endif
return 0;
@@ -84,7 +84,7 @@ sys_inl(unsigned int port)
#endif
#if defined(__NetBSD__)
int retval;
- __asm__ volatile("inl %w1, %0" : "=a" (retval) : "d" (port) : "memory");
+ __asm__ volatile ("inl %w1, %0" : "=a" (retval) : "d" (port));
return retval;
#endif
return 0;