diff options
Diffstat (limited to 'sys/arch/mips64')
-rw-r--r-- | sys/arch/mips64/include/mips_cpu.h | 3 | ||||
-rw-r--r-- | sys/arch/mips64/include/timetc.h | 23 |
2 files changed, 25 insertions, 1 deletions
diff --git a/sys/arch/mips64/include/mips_cpu.h b/sys/arch/mips64/include/mips_cpu.h index 65f555043cd..f0e49d6e9f9 100644 --- a/sys/arch/mips64/include/mips_cpu.h +++ b/sys/arch/mips64/include/mips_cpu.h @@ -1,4 +1,4 @@ -/* $OpenBSD: mips_cpu.h,v 1.8 2018/04/09 13:46:15 visa Exp $ */ +/* $OpenBSD: mips_cpu.h,v 1.9 2020/07/18 08:37:43 visa Exp $ */ /*- * Copyright (c) 1992, 1993 @@ -373,6 +373,7 @@ * HWREna register */ #define HWRENA_ULR 0x20000000u +#define HWRENA_CC 0x00000004u #endif /* _KERNEL || _STANDALONE */ diff --git a/sys/arch/mips64/include/timetc.h b/sys/arch/mips64/include/timetc.h new file mode 100644 index 00000000000..fb00493b871 --- /dev/null +++ b/sys/arch/mips64/include/timetc.h @@ -0,0 +1,23 @@ +/* $OpenBSD: timetc.h,v 1.3 2020/07/18 08:37:43 visa Exp $ */ +/* + * Copyright (c) 2020 Paul Irofti <paul@irofti.net> + * + * Permission to use, copy, modify, and distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + */ + +#ifndef _MIPS64_TIMETC_H_ +#define _MIPS64_TIMETC_H_ + +#define TC_CP0_COUNT 1 + +#endif /* _MIPS64_TIMETC_H_ */ |