Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F163292156
D45066.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
715 B
Referenced Files
None
Subscribers
None
D45066.diff
View Options
diff --git a/lib/libsys/getpagesize.c b/lib/libsys/getpagesize.c
--- a/lib/libsys/getpagesize.c
+++ b/lib/libsys/getpagesize.c
@@ -45,7 +45,7 @@
int value;
if (_elf_aux_info(AT_PAGESZ, &value, sizeof(value)) != 0)
- value = PAGE_SIZE;
+ value = PAGE_SIZE_MAX;
return (value);
}
diff --git a/lib/libsys/getpagesizes.c b/lib/libsys/getpagesizes.c
--- a/lib/libsys/getpagesizes.c
+++ b/lib/libsys/getpagesizes.c
@@ -58,7 +58,7 @@
/* Cache the result */
if (nops == 0) {
if (_elf_aux_info(AT_PAGESIZES, ps, sizeof(ps)) != 0)
- ps[0] = PAGE_SIZE;
+ ps[0] = PAGE_SIZE_MAX;
/* Count the number of page sizes that are supported. */
nops = nitems(ps);
while (nops > 0 && ps[nops - 1] == 0)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Jul 22, 7:19 PM (2 h, 6 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35378134
Default Alt Text
D45066.diff (715 B)
Attached To
Mode
D45066: libsys: Fall back to the worst case page size
Attached
Detach File
Event Timeline
Log In to Comment