Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/sys Add more cases for the small alignments (useful beca...
details: https://anonhg.NetBSD.org/src/rev/951d1a9a754f
branches: trunk
changeset: 450872:951d1a9a754f
user: christos <christos%NetBSD.org@localhost>
date: Sat Apr 27 17:47:48 2019 +0000
description:
Add more cases for the small alignments (useful because they cover popular
page-sizes), and add a default case.
diffstat:
sys/sys/mman.h | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
diffs (34 lines):
diff -r 92db237c8d4e -r 951d1a9a754f sys/sys/mman.h
--- a/sys/sys/mman.h Sat Apr 27 17:46:08 2019 +0000
+++ b/sys/sys/mman.h Sat Apr 27 17:47:48 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mman.h,v 1.56 2019/04/04 07:51:54 pgoyette Exp $ */
+/* $NetBSD: mman.h,v 1.57 2019/04/27 17:47:48 christos Exp $ */
/*-
* Copyright (c) 1982, 1986, 1993
@@ -134,7 +134,16 @@
b\15STACK\0\
F\30\010\
:\000ALIGN=NONE\0\
+:\012ALIGN=1KB\0\
+:\013ALIGN=2KB\0\
+:\014ALIGN=4KB\0\
+:\015ALIGN=8KB\0\
+:\016ALIGN=16KB\0\
+:\017ALIGN=32KB\0\
:\020ALIGN=64KB\0\
+:\021ALIGN=128KB\0\
+:\022ALIGN=256KB\0\
+:\023ALIGN=512KB\0\
:\024ALIGN=1MB\0\
:\030ALIGN=16MB\0\
:\034ALIGN=256MB\0\
@@ -146,6 +155,7 @@
:\064ALIGN=4PB\0\
:\070ALIGN=64PB\0\
:\074ALIGN=256PB\0\
+*ALIGN=2^%d\0\
"
#endif
Home |
Main Index |
Thread Index |
Old Index