summaryrefslogtreecommitdiff
path: root/sys/arch/amd64/include
diff options
context:
space:
mode:
authorVisa Hankala <visa@cvs.openbsd.org>2017-08-08 15:53:56 +0000
committerVisa Hankala <visa@cvs.openbsd.org>2017-08-08 15:53:56 +0000
commite9ed0474a4966a43576ccc258326dc684d051554 (patch)
tree3184bdfb339b44307537e6464d8bf73361f5e0ba /sys/arch/amd64/include
parentd9ae936fcd6c3400510bd7c9feb84cfd54259f05 (diff)
Get rid of read_psl() and write_psl() by replacing
read_psl() + disable_intr() with intr_disable(), and write_psl() with intr_restore(). OK kettenis@
Diffstat (limited to 'sys/arch/amd64/include')
-rw-r--r--sys/arch/amd64/include/cpufunc.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/arch/amd64/include/cpufunc.h b/sys/arch/amd64/include/cpufunc.h
index 14131ad0732..cb569d4afc2 100644
--- a/sys/arch/amd64/include/cpufunc.h
+++ b/sys/arch/amd64/include/cpufunc.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: cpufunc.h,v 1.19 2017/05/30 15:11:32 deraadt Exp $ */
+/* $OpenBSD: cpufunc.h,v 1.20 2017/08/08 15:53:55 visa Exp $ */
/* $NetBSD: cpufunc.h,v 1.3 2003/05/08 10:27:43 fvdl Exp $ */
/*-
@@ -313,9 +313,6 @@ breakpoint(void)
__asm volatile("int $3");
}
-#define read_psl() read_rflags()
-#define write_psl(x) write_rflags(x)
-
void amd64_errata(struct cpu_info *);
#endif /* _KERNEL */