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/ef30d2c535f3
branches: trunk
changeset: 990682:ef30d2c535f3
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 c8fd839f6e12 -r ef30d2c535f3 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