1/* $OpenBSD: param.h,v 1.4 2025/12/03 11:59:18 miod 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/*
17 * The Loongson level 1 cache expects software to prevent virtual
18 * aliases. Unfortunately, since this cache is physically tagged,
19 * this would require all virtual address to have the same bits 14
20 * and 13 as their physical addresses, which is not something the
21 * kernel can guarantee unless the page size is at least 16KB.
22 */
23#define PAGE_SHIFT 14
24
25#include <mips64/param.h>
26
27#endif /* _MACHINE_PARAM_H_ */