pmap_dispatch.c (190684) | pmap_dispatch.c (192067) |
---|---|
1/*- 2 * Copyright (c) 2005 Peter Grehan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 12 unchanged lines hidden (view full) --- 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * 26 */ 27 28#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2005 Peter Grehan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 12 unchanged lines hidden (view full) --- 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * 26 */ 27 28#include <sys/cdefs.h> |
29__FBSDID("$FreeBSD: head/sys/powerpc/powerpc/pmap_dispatch.c 190684 2009-04-04 02:12:37Z marcel $"); | 29__FBSDID("$FreeBSD: head/sys/powerpc/powerpc/pmap_dispatch.c 192067 2009-05-14 00:34:26Z nwhitehorn $"); |
30 31/* 32 * Dispatch MI pmap calls to the appropriate MMU implementation 33 * through a previously registered kernel object. 34 * 35 * Before pmap_bootstrap() can be called, a CPU module must have 36 * called pmap_mmu_install(). This may be called multiple times: 37 * the highest priority call will be installed as the default --- 466 unchanged lines hidden (view full) --- 504 /* 505 * Try and locate the MMU kobj corresponding to the name 506 */ 507 SET_FOREACH(mmupp, mmu_set) { 508 mmup = *mmupp; 509 510 if (mmup->name && 511 !strcmp(mmup->name, name) && | 30 31/* 32 * Dispatch MI pmap calls to the appropriate MMU implementation 33 * through a previously registered kernel object. 34 * 35 * Before pmap_bootstrap() can be called, a CPU module must have 36 * called pmap_mmu_install(). This may be called multiple times: 37 * the highest priority call will be installed as the default --- 466 unchanged lines hidden (view full) --- 504 /* 505 * Try and locate the MMU kobj corresponding to the name 506 */ 507 SET_FOREACH(mmupp, mmu_set) { 508 mmup = *mmupp; 509 510 if (mmup->name && 511 !strcmp(mmup->name, name) && |
512 prio >= curr_prio) { | 512 (prio >= curr_prio || mmu_def_impl == NULL)) { |
513 curr_prio = prio; 514 mmu_def_impl = mmup; 515 return (TRUE); 516 } 517 } 518 519 return (FALSE); 520} | 513 curr_prio = prio; 514 mmu_def_impl = mmup; 515 return (TRUE); 516 } 517 } 518 519 return (FALSE); 520} |