diff options
author | Philip Guenthe <guenther@cvs.openbsd.org> | 2012-06-21 00:57:00 +0000 |
---|---|---|
committer | Philip Guenthe <guenther@cvs.openbsd.org> | 2012-06-21 00:57:00 +0000 |
commit | 867c8588faf5fba418fc7c3a85aa2bd4c3327e01 (patch) | |
tree | e98c388fcdff4a138a38722ee463c1b12f6c133a /sys/arch/hppa/include | |
parent | 28222fd1268ab97426703666e99f70ed942e847b (diff) |
__tfork() needs to set the stack address of the new thread in the kernel,
so that it can't get a signal while still running on the parent thread's
stack. Also, pass in sizeof(struct __tfork) to provide forward compat
when more members are added. This is an ABI change, so switch syscall
numbers and bump lib majors this time.
ok deraadt@ matthew@
Diffstat (limited to 'sys/arch/hppa/include')
-rw-r--r-- | sys/arch/hppa/include/frame.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/arch/hppa/include/frame.h b/sys/arch/hppa/include/frame.h index 09b289e476f..28810732471 100644 --- a/sys/arch/hppa/include/frame.h +++ b/sys/arch/hppa/include/frame.h @@ -1,4 +1,4 @@ -/* $OpenBSD: frame.h,v 1.18 2011/11/14 14:29:53 deraadt Exp $ */ +/* $OpenBSD: frame.h,v 1.19 2012/06/21 00:56:59 guenther Exp $ */ /* * Copyright (c) 1999-2004 Michael Shalayeff @@ -135,6 +135,11 @@ struct trapframe { unsigned long tf_pad[3]; /* pad to 256 bytes */ }; + +#ifdef _KERNEL +int setstack(struct trapframe *, u_long, register_t); +#endif /* _KERNEL */ + #endif /* !_LOCORE */ #endif /* !_MACHINE_FRAME_H_ */ |