diff options
author | 2020-03-13 00:14:38 +0000 | |
---|---|---|
committer | 2020-03-13 00:14:38 +0000 | |
commit | 4322c1790167b5fa92147e814d8a72f510c1fc99 (patch) | |
tree | a967392601f4825a43c54b3989e7414c99b02eb7 | |
parent | Use strlcpy to make sure 'vm_name' and 'vir_name' are NUL terminated. (diff) | |
download | wireguard-openbsd-4322c1790167b5fa92147e814d8a72f510c1fc99.tar.xz wireguard-openbsd-4322c1790167b5fa92147e814d8a72f510c1fc99.zip |
Add speciulation barrier after the last remaining naked ERET instruction.
While the barrier isn't really needed here, it doesn't hurt and having
it there establishes a pattern for people to follow.
idiomatic deraadt@
-rw-r--r-- | sys/arch/arm64/arm64/locore.S | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/arch/arm64/arm64/locore.S b/sys/arch/arm64/arm64/locore.S index e4c6c335e53..6de148c1f5e 100644 --- a/sys/arch/arm64/arm64/locore.S +++ b/sys/arch/arm64/arm64/locore.S @@ -1,4 +1,4 @@ -/* $OpenBSD: locore.S,v 1.30 2020/03/11 13:41:53 deraadt Exp $ */ +/* $OpenBSD: locore.S,v 1.31 2020/03/13 00:14:38 kettenis Exp $ */ /*- * Copyright (c) 2012-2014 Andrew Turner * All rights reserved. @@ -109,6 +109,8 @@ drop_to_el1: isb eret + dsb nsh + isb .align 3 .Lsctlr_res1: |