From d12497173ab9c61a4dd59071c3e96cc9ea833bbb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Fri, 13 Oct 2006 11:35:28 +0000 Subject: [PATCH] Fixed PPC kernel build (and a warning). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19058 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/kernel/arch/ppc/Jamfile | 4 ++++ src/system/kernel/arch/ppc/arch_vm_translation_map.cpp | 5 +++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/system/kernel/arch/ppc/Jamfile b/src/system/kernel/arch/ppc/Jamfile index 74ca58d3d7..87d23d3dab 100644 --- a/src/system/kernel/arch/ppc/Jamfile +++ b/src/system/kernel/arch/ppc/Jamfile @@ -1,6 +1,10 @@ SubDir HAIKU_TOP src system kernel arch ppc ; SubDirHdrs $(SUBDIR) $(DOTDOT) generic ; +#UseHeaders $(TARGET_PRIVATE_KERNEL_HEADERS) ; +# for some reason, this doesn't work +UsePrivateHeaders kernel [ FDirName kernel arch $(TARGET_ARCH) ] + [ FDirName kernel boot platform $(HAIKU_BOOT_PLATFORM) ] ; SEARCH_SOURCE += [ FDirName $(SUBDIR) $(DOTDOT) generic ] ; diff --git a/src/system/kernel/arch/ppc/arch_vm_translation_map.cpp b/src/system/kernel/arch/ppc/arch_vm_translation_map.cpp index fbbf30a2be..767c2dbc26 100644 --- a/src/system/kernel/arch/ppc/arch_vm_translation_map.cpp +++ b/src/system/kernel/arch/ppc/arch_vm_translation_map.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2003-2005, Axel Dörfler, axeld@pinc-software.de. + * Copyright 2003-2006, Axel Dörfler, axeld@pinc-software.de. * Distributed under the terms of the MIT License. * * Copyright 2001, Travis Geiselbrecht. All rights reserved. @@ -161,7 +161,8 @@ static void destroy_tmap(vm_translation_map *map) { if (map->map_count > 0) { - panic("vm_translation_map.destroy_tmap: map %p has positive map count %d\n", map, map->map_count); + panic("vm_translation_map.destroy_tmap: map %p has positive map count %ld\n", + map, map->map_count); } // mark the vsid base not in use