cpufunc.h (d184e84f7e816bf7714ab2e4a13d124073daf8a8) | cpufunc.h (2c7a40c7ca0475936c00ceb08a4935cc5c4ff7f0) |
---|---|
1/*- 2 * Copyright (c) 1993 The Regents of the University of California. 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 --- 16 unchanged lines hidden (view full) --- 25 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * | 1/*- 2 * Copyright (c) 1993 The Regents of the University of California. 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 --- 16 unchanged lines hidden (view full) --- 25 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * |
33 * $Id: cpufunc.h,v 1.18 1994/08/23 11:57:19 paul Exp $ | 33 * $Id: cpufunc.h,v 1.19 1994/08/23 13:41:37 paul Exp $ |
34 */ 35 36/* 37 * Functions to provide access to special i386 instructions. 38 * XXX - bezillions more are defined in locore.s but are not declared anywhere. 39 */ 40 41#ifndef _MACHINE_CPUFUNC_H_ --- 46 unchanged lines hidden (view full) --- 88{ 89 u_char al; 90 91 al = data; /* help gcc-1.40's register allocator */ 92 __asm __volatile("outb %0,%%dx" : : "a" (al), "d" (port)); 93} 94 95static inline void | 34 */ 35 36/* 37 * Functions to provide access to special i386 instructions. 38 * XXX - bezillions more are defined in locore.s but are not declared anywhere. 39 */ 40 41#ifndef _MACHINE_CPUFUNC_H_ --- 46 unchanged lines hidden (view full) --- 88{ 89 u_char al; 90 91 al = data; /* help gcc-1.40's register allocator */ 92 __asm __volatile("outb %0,%%dx" : : "a" (al), "d" (port)); 93} 94 95static inline void |
96tlbflush() | 96pmap_update() |
97{ 98 __asm __volatile("movl %%cr3, %%eax; movl %%eax, %%cr3" : : : "ax"); 99} 100 101static inline u_long 102rcr2() 103{ 104 u_long data; --- 57 unchanged lines hidden --- | 97{ 98 __asm __volatile("movl %%cr3, %%eax; movl %%eax, %%cr3" : : : "ax"); 99} 100 101static inline u_long 102rcr2() 103{ 104 u_long data; --- 57 unchanged lines hidden --- |