Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/powerpc/include fix profiling kernel build
details: https://anonhg.NetBSD.org/src/rev/f16940a3851d
branches: trunk
changeset: 1024756:f16940a3851d
user: ryo <ryo%NetBSD.org@localhost>
date: Tue Nov 02 11:22:03 2021 +0000
description:
fix profiling kernel build
diffstat:
sys/arch/powerpc/include/profile.h | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (17 lines):
diff -r 55d7c1d6e1fe -r f16940a3851d sys/arch/powerpc/include/profile.h
--- a/sys/arch/powerpc/include/profile.h Tue Nov 02 11:21:24 2021 +0000
+++ b/sys/arch/powerpc/include/profile.h Tue Nov 02 11:22:03 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: profile.h,v 1.9 2013/09/12 15:36:17 joerg Exp $ */
+/* $NetBSD: profile.h,v 1.10 2021/11/02 11:22:03 ryo Exp $ */
/*-
* Copyright (c) 2000 Tsubai Masanari. All rights reserved.
@@ -132,6 +132,7 @@
#define MCOUNT_ENTER do s = wrtee(0); while (/*CONSTCOND*/ 0)
#define MCOUNT_EXIT wrtee(s)
#else
+#include <powerpc/psl.h>
#define MCOUNT_ENTER \
__asm volatile("mfmsr %0" : "=r"(s)); \
if ((s & (PSL_IR | PSL_DR)) != (PSL_IR | PSL_DR)) \
Home |
Main Index |
Thread Index |
Old Index