]>
git.saurik.com Git - apple/libc.git/blob - ppc/gen/assymdefs.c
2 * Copyright (c) 1999 Apple Computer, Inc. All rights reserved.
4 * @APPLE_LICENSE_HEADER_START@
6 * Copyright (c) 1999-2003 Apple Computer, Inc. All Rights Reserved.
8 * This file contains Original Code and/or Modifications of Original Code
9 * as defined in and that are subject to the Apple Public Source License
10 * Version 2.0 (the 'License'). You may not use this file except in
11 * compliance with the License. Please obtain a copy of the License at
12 * http://www.opensource.apple.com/apsl/ and read it before using this
15 * The Original Code and all software distributed under the License are
16 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
17 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
18 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
19 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
20 * Please see the License for the specific language governing rights and
21 * limitations under the License.
23 * @APPLE_LICENSE_HEADER_END@
26 * assymdefs.c -- list of symbols to #define in assym.h
28 #import <bsd/ppc/setjmp.h>
29 #define __TARGET_ARCHITECTURE__ "ppc"
32 #import <bsd/stddef.h>
38 /* This is required for `setjmp' to work. */
39 assert(offsetof(struct _jmp_buf
, csr
[18])
40 == offsetof(struct _jmp_buf
, fp
));
42 comment(MAJOR
, "Structure Offsets");
43 comment(MINOR
, "jmpbuf_t offsets and constants");
45 PRINT_OFFSET(struct _jmp_buf
*, magic
);
46 PRINT_OFFSET(struct _jmp_buf
*, sp
);
47 PRINT_OFFSET(struct _jmp_buf
*, csr
[0]);
48 PRINT_OFFSET(struct _jmp_buf
*, csr
[17]);
49 PRINT_OFFSET(struct _jmp_buf
*, fp
);
50 PRINT_OFFSET(struct _jmp_buf
*, toc
);
51 PRINT_OFFSET(struct _jmp_buf
*, cr
);
52 PRINT_OFFSET(struct _jmp_buf
*, lr
);
53 PRINT_OFFSET(struct _jmp_buf
*, fpr
[0]);
54 PRINT_OFFSET(struct _jmp_buf
*, fpr
[1]);
55 PRINT_OFFSET(struct _jmp_buf
*, fpr
[2]);
56 PRINT_OFFSET(struct _jmp_buf
*, fpr
[3]);
57 PRINT_OFFSET(struct _jmp_buf
*, fpr
[4]);
58 PRINT_OFFSET(struct _jmp_buf
*, fpr
[5]);
59 PRINT_OFFSET(struct _jmp_buf
*, fpr
[6]);
60 PRINT_OFFSET(struct _jmp_buf
*, fpr
[7]);
61 PRINT_OFFSET(struct _jmp_buf
*, fpr
[8]);
62 PRINT_OFFSET(struct _jmp_buf
*, fpr
[9]);
63 PRINT_OFFSET(struct _jmp_buf
*, fpr
[10]);
64 PRINT_OFFSET(struct _jmp_buf
*, fpr
[11]);
65 PRINT_OFFSET(struct _jmp_buf
*, fpr
[12]);
66 PRINT_OFFSET(struct _jmp_buf
*, fpr
[13]);
67 PRINT_OFFSET(struct _jmp_buf
*, fpr
[14]);
68 PRINT_OFFSET(struct _jmp_buf
*, fpr
[15]);
69 PRINT_OFFSET(struct _jmp_buf
*, fpr
[16]);
70 PRINT_OFFSET(struct _jmp_buf
*, fpr
[17]);
71 PRINT_OFFSET(struct _jmp_buf
*, fpscr
);
72 PRINT_OFFSET(struct _jmp_buf
*, sig_onstack
);
73 PRINT_OFFSET(struct _jmp_buf
*, sig_mask
);
74 PRINT_CONSTANT(_JMP_BUF_MAGICNUM
);
76 comment(MINOR
, "sigcontext offsets, sizes, and constants");
77 PRINT_SIZEOF(struct sigcontext
);
78 PRINT_OFFSET(struct sigcontext
*, sc_onstack
);
79 PRINT_OFFSET(struct sigcontext
*, sc_mask
);
80 PRINT_OFFSET(struct sigcontext
*, sc_sp
);
81 PRINT_OFFSET(struct sigcontext
*, sc_cia
);
82 PRINT_OFFSET(struct sigcontext
*, sc_regs_saved
);
83 PRINT_OFFSET(struct sigcontext
*, sc_a0
);
84 PRINT_ENUM(REGS_SAVED_NONE
);
86 comment(MINOR
, "struct sigstack offsets and sizes");
87 PRINT_SIZEOF(struct sigstack
);
88 PRINT_OFFSET(struct sigstack
*, ss_sp
);
89 PRINT_OFFSET(struct sigstack
*, ss_onstack
);