diff options
author | Visa Hankala <visa@cvs.openbsd.org> | 2017-08-08 15:53:56 +0000 |
---|---|---|
committer | Visa Hankala <visa@cvs.openbsd.org> | 2017-08-08 15:53:56 +0000 |
commit | e9ed0474a4966a43576ccc258326dc684d051554 (patch) | |
tree | 3184bdfb339b44307537e6464d8bf73361f5e0ba /sys/arch/amd64/include | |
parent | d9ae936fcd6c3400510bd7c9feb84cfd54259f05 (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.h | 5 |
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 */ |