← Commit list

c6c7ab979

Karthik D K
Karthik D K
2026-10-04
SUCCESS Duration: 237s

Subject

libbb: enable fixed 4k pagesize on RISC-V

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

include/libbb.h+3 -1
@@ -460,10 +460,12 @@ void *xmmap_anon(size_t size) FAST_FUNC;
# define BB_ARCH_FIXED_PAGESIZE 4096
#elif defined(__arm__) /* only 32bit, 64bit ARM has variable page size */
# define BB_ARCH_FIXED_PAGESIZE 4096
+#elif defined(__riscv) /* both rv32 and rv64 have fixed page size of 4KiB */
+# define BB_ARCH_FIXED_PAGESIZE 4096
#else /* if defined(ARCH) */
/* add you favorite arch today! */
//From Linux kernel inspection:
-//xtenza,s390[x],riscv,nios2,csky,sparc32: fixed 4k pages
+//xtenza,s390[x],nios2,csky,sparc32: fixed 4k pages
//sparc64,alpha,openrisc: fixed 8k pages
#endif