mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 16:50:55 +08:00
sysconf: update _SC_PAGESIZE sysconf support
N/A For no-mmu case, the page size is 1 as default. Change-Id: Ifac2bc4889113cea0a4376ad1be27c5a1c67534d Signed-off-by: liuhaitao <liuhaitao@xiaomi.com>
This commit is contained in:
@@ -245,8 +245,7 @@ long sysconf(int name)
|
||||
#ifdef CONFIG_MM_PGSIZE
|
||||
return CONFIG_MM_PGSIZE;
|
||||
#else
|
||||
#define PAGESIZE 4096
|
||||
return PAGESIZE;
|
||||
return 1;
|
||||
#endif
|
||||
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user