diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2022-03-22 06:48:37 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2022-03-22 06:48:37 +0000 |
commit | 724faf470bd375cf38c0310ef42dc761767bcc8f (patch) | |
tree | 64c1250cf7b307444649aed232b5954be473b7c9 /sys/arch | |
parent | 1692bd4042b535ec07ea50c27c13a2489ac34f0f (diff) |
Do not bother initializing a0 with a special value in setregs, that's a
FreeBSDism we have no need for.
ok jsg@
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/riscv64/riscv64/machdep.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/arch/riscv64/riscv64/machdep.c b/sys/arch/riscv64/riscv64/machdep.c index 8e5643fb4cc..9e6b3cd9680 100644 --- a/sys/arch/riscv64/riscv64/machdep.c +++ b/sys/arch/riscv64/riscv64/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.26 2021/09/14 12:03:49 jca Exp $ */ +/* $OpenBSD: machdep.c,v 1.27 2022/03/22 06:48:36 miod Exp $ */ /* * Copyright (c) 2014 Patrick Wildt <patrick@blueri.se> @@ -418,7 +418,6 @@ setregs(struct proc *p, struct exec_package *pack, u_long stack, tf->tf_sstatus |= SSTATUS_FS_OFF; memset(tf, 0, sizeof(*tf)); - tf->tf_a[0] = stack; // XXX Inherited from FreeBSD. Why? tf->tf_sp = STACKALIGN(stack); tf->tf_ra = pack->ep_entry; tf->tf_sepc = pack->ep_entry; |