cpu.h (202864) | cpu.h (203180) |
---|---|
1/* $OpenBSD: cpu.h,v 1.4 1998/09/15 10:50:12 pefo Exp $ */ 2 3/*- 4 * Copyright (c) 1992, 1993 5 * The Regents of the University of California. All rights reserved. 6 * 7 * This code is derived from software contributed to Berkeley by 8 * Ralph Campbell and Rick Macklem. --- 27 unchanged lines hidden (view full) --- 36 * its documentation for any purpose and without fee is hereby granted, 37 * provided that the above copyright notice appears in all copies. 38 * Digital Equipment Corporation makes no representations about the 39 * suitability of this software for any purpose. It is provided "as is" 40 * without express or implied warranty. 41 * 42 * from: @(#)cpu.h 8.4 (Berkeley) 1/4/94 43 * JNPR: cpu.h,v 1.9.2.2 2007/09/10 08:23:46 girish | 1/* $OpenBSD: cpu.h,v 1.4 1998/09/15 10:50:12 pefo Exp $ */ 2 3/*- 4 * Copyright (c) 1992, 1993 5 * The Regents of the University of California. All rights reserved. 6 * 7 * This code is derived from software contributed to Berkeley by 8 * Ralph Campbell and Rick Macklem. --- 27 unchanged lines hidden (view full) --- 36 * its documentation for any purpose and without fee is hereby granted, 37 * provided that the above copyright notice appears in all copies. 38 * Digital Equipment Corporation makes no representations about the 39 * suitability of this software for any purpose. It is provided "as is" 40 * without express or implied warranty. 41 * 42 * from: @(#)cpu.h 8.4 (Berkeley) 1/4/94 43 * JNPR: cpu.h,v 1.9.2.2 2007/09/10 08:23:46 girish |
44 * $FreeBSD: head/sys/mips/include/cpu.h 202864 2010-01-23 03:19:13Z neel $ | 44 * $FreeBSD: head/sys/mips/include/cpu.h 203180 2010-01-30 01:54:29Z neel $ |
45 */ 46 47#ifndef _MACHINE_CPU_H_ 48#define _MACHINE_CPU_H_ 49 50#include <machine/psl.h> 51#include <machine/endian.h> 52 --- 251 unchanged lines hidden (view full) --- 304#define VMTLB_PID 0x000000ff 305#define VMTLB_PID_R9K 0x00000fff 306#define VMTLB_PID_SHIFT 0 307#define VMTLB_VIRT_PAGE_SHIFT 12 308#define VMTLB_VIRT_PAGE_SHIFT_R9K 13 309 310/* 311 * The first TLB entry that write random hits. | 45 */ 46 47#ifndef _MACHINE_CPU_H_ 48#define _MACHINE_CPU_H_ 49 50#include <machine/psl.h> 51#include <machine/endian.h> 52 --- 251 unchanged lines hidden (view full) --- 304#define VMTLB_PID 0x000000ff 305#define VMTLB_PID_R9K 0x00000fff 306#define VMTLB_PID_SHIFT 0 307#define VMTLB_VIRT_PAGE_SHIFT 12 308#define VMTLB_VIRT_PAGE_SHIFT_R9K 13 309 310/* 311 * The first TLB entry that write random hits. |
312 * TLB entry 0 maps the kernel stack of the currently running thread 313 * TLB entry 1 maps the pcpu area of processor (only for SMP builds) |
|
312 */ | 314 */ |
315#define KSTACK_TLB_ENTRY 0 316#ifdef SMP 317#define PCPU_TLB_ENTRY 1 318#define VMWIRED_ENTRIES 2 319#else |
|
313#define VMWIRED_ENTRIES 1 | 320#define VMWIRED_ENTRIES 1 |
321#endif /* SMP */ |
|
314 315/* 316 * The number of process id entries. 317 */ 318#define VMNUM_PIDS 256 319 320/* 321 * TLB probe return codes. --- 253 unchanged lines hidden --- | 322 323/* 324 * The number of process id entries. 325 */ 326#define VMNUM_PIDS 256 327 328/* 329 * TLB probe return codes. --- 253 unchanged lines hidden --- |