diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2004-03-03 23:13:50 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2004-03-03 23:13:50 +0000 |
commit | 131a937ec00098b1b750393fd7958a48c33c7094 (patch) | |
tree | 8534c32b55ec8582feadeedfcd3d0d6f5a277491 /regress/sys/ptrace | |
parent | 247ccf635b9f8d2fa5080f659a5d26f203a898d6 (diff) |
... and add alpha too, which I forgot earlier.
Diffstat (limited to 'regress/sys/ptrace')
-rw-r--r-- | regress/sys/ptrace/ptrace.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/regress/sys/ptrace/ptrace.c b/regress/sys/ptrace/ptrace.c index ef266051c77..503e23d18ae 100644 --- a/regress/sys/ptrace/ptrace.c +++ b/regress/sys/ptrace/ptrace.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ptrace.c,v 1.3 2004/03/03 22:45:22 miod Exp $ */ +/* $OpenBSD: ptrace.c,v 1.4 2004/03/03 23:13:49 miod Exp $ */ /* * Copyright (c) 2004, Mark Kettenis. * Copyright (c) 2004, Miodrag Vallat. @@ -63,7 +63,9 @@ main(void) * and sparc64 before sparc. */ -#if defined(__x86_64__) +#if defined(__alpha__) + regs.r_regs[R_ZERO]|= 0x07; +#elif defined(__x86_64__) regs.r_rip |= 0x07; #elif defined(__arm__) regs.r_pc |= 0x03; |