tools/nolibc: use standard __asm__ statements
Most of the code was migrated to C99-conformant __asm__ statements before. It seems string.h was missed. Signed-off-by: Thomas Weißschuh <linux@weissschuh.net> Signed-off-by: Willy Tarreau <w@1wt.eu> Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
This commit is contained in:
parent
3a8039e289
commit
7f291cfa90
@ -90,7 +90,7 @@ void *memset(void *dst, int b, size_t len)
|
||||
|
||||
while (len--) {
|
||||
/* prevent gcc from recognizing memset() here */
|
||||
asm volatile("");
|
||||
__asm__ volatile("");
|
||||
*(p++) = b;
|
||||
}
|
||||
return dst;
|
||||
@ -139,7 +139,7 @@ size_t strlen(const char *str)
|
||||
size_t len;
|
||||
|
||||
for (len = 0; str[len]; len++)
|
||||
asm("");
|
||||
__asm__("");
|
||||
return len;
|
||||
}
|
||||
|
||||
|
@ -984,7 +984,7 @@ int main(int argc, char **argv, char **envp)
|
||||
#else
|
||||
else if (ioperm(0x501, 1, 1) == 0)
|
||||
#endif
|
||||
asm volatile ("outb %%al, %%dx" :: "d"(0x501), "a"(0));
|
||||
__asm__ volatile ("outb %%al, %%dx" :: "d"(0x501), "a"(0));
|
||||
/* if it does nothing, fall back to the regular panic */
|
||||
#endif
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user