A preparation to add nolibc support for x86 32-bit. Provide get_page_size() function for x86 32-bit. x86 32-bit and x86-64, both have the same page size 4K, and they can share the same function definition. Just remove the #ifdef here. Co-authored-by: Alviro Iskandar Setiawan <alviro.iskandar@xxxxxxxxxxx> Signed-off-by: Alviro Iskandar Setiawan <alviro.iskandar@xxxxxxxxxxx> Signed-off-by: Ammar Faizi <ammarfaizi2@xxxxxxxxxxx> --- src/arch/x86/lib.h | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/src/arch/x86/lib.h b/src/arch/x86/lib.h index bacf74e..e6a74f3 100644 --- a/src/arch/x86/lib.h +++ b/src/arch/x86/lib.h @@ -7,26 +7,9 @@ #ifndef LIBURING_ARCH_X86_LIB_H #define LIBURING_ARCH_X86_LIB_H -#if defined(__x86_64__) - static inline long get_page_size(void) { return 4096; } -#else /* #if defined(__x86_64__) */ - -/* - * For x86 (32-bit), fallback to libc wrapper. - * We can't use CONFIG_NOLIBC for x86 (32-bit) at the moment. - * - * TODO: Add x86 (32-bit) nolibc support. - */ -#ifdef CONFIG_NOLIBC - #error "x86 (32-bit) is currently not supported for nolibc builds" -#endif -#include "../generic/lib.h" - -#endif /* #if defined(__x86_64__) */ - #endif /* #ifndef LIBURING_ARCH_X86_LIB_H */ -- Ammar Faizi