cpu.h (287884) | cpu.h (292954) |
---|---|
1/*- 2 * Copyright (c) 1990 The Regents of the University of California. 3 * Copyright (c) 2014 The FreeBSD Foundation 4 * All rights reserved. 5 * 6 * This code is derived from software contributed to Berkeley by 7 * William Jolitz. 8 * --- 21 unchanged lines hidden (view full) --- 30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34 * SUCH DAMAGE. 35 * 36 * from: @(#)cpu.h 5.4 (Berkeley) 5/9/91 37 * from: FreeBSD: src/sys/i386/include/cpu.h,v 1.62 2001/06/29 | 1/*- 2 * Copyright (c) 1990 The Regents of the University of California. 3 * Copyright (c) 2014 The FreeBSD Foundation 4 * All rights reserved. 5 * 6 * This code is derived from software contributed to Berkeley by 7 * William Jolitz. 8 * --- 21 unchanged lines hidden (view full) --- 30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34 * SUCH DAMAGE. 35 * 36 * from: @(#)cpu.h 5.4 (Berkeley) 5/9/91 37 * from: FreeBSD: src/sys/i386/include/cpu.h,v 1.62 2001/06/29 |
38 * $FreeBSD: head/sys/arm64/include/cpu.h 287884 2015-09-16 23:59:45Z zbb $ | 38 * $FreeBSD: head/sys/arm64/include/cpu.h 292954 2015-12-30 17:36:34Z andrew $ |
39 */ 40 41#ifndef _MACHINE_CPU_H_ 42#define _MACHINE_CPU_H_ 43 44#include <machine/atomic.h> 45#include <machine/frame.h> 46#include <machine/armreg.h> --- 93 unchanged lines hidden (view full) --- 140extern char etext[]; 141 142extern uint64_t __cpu_affinity[]; 143 144void cpu_halt(void) __dead2; 145void cpu_reset(void) __dead2; 146void fork_trampoline(void); 147void identify_cpu(void); | 39 */ 40 41#ifndef _MACHINE_CPU_H_ 42#define _MACHINE_CPU_H_ 43 44#include <machine/atomic.h> 45#include <machine/frame.h> 46#include <machine/armreg.h> --- 93 unchanged lines hidden (view full) --- 140extern char etext[]; 141 142extern uint64_t __cpu_affinity[]; 143 144void cpu_halt(void) __dead2; 145void cpu_reset(void) __dead2; 146void fork_trampoline(void); 147void identify_cpu(void); |
148void print_cpu_features(u_int); |
|
148void swi_vm(void *v); 149 150#define CPU_AFFINITY(cpu) __cpu_affinity[(cpu)] 151#define CPU_CURRENT_SOCKET \ 152 (CPU_AFF2(CPU_AFFINITY(PCPU_GET(cpuid)))) 153 154static __inline uint64_t 155get_cyclecount(void) --- 29 unchanged lines hidden --- | 149void swi_vm(void *v); 150 151#define CPU_AFFINITY(cpu) __cpu_affinity[(cpu)] 152#define CPU_CURRENT_SOCKET \ 153 (CPU_AFF2(CPU_AFFINITY(PCPU_GET(cpuid)))) 154 155static __inline uint64_t 156get_cyclecount(void) --- 29 unchanged lines hidden --- |