Date: Thu, 21 Nov 2019 18:49:54 +0000 (UTC) From: Warner Losh <imp@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r354972 - in head/sys: arm/include mips/include Message-ID: <201911211849.xALInsCu012591@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: imp Date: Thu Nov 21 18:49:54 2019 New Revision: 354972 URL: https://svnweb.freebsd.org/changeset/base/354972 Log: Remove two obsolete comments that reference splhigh/splx. Modified: head/sys/arm/include/profile.h head/sys/mips/include/profile.h Modified: head/sys/arm/include/profile.h ============================================================================== --- head/sys/arm/include/profile.h Thu Nov 21 18:21:30 2019 (r354971) +++ head/sys/arm/include/profile.h Thu Nov 21 18:49:54 2019 (r354972) @@ -114,12 +114,6 @@ void user(void); #include <machine/asm.h> #include <machine/cpufunc.h> -/* - * splhigh() and splx() are heavyweight, and call mcount(). Therefore - * we disabled interrupts (IRQ, but not FIQ) directly on the CPU. - * - * We're lucky that the CPSR and 's' both happen to be 'int's. - */ #define MCOUNT_ENTER(s) {s = intr_disable(); } /* kill IRQ */ #define MCOUNT_EXIT(s) {intr_restore(s); } /* restore old value */ Modified: head/sys/mips/include/profile.h ============================================================================== --- head/sys/mips/include/profile.h Thu Nov 21 18:21:30 2019 (r354971) +++ head/sys/mips/include/profile.h Thu Nov 21 18:49:54 2019 (r354972) @@ -76,13 +76,6 @@ ".set at"); #ifdef _KERNEL -/* - * The following two macros do splhigh and splx respectively. - * They have to be defined this way because these are real - * functions on the MIPS, and we do not want to invoke mcount - * recursively. - */ - #define MCOUNT_DECL(s) u_long s; #ifdef SMP extern int mcount_lock;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201911211849.xALInsCu012591>