Deleted Added
full compact
frame.h (219718) frame.h (255273)
1/*-
2 * Copyright (C) 1995, 1996 Wolfgang Solfrank.
3 * Copyright (C) 1995, 1996 TooLs GmbH.
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 15 unchanged lines hidden (view full) ---

24 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
25 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
26 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
27 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
28 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
29 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 *
31 * $NetBSD: frame.h,v 1.2 1999/01/10 10:13:15 tsubai Exp $
1/*-
2 * Copyright (C) 1995, 1996 Wolfgang Solfrank.
3 * Copyright (C) 1995, 1996 TooLs GmbH.
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 15 unchanged lines hidden (view full) ---

24 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
25 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
26 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
27 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
28 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
29 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 *
31 * $NetBSD: frame.h,v 1.2 1999/01/10 10:13:15 tsubai Exp $
32 * $FreeBSD: head/sys/powerpc/include/frame.h 219718 2011-03-17 19:44:00Z andreast $
32 * $FreeBSD: head/sys/powerpc/include/frame.h 255273 2013-09-05 23:00:24Z nwhitehorn $
33 */
34
35#ifndef _MACHINE_FRAME_H_
36#define _MACHINE_FRAME_H_
37
38#include <sys/types.h>
39
40/*

--- 48 unchanged lines hidden (view full) ---

89 register_t cf_cr;
90 register_t cf_lr;
91 register_t cf_compiler;
92 register_t cf_linkeditor;
93 register_t cf_toc;
94 register_t cf_func;
95 register_t cf_arg0;
96 register_t cf_arg1;
33 */
34
35#ifndef _MACHINE_FRAME_H_
36#define _MACHINE_FRAME_H_
37
38#include <sys/types.h>
39
40/*

--- 48 unchanged lines hidden (view full) ---

89 register_t cf_cr;
90 register_t cf_lr;
91 register_t cf_compiler;
92 register_t cf_linkeditor;
93 register_t cf_toc;
94 register_t cf_func;
95 register_t cf_arg0;
96 register_t cf_arg1;
97 register_t _padding; /* Maintain 16-byte alignment */
97};
98#else
99struct callframe {
100 register_t cf_dummy_fp; /* dummy frame pointer */
101 register_t cf_lr; /* space for link register save */
102 register_t cf_func;
103 register_t cf_arg0;
104 register_t cf_arg1;
105};
106#endif
107
108/* Definitions for syscalls */
109#define FIRSTARG 3 /* first arg in reg 3 */
110#define NARGREG 8 /* 8 args in regs */
111#define MOREARGS(sp) ((caddr_t)((uintptr_t)(sp) + \
112 sizeof(struct callframe) - 3*sizeof(register_t))) /* more args go here */
113
114#endif /* _MACHINE_FRAME_H_ */
98};
99#else
100struct callframe {
101 register_t cf_dummy_fp; /* dummy frame pointer */
102 register_t cf_lr; /* space for link register save */
103 register_t cf_func;
104 register_t cf_arg0;
105 register_t cf_arg1;
106};
107#endif
108
109/* Definitions for syscalls */
110#define FIRSTARG 3 /* first arg in reg 3 */
111#define NARGREG 8 /* 8 args in regs */
112#define MOREARGS(sp) ((caddr_t)((uintptr_t)(sp) + \
113 sizeof(struct callframe) - 3*sizeof(register_t))) /* more args go here */
114
115#endif /* _MACHINE_FRAME_H_ */