summaryrefslogtreecommitdiffstats
path: root/sys/alpha
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2001-03-07 05:29:21 +0000
committerjhb <jhb@FreeBSD.org>2001-03-07 05:29:21 +0000
commit1de39ad1a04417a18e6da5be6362356f170d3ca6 (patch)
tree5d71361827a70e27be0f7cfab6b80c7ee6b050a3 /sys/alpha
parentda8355ca0f95dda99540d8f3e6cc1619464e2e8c (diff)
downloadFreeBSD-src-1de39ad1a04417a18e6da5be6362356f170d3ca6.zip
FreeBSD-src-1de39ad1a04417a18e6da5be6362356f170d3ca6.tar.gz
Unrevert the pmap_map() changes. They weren't broken on x86.
Sense beaten into me by: peter
Diffstat (limited to 'sys/alpha')
-rw-r--r--sys/alpha/alpha/pmap.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/sys/alpha/alpha/pmap.c b/sys/alpha/alpha/pmap.c
index 4dd81ad..bdea119 100644
--- a/sys/alpha/alpha/pmap.c
+++ b/sys/alpha/alpha/pmap.c
@@ -884,18 +884,18 @@ pmap_kremove(vm_offset_t va)
* Used to map a range of physical addresses into kernel
* virtual address space.
*
- * For now, VM is already on, we only need to map the
- * specified memory.
+ * The value passed in '*virt' is a suggested virtual address for
+ * the mapping. Architectures which can support a direct-mapped
+ * physical to virtual region can return the appropriate address
+ * within that region, leaving '*virt' unchanged. Other
+ * architectures should map the pages starting at '*virt' and
+ * update '*virt' with the first usable address after the mapped
+ * region.
*/
vm_offset_t
-pmap_map(vm_offset_t virt, vm_offset_t start, vm_offset_t end, int prot)
+pmap_map(vm_offset_t *virt, vm_offset_t start, vm_offset_t end, int prot)
{
- while (start < end) {
- pmap_kenter(virt, start);
- virt += PAGE_SIZE;
- start += PAGE_SIZE;
- }
- return (virt);
+ return ALPHA_PHYS_TO_K0SEG(start);
}
OpenPOWER on IntegriCloud