Mark __sh4_itlb_invalidate_all we call while running on P2 with

__attribute__((always_inline)) or gcc might decide not to inline it,
resulting in P2->P1 call.
This commit is contained in:
uwe 2007-03-31 22:49:49 +00:00
parent bd529f8818
commit 17dd2bf13d

View File

@ -1,4 +1,4 @@
/* $NetBSD: mmu_sh4.c,v 1.11 2006/03/04 01:13:35 uwe Exp $ */
/* $NetBSD: mmu_sh4.c,v 1.12 2007/03/31 22:49:49 uwe Exp $ */
/*-
* Copyright (c) 2002 The NetBSD Foundation, Inc.
@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: mmu_sh4.c,v 1.11 2006/03/04 01:13:35 uwe Exp $");
__KERNEL_RCSID(0, "$NetBSD: mmu_sh4.c,v 1.12 2007/03/31 22:49:49 uwe Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -48,7 +48,10 @@ __KERNEL_RCSID(0, "$NetBSD: mmu_sh4.c,v 1.11 2006/03/04 01:13:35 uwe Exp $");
#define SH4_MMU_HAZARD __asm volatile("nop;nop;nop;nop;nop;nop;nop;nop;")
static inline void __sh4_itlb_invalidate_all(void);
/* Must be inlined because we "call" it while running on P2 */
static inline void __sh4_itlb_invalidate_all(void)
__attribute__((always_inline));
static inline void
__sh4_itlb_invalidate_all()