Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/mips mips/rmi: Hack to get XLSATX64.MP kernel build...
details: https://anonhg.NetBSD.org/src/rev/6af7c91f5ef2
branches: trunk
changeset: 365131:6af7c91f5ef2
user: riastradh <riastradh%NetBSD.org@localhost>
date: Sat Apr 09 14:09:32 2022 +0000
description:
mips/rmi: Hack to get XLSATX64.MP kernel building again.
Using <mips/asm.h> in a .c file is kinda grody but CALLFRAME_SIZ
doesn't seem to be defined anywhere else. Not sure how this was ever
supposed to work...
diffstat:
sys/arch/mips/include/asm.h | 4 +++-
sys/arch/mips/rmi/rmixl_cpu.c | 5 +++--
2 files changed, 6 insertions(+), 3 deletions(-)
diffs (50 lines):
diff -r 784d9d9f2458 -r 6af7c91f5ef2 sys/arch/mips/include/asm.h
--- a/sys/arch/mips/include/asm.h Sat Apr 09 13:38:17 2022 +0000
+++ b/sys/arch/mips/include/asm.h Sat Apr 09 14:09:32 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: asm.h,v 1.69 2022/02/27 19:22:20 riastradh Exp $ */
+/* $NetBSD: asm.h,v 1.70 2022/04/09 14:09:32 riastradh Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -61,12 +61,14 @@
#include "opt_gprof.h"
#endif
+#ifdef __ASSEMBLER__
#define __BIT(n) (1 << (n))
#define __BITS(hi,lo) ((~((~0)<<((hi)+1)))&((~0)<<(lo)))
#define __LOWEST_SET_BIT(__mask) ((((__mask) - 1) & (__mask)) ^ (__mask))
#define __SHIFTOUT(__x, __mask) (((__x) & (__mask)) / __LOWEST_SET_BIT(__mask))
#define __SHIFTIN(__x, __mask) ((__x) * __LOWEST_SET_BIT(__mask))
+#endif /* __ASSEMBLER__ */
/*
* Define -pg profile entry code.
diff -r 784d9d9f2458 -r 6af7c91f5ef2 sys/arch/mips/rmi/rmixl_cpu.c
--- a/sys/arch/mips/rmi/rmixl_cpu.c Sat Apr 09 13:38:17 2022 +0000
+++ b/sys/arch/mips/rmi/rmixl_cpu.c Sat Apr 09 14:09:32 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rmixl_cpu.c,v 1.12 2020/08/12 07:37:39 skrll Exp $ */
+/* $NetBSD: rmixl_cpu.c,v 1.13 2022/04/09 14:09:32 riastradh Exp $ */
/*
* Copyright 2002 Wasabi Systems, Inc.
@@ -38,7 +38,7 @@
#include "locators.h"
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rmixl_cpu.c,v 1.12 2020/08/12 07:37:39 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rmixl_cpu.c,v 1.13 2022/04/09 14:09:32 riastradh Exp $");
#include "opt_multiprocessor.h"
#include "opt_ddb.h"
@@ -65,6 +65,7 @@
#include <mips/db_machdep.h>
#endif
+#include <mips/asm.h> /* XXX CALLFRAME_SIZ */
static int cpu_rmixl_match(device_t, cfdata_t, void *);
static void cpu_rmixl_attach(device_t, device_t, void *);
Home |
Main Index |
Thread Index |
Old Index