2008-06-26 02:57:34 +04:00
|
|
|
/*
|
2012-07-19 22:11:40 +04:00
|
|
|
* Copyright 2008-2012 Haiku, Inc. All Rights Reserved.
|
2008-06-26 02:57:34 +04:00
|
|
|
* Distributed under the terms of the MIT License.
|
|
|
|
*/
|
|
|
|
#ifndef _ARCH_SIGNAL_H_
|
|
|
|
#define _ARCH_SIGNAL_H_
|
|
|
|
|
2010-11-04 00:46:47 +03:00
|
|
|
|
2008-06-26 02:57:34 +04:00
|
|
|
/*
|
|
|
|
* Architecture-specific structure passed to signal handlers
|
|
|
|
*/
|
|
|
|
|
2018-08-01 03:12:18 +03:00
|
|
|
#if defined(__arm__)
|
2008-06-26 02:57:34 +04:00
|
|
|
struct vregs
|
|
|
|
{
|
|
|
|
ulong r0;
|
|
|
|
ulong r1;
|
|
|
|
ulong r2;
|
|
|
|
ulong r3;
|
|
|
|
ulong r4;
|
|
|
|
ulong r5;
|
|
|
|
ulong r6;
|
|
|
|
ulong r7;
|
|
|
|
ulong r8;
|
|
|
|
ulong r9;
|
|
|
|
ulong r10;
|
|
|
|
ulong r11;
|
|
|
|
ulong r12;
|
|
|
|
ulong r13; /* stack pointer */
|
|
|
|
ulong r14; /* link register */
|
|
|
|
ulong r15; /* program counter */
|
|
|
|
ulong cpsr;
|
2013-10-29 01:02:11 +04:00
|
|
|
// TODO: ARM: fix floats in vregs, add missing stuff.
|
2008-06-26 02:57:34 +04:00
|
|
|
};
|
2018-08-01 03:12:18 +03:00
|
|
|
#endif /* defined(__arm__) */
|
2008-06-26 02:57:34 +04:00
|
|
|
|
|
|
|
|
|
|
|
#endif /* _ARCH_SIGNAL_H_ */
|