1 /* 2 * Copyright 2019 Haiku, Inc. All Rights Reserved. 3 * Distributed under the terms of the MIT License. 4 */ 5 #ifndef _ARCH_SPARC64_SIGNAL_H_ 6 #define _ARCH_SPARC64_SIGNAL_H_ 7 8 9 /* 10 * Architecture-specific structure passed to signal handlers 11 */ 12 13 #if __sparc64__ 14 15 struct vregs 16 { 17 // ulong g0; // always 0, so no need to save 18 ulong g1; 19 ulong g2; 20 ulong g3; 21 ulong g4; 22 ulong g5; 23 ulong g6; 24 ulong g7; 25 ulong o0; 26 ulong o1; 27 ulong o2; 28 ulong o3; 29 ulong o4; 30 ulong o5; 31 ulong sp; 32 ulong o7; 33 ulong l0; 34 ulong l1; 35 ulong l2; 36 ulong l3; 37 ulong l4; 38 ulong l5; 39 ulong l6; 40 ulong l7; 41 ulong i0; 42 ulong i1; 43 ulong i2; 44 ulong i3; 45 ulong i4; 46 ulong i5; 47 ulong fp; 48 ulong i7; 49 // TODO: sparc: Fix floats in vregs 50 }; 51 52 53 #endif /* __sparc64__ */ 54 55 #endif /* _ARCH_SPARC64_SIGNAL_H_ */ 56