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