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:
@@ -1353,13 +1353,9 @@ pci_module_init(void)
|
|||||||
|
|
||||||
check_pci();
|
check_pci();
|
||||||
|
|
||||||
gPCI_Region = vm_map_physical_memory(vm_get_kernel_aspace_id(),
|
gPCI_Region = map_physical_memory("pci_bios", (void *)0xf0000,
|
||||||
"pci_bios",
|
0x10000, B_ANY_KERNEL_ADDRESS, B_KERNEL_READ_AREA,
|
||||||
(void **)&gPCI_BIOS_Address,
|
(void **)&gPCI_BIOS_Address);
|
||||||
REGION_ADDR_ANY_ADDRESS,
|
|
||||||
0x10000,
|
|
||||||
LOCK_RO | LOCK_KERNEL,
|
|
||||||
(addr)0xf0000);
|
|
||||||
|
|
||||||
pirTable = find_pir_table();
|
pirTable = find_pir_table();
|
||||||
if (pirTable) {
|
if (pirTable) {
|
||||||
|
|||||||
@@ -58,8 +58,8 @@ arch_vm_init_endvm(kernel_args *ka)
|
|||||||
TRACE(("arch_vm_init_endvm: entry\n"));
|
TRACE(("arch_vm_init_endvm: entry\n"));
|
||||||
|
|
||||||
// map 0 - 0xa0000 directly
|
// map 0 - 0xa0000 directly
|
||||||
id = vm_map_physical_memory(vm_get_kernel_aspace_id(), "dma_region", &ptr,
|
id = map_physical_memory("dma_region", (void *)0x0, 0xa0000,
|
||||||
REGION_ADDR_ANY_ADDRESS, 0xa0000, LOCK_RW | LOCK_KERNEL, 0x0);
|
B_ANY_KERNEL_ADDRESS, B_KERNEL_READ_AREA | B_KERNEL_WRITE_AREA, &ptr);
|
||||||
if (id < 0) {
|
if (id < 0) {
|
||||||
panic("arch_vm_init_endvm: unable to map dma region\n");
|
panic("arch_vm_init_endvm: unable to map dma region\n");
|
||||||
return B_NO_MEMORY;
|
return B_NO_MEMORY;
|
||||||
|
|||||||
Reference in New Issue
Block a user