From f97fa70dfbb253ccd8c674cb1be18172ae35c1e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Thu, 17 Jul 2008 00:10:52 +0000 Subject: [PATCH] * Build fix: the AGP-GART bus manager also used vm_page_allocate_page_run(). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26460 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/add-ons/kernel/bus_managers/agp_gart/agp_gart.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/add-ons/kernel/bus_managers/agp_gart/agp_gart.cpp b/src/add-ons/kernel/bus_managers/agp_gart/agp_gart.cpp index c4b6abbdf1..aff8ba31fb 100644 --- a/src/add-ons/kernel/bus_managers/agp_gart/agp_gart.cpp +++ b/src/add-ons/kernel/bus_managers/agp_gart/agp_gart.cpp @@ -534,7 +534,7 @@ Aperture::AllocateMemory(aperture_memory *memory, uint32 flags) uint32 count = size / B_PAGE_SIZE; if ((flags & B_APERTURE_NEED_PHYSICAL) != 0) { - memory->page = vm_page_allocate_page_run(PAGE_STATE_CLEAR, count); + memory->page = vm_page_allocate_page_run(PAGE_STATE_CLEAR, 0, count); if (memory->page == NULL) return B_NO_MEMORY; } else { @@ -987,7 +987,7 @@ get_aperture_info(aperture_id id, aperture_info *info) if (aperture == NULL) return B_ENTRY_NOT_FOUND; - Autolock _(aperture->Lock()); + Autolock _(aperture->Lock()); return aperture->GetInfo(info); }