diff options
author | jhibbits <jhibbits@FreeBSD.org> | 2016-04-10 15:50:45 +0000 |
---|---|---|
committer | jhibbits <jhibbits@FreeBSD.org> | 2016-04-10 15:50:45 +0000 |
commit | 6db53037b7cb66dfa64c4503b32d55a70737e114 (patch) | |
tree | 8486a53d58c40c678d39e794b5e14a2c29c81966 /sys/powerpc/booke | |
parent | 19c7765e37f00e2171f79cbe90f99eeda55e07c9 (diff) | |
download | FreeBSD-src-6db53037b7cb66dfa64c4503b32d55a70737e114.zip FreeBSD-src-6db53037b7cb66dfa64c4503b32d55a70737e114.tar.gz |
VM_MAXUSER_ADDRESS is highest page start, not highest address.
In case a single page mapping is requested first, which might overlap the user
address space, fix the device map block to the next page.
Diffstat (limited to 'sys/powerpc/booke')
-rw-r--r-- | sys/powerpc/booke/pmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/powerpc/booke/pmap.c b/sys/powerpc/booke/pmap.c index fd04ab4..42eb631 100644 --- a/sys/powerpc/booke/pmap.c +++ b/sys/powerpc/booke/pmap.c @@ -192,7 +192,7 @@ static tlb_entry_t tlb1[TLB1_MAXENTRIES]; /* Next free entry in the TLB1 */ static unsigned int tlb1_idx; -static vm_offset_t tlb1_map_base = VM_MAXUSER_ADDRESS; +static vm_offset_t tlb1_map_base = VM_MAXUSER_ADDRESS + PAGE_SIZE; static tlbtid_t tid_alloc(struct pmap *); static void tid_flush(tlbtid_t tid); |