xref: /openbsd/sys/arch/loongson/include/param.h (revision 73471bf0)
1 /*	$OpenBSD: param.h,v 1.3 2013/03/23 16:12:23 deraadt Exp $ */
2 
3 /* Public Domain */
4 
5 #ifndef	_MACHINE_PARAM_H_
6 #define	_MACHINE_PARAM_H_
7 
8 #define	MACHINE		"loongson"
9 #define	_MACHINE	loongson
10 #define	MACHINE_ARCH	"mips64el"	/* not the canonical endianness */
11 #define	_MACHINE_ARCH	mips64el
12 #define	MACHINE_CPU	"mips64"
13 #define	_MACHINE_CPU	mips64
14 #define	MID_MACHINE	MID_MIPS64
15 
16 #ifdef _KERNEL
17 
18 /*
19  * The Loongson level 1 cache expects software to prevent virtual
20  * aliases. Unfortunately, since this cache is physically tagged,
21  * this would require all virtual address to have the same bits 14
22  * and 13 as their physical addresses, which is not something the
23  * kernel can guarantee unless the page size is at least 16KB.
24  */
25 #define	PAGE_SHIFT	14
26 
27 #endif /* _KERNEL */
28 
29 #include <mips64/param.h>
30 
31 #endif /* _MACHINE_PARAM_H_ */
32