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:
liuhaitao
2020-11-17 10:08:39 +08:00
committed by 刘海涛
parent 9589015383
commit 10b0163a17
+1 -2
View File
@@ -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: