don't use block scope static function decl. found by gcc4.
This commit is contained in:
parent
881f664bd1
commit
1ceedf04a2
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: cpufunc.h,v 1.6 2005/03/26 20:00:49 bouyer Exp $ */
|
||||
/* $NetBSD: cpufunc.h,v 1.7 2005/04/22 14:47:39 yamt Exp $ */
|
||||
/* NetBSD: cpufunc.h,v 1.28 2004/01/14 11:31:55 yamt Exp */
|
||||
|
||||
/*-
|
||||
|
@ -159,12 +159,10 @@ tlbflush(void)
|
|||
val = rcr3();
|
||||
lcr3(val);
|
||||
}
|
||||
#endif
|
||||
|
||||
static __inline void
|
||||
tlbflushg(void)
|
||||
{
|
||||
static __inline void tlbflush(void);
|
||||
/*
|
||||
* Big hammer: flush all TLB entries, including ones from PTE's
|
||||
* with the G bit set. This should only be necessary if TLB
|
||||
|
@ -194,7 +192,7 @@ tlbflushg(void)
|
|||
#endif
|
||||
tlbflush();
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
#ifdef notyet
|
||||
void setidt(int idx, /*XXX*/caddr_t func, int typ, int dpl);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: xenfunc.h,v 1.4 2005/03/09 22:39:20 bouyer Exp $ */
|
||||
/* $NetBSD: xenfunc.h,v 1.5 2005/04/22 14:47:39 yamt Exp $ */
|
||||
|
||||
/*
|
||||
*
|
||||
|
@ -104,6 +104,8 @@ tlbflush(void)
|
|||
xpq_flush_queue();
|
||||
}
|
||||
|
||||
#define tlbflushg() tlbflush() /* we don't use PGE */
|
||||
|
||||
static __inline u_int
|
||||
rdr6(void)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue