From 37f49e37ab4cb5d0bc4c60eb5c6d4dd57db767bb Mon Sep 17 00:00:00 2001 From: hc <hc@nodka.com> Date: Fri, 10 May 2024 07:44:59 +0000 Subject: [PATCH] gmac get mac form eeprom --- kernel/arch/x86/boot/string.h | 7 +++---- 1 files changed, 3 insertions(+), 4 deletions(-) diff --git a/kernel/arch/x86/boot/string.h b/kernel/arch/x86/boot/string.h index 3d78e27..a232da4 100644 --- a/kernel/arch/x86/boot/string.h +++ b/kernel/arch/x86/boot/string.h @@ -11,10 +11,7 @@ void *memset(void *dst, int c, size_t len); int memcmp(const void *s1, const void *s2, size_t len); -/* - * Access builtin version by default. If one needs to use optimized version, - * do "undef memcpy" in .c file and link against right string.c - */ +/* Access builtin version by default. */ #define memcpy(d,s,l) __builtin_memcpy(d,s,l) #define memset(d,c,l) __builtin_memset(d,c,l) #define memcmp __builtin_memcmp @@ -29,4 +26,6 @@ extern unsigned long long simple_strtoull(const char *cp, char **endp, unsigned int base); +int kstrtoull(const char *s, unsigned int base, unsigned long long *res); +int boot_kstrtoul(const char *s, unsigned int base, unsigned long *res); #endif /* BOOT_STRING_H */ -- Gitblit v1.6.2