mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-17 10:26:15 +00:00
Try and make these usermode safe, Steve beat me in finding these..
This commit is contained in:
parent
e80a59970c
commit
db7df99ff1
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=25178
@ -30,7 +30,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: cpufunc.h,v 1.62 1997/03/22 18:52:57 kato Exp $
|
||||
* $Id: cpufunc.h,v 1.63 1997/04/26 11:45:36 peter Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -44,8 +44,10 @@
|
||||
#include <sys/types.h>
|
||||
#include <machine/smp.h>
|
||||
|
||||
#ifdef KERNEL
|
||||
#include "opt_smp.h"
|
||||
#include "opt_smp_invltlb.h"
|
||||
#endif
|
||||
|
||||
#ifdef __GNUC__
|
||||
|
||||
@ -205,7 +207,7 @@ invd(void)
|
||||
__asm __volatile("invd");
|
||||
}
|
||||
|
||||
#if defined(SMP) && defined(SMP_INVLTLB)
|
||||
#if defined(SMP) && defined(SMP_INVLTLB) && defined(KERNEL)
|
||||
|
||||
/*
|
||||
* When using APIC IPI's, the inlining cost is prohibitive..
|
||||
@ -232,7 +234,7 @@ invltlb(void)
|
||||
__asm __volatile("movl %%cr3, %0; movl %0, %%cr3" : "=r" (temp)
|
||||
: : "memory");
|
||||
}
|
||||
#endif /* SMP && SMP_INVLTLB */
|
||||
#endif /* SMP && SMP_INVLTLB && KERNEL */
|
||||
|
||||
static __inline u_short
|
||||
inw(u_int port)
|
||||
|
@ -30,7 +30,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: cpufunc.h,v 1.62 1997/03/22 18:52:57 kato Exp $
|
||||
* $Id: cpufunc.h,v 1.63 1997/04/26 11:45:36 peter Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -44,8 +44,10 @@
|
||||
#include <sys/types.h>
|
||||
#include <machine/smp.h>
|
||||
|
||||
#ifdef KERNEL
|
||||
#include "opt_smp.h"
|
||||
#include "opt_smp_invltlb.h"
|
||||
#endif
|
||||
|
||||
#ifdef __GNUC__
|
||||
|
||||
@ -205,7 +207,7 @@ invd(void)
|
||||
__asm __volatile("invd");
|
||||
}
|
||||
|
||||
#if defined(SMP) && defined(SMP_INVLTLB)
|
||||
#if defined(SMP) && defined(SMP_INVLTLB) && defined(KERNEL)
|
||||
|
||||
/*
|
||||
* When using APIC IPI's, the inlining cost is prohibitive..
|
||||
@ -232,7 +234,7 @@ invltlb(void)
|
||||
__asm __volatile("movl %%cr3, %0; movl %0, %%cr3" : "=r" (temp)
|
||||
: : "memory");
|
||||
}
|
||||
#endif /* SMP && SMP_INVLTLB */
|
||||
#endif /* SMP && SMP_INVLTLB && KERNEL */
|
||||
|
||||
static __inline u_short
|
||||
inw(u_int port)
|
||||
|
@ -30,13 +30,15 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: ipl.h,v 1.4 1997/02/22 09:34:45 peter Exp $
|
||||
* $Id: ipl.h,v 1.5 1997/04/26 11:45:37 peter Exp $
|
||||
*/
|
||||
|
||||
#ifndef _ISA_IPL_H_
|
||||
#define _ISA_IPL_H_
|
||||
|
||||
#ifdef KERNEL
|
||||
#include "opt_smp.h"
|
||||
#endif
|
||||
|
||||
#if defined(APIC_IO)
|
||||
|
||||
|
@ -30,13 +30,15 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: spl.h,v 1.17 1997/02/22 09:35:16 peter Exp $
|
||||
* $Id: spl.h,v 1.18 1997/04/26 11:45:48 peter Exp $
|
||||
*/
|
||||
|
||||
#ifndef _MACHINE_IPL_H_
|
||||
#define _MACHINE_IPL_H_
|
||||
|
||||
#include <opt_smp.h>
|
||||
#ifdef KERNEL
|
||||
#include "opt_smp.h"
|
||||
#endif
|
||||
#include <machine/ipl.h> /* XXX "machine" means cpu for i386 */
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user