Module Name:    src
Committed By:   thorpej
Date:           Sun Jan 14 22:06:03 UTC 2024

Modified Files:
        src/sys/arch/m68k/include: psl.h

Log Message:
Provide a _splx() inline.


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/sys/arch/m68k/include/psl.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/m68k/include/psl.h
diff -u src/sys/arch/m68k/include/psl.h:1.17 src/sys/arch/m68k/include/psl.h:1.18
--- src/sys/arch/m68k/include/psl.h:1.17	Fri Jan 12 23:36:29 2024
+++ src/sys/arch/m68k/include/psl.h	Sun Jan 14 22:06:03 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: psl.h,v 1.17 2024/01/12 23:36:29 thorpej Exp $	*/
+/*	$NetBSD: psl.h,v 1.18 2024/01/14 22:06:03 thorpej Exp $	*/
 
 /*
  * Copyright (c) 1982, 1986, 1993
@@ -85,7 +85,7 @@ getsr(void)
 	return sr;
 }
 
-static __inline int
+static inline int
 _spl(int s)
 {
 	int sr;
@@ -96,7 +96,13 @@ _spl(int s)
 	return sr;
 }
 
-static __inline int
+static inline void
+_splx(int s)
+{
+	__asm volatile("movew %0,%%sr" : : "di" (s) : "memory");
+}
+
+static inline int
 _splraise(int level)
 {
 	int sr;

Reply via email to