Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F149324728
D50013.1789859089.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
693 B
Referenced Files
None
Subscribers
None
D50013.1789859089.diff
View Options
diff --git a/sys/kern/subr_devmap.c b/sys/kern/subr_devmap.c
--- a/sys/kern/subr_devmap.c
+++ b/sys/kern/subr_devmap.c
@@ -37,6 +37,10 @@
#include <vm/pmap.h>
#include <machine/vmparam.h>
+#ifdef __arm__
+#include <machine/pte.h>
+#endif
+
static const struct devmap_entry *devmap_table;
static boolean_t devmap_bootstrap_done = false;
@@ -139,7 +143,7 @@
* also align the virtual address to the next-lower 1MB boundary so that
* we end with a nice efficient section mapping.
*/
- if ((pa & 0x000fffff) == 0 && (sz & 0x000fffff) == 0) {
+ if ((pa & L1_S_OFFSET) == 0 && (sz & L1_S_OFFSET) == 0) {
akva_devmap_vaddr = trunc_1mpage(akva_devmap_vaddr - sz);
} else
#endif
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Sep 19, 11:04 PM (15 h, 3 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29801139
Default Alt Text
D50013.1789859089.diff (693 B)
Attached To
Mode
D50013: subr_devmap: Use the arm L1_S macro
Attached
Detach File
Event Timeline
Log In to Comment