diff options
author | 2018-06-22 15:33:33 +0000 | |
---|---|---|
committer | 2018-06-22 15:33:33 +0000 | |
commit | c00195871c3945fc3f8bf2f28fb67b3bea9fc166 (patch) | |
tree | 3df7e5fbd88b1c4241ac907da8c742c0e71ea3a9 /sys | |
parent | Update the pointer to the trapframe in the PCB when handling an AST. (diff) | |
download | wireguard-openbsd-c00195871c3945fc3f8bf2f28fb67b3bea9fc166.tar.xz wireguard-openbsd-c00195871c3945fc3f8bf2f28fb67b3bea9fc166.zip |
Update the pointer to the trapframe in the PCB when handling an AST.
From drahn@, ok guenther@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/arm64/arm64/ast.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/arch/arm64/arm64/ast.c b/sys/arch/arm64/arm64/ast.c index dc5586ff085..57f6b0c3f3f 100644 --- a/sys/arch/arm64/arm64/ast.c +++ b/sys/arch/arm64/arm64/ast.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ast.c,v 1.5 2018/04/12 17:13:43 deraadt Exp $ */ +/* $OpenBSD: ast.c,v 1.6 2018/06/22 15:33:33 kettenis Exp $ */ /* * Copyright (c) 2015 Dale Rahn <drahn@dalerahn.com> * @@ -41,6 +41,8 @@ ast(struct trapframe *tf) p->p_md.md_astpending = 0; + p->p_addr->u_pcb.pcb_tf = tf; + refreshcreds(p); uvmexp.softs++; mi_ast(p, curcpu()->ci_want_resched); |