Commit 7f291cfa authored by Thomas Weißschuh's avatar Thomas Weißschuh Committed by Paul E. McKenney
Browse files

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: default avatarThomas Weißschuh <linux@weissschuh.net>
Signed-off-by: default avatarWilly Tarreau <w@1wt.eu>
Signed-off-by: default avatarPaul E. McKenney <paulmck@kernel.org>
parent 3a8039e2
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;
}

+1 −1
Original line number Diff line number Diff line
@@ -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
	}