Now uses the BeOS map_physical_memory() call.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4334 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
a36eac86ac
commit
414ecbd490
@ -1353,13 +1353,9 @@ pci_module_init(void)
|
||||
|
||||
check_pci();
|
||||
|
||||
gPCI_Region = vm_map_physical_memory(vm_get_kernel_aspace_id(),
|
||||
"pci_bios",
|
||||
(void **)&gPCI_BIOS_Address,
|
||||
REGION_ADDR_ANY_ADDRESS,
|
||||
0x10000,
|
||||
LOCK_RO | LOCK_KERNEL,
|
||||
(addr)0xf0000);
|
||||
gPCI_Region = map_physical_memory("pci_bios", (void *)0xf0000,
|
||||
0x10000, B_ANY_KERNEL_ADDRESS, B_KERNEL_READ_AREA,
|
||||
(void **)&gPCI_BIOS_Address);
|
||||
|
||||
pirTable = find_pir_table();
|
||||
if (pirTable) {
|
||||
|
@ -58,8 +58,8 @@ arch_vm_init_endvm(kernel_args *ka)
|
||||
TRACE(("arch_vm_init_endvm: entry\n"));
|
||||
|
||||
// map 0 - 0xa0000 directly
|
||||
id = vm_map_physical_memory(vm_get_kernel_aspace_id(), "dma_region", &ptr,
|
||||
REGION_ADDR_ANY_ADDRESS, 0xa0000, LOCK_RW | LOCK_KERNEL, 0x0);
|
||||
id = map_physical_memory("dma_region", (void *)0x0, 0xa0000,
|
||||
B_ANY_KERNEL_ADDRESS, B_KERNEL_READ_AREA | B_KERNEL_WRITE_AREA, &ptr);
|
||||
if (id < 0) {
|
||||
panic("arch_vm_init_endvm: unable to map dma region\n");
|
||||
return B_NO_MEMORY;
|
||||
|
Loading…
Reference in New Issue
Block a user