From 63dff3f9a33f2b74d1113b5a61cd64eed6b2bf15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= Date: Wed, 25 Jun 2008 22:57:34 +0000 Subject: [PATCH] Placeholder for ARM. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26133 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/posix/arch/arm/arch_setjmp.h | 12 +++++++++ headers/posix/arch/arm/signal.h | 37 ++++++++++++++++++++++++++++ 2 files changed, 49 insertions(+) create mode 100644 headers/posix/arch/arm/arch_setjmp.h create mode 100644 headers/posix/arch/arm/signal.h diff --git a/headers/posix/arch/arm/arch_setjmp.h b/headers/posix/arch/arm/arch_setjmp.h new file mode 100644 index 0000000000..2a86ea60ac --- /dev/null +++ b/headers/posix/arch/arm/arch_setjmp.h @@ -0,0 +1,12 @@ +/* + * Copyright 2008, Haiku, Inc. + * Distributed under the terms of the MIT License. + */ +#ifndef _ARCH_SETJMP_H_ +#define _ARCH_SETJMP_H_ + +#define _SETJMP_BUF_SZ (7+6+2+8*((96/8)/4)) +typedef int __jmp_buf[_SETJMP_BUF_SZ]; +#warning ARM: fix jmpbuf size + +#endif /* _ARCH_SETJMP_H_ */ diff --git a/headers/posix/arch/arm/signal.h b/headers/posix/arch/arm/signal.h new file mode 100644 index 0000000000..5aaa8681b6 --- /dev/null +++ b/headers/posix/arch/arm/signal.h @@ -0,0 +1,37 @@ +/* + * Copyright 2008, Haiku, Inc. All Rights Reserved. + * Distributed under the terms of the MIT License. + */ +#ifndef _ARCH_SIGNAL_H_ +#define _ARCH_SIGNAL_H_ + +/* + * Architecture-specific structure passed to signal handlers + */ + +#if __ARM__ +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; +#warning ARM: fix floats in vregs, add missing stuff. +}; +#endif /* __ARM__ */ + + +#endif /* _ARCH_SIGNAL_H_ */