frame.h (153488) | frame.h (153666) |
---|---|
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 153488 2005-12-16 22:07:41Z jhb $ | 32 * $FreeBSD: head/sys/powerpc/include/frame.h 153666 2005-12-22 22:16:09Z jhb $ |
33 */ 34 35#ifndef _MACHINE_FRAME_H_ 36#define _MACHINE_FRAME_H_ 37 38#include <sys/types.h> 39 40/* --- 19 unchanged lines hidden (view full) --- 60 int exc; 61}; 62/* 63 * This is to ensure alignment of the stackpointer 64 */ 65#define FRAMELEN roundup(sizeof(struct trapframe) + 8, 16) 66#define trapframe(td) ((td)->td_frame) 67 | 33 */ 34 35#ifndef _MACHINE_FRAME_H_ 36#define _MACHINE_FRAME_H_ 37 38#include <sys/types.h> 39 40/* --- 19 unchanged lines hidden (view full) --- 60 int exc; 61}; 62/* 63 * This is to ensure alignment of the stackpointer 64 */ 65#define FRAMELEN roundup(sizeof(struct trapframe) + 8, 16) 66#define trapframe(td) ((td)->td_frame) 67 |
68struct clockframe { 69 register_t srr1; 70 register_t srr0; 71 int pri; 72 int depth; 73}; 74 | |
75/* 76 * Call frame for PowerPC used during fork. 77 */ 78struct callframe { 79 register_t cf_dummy_fp; /* dummy frame pointer */ 80 register_t cf_lr; /* space for link register save */ 81 register_t cf_func; 82 register_t cf_arg0; 83 register_t cf_arg1; 84}; 85 86/* Definitions for syscalls */ 87#define FIRSTARG 3 /* first arg in reg 3 */ 88#define NARGREG 8 /* 8 args in regs */ 89#define MOREARGS(sp) ((caddr_t)((int)(sp) + 8)) /* more args go here */ 90 91#endif /* _MACHINE_FRAME_H_ */ | 68/* 69 * Call frame for PowerPC used during fork. 70 */ 71struct callframe { 72 register_t cf_dummy_fp; /* dummy frame pointer */ 73 register_t cf_lr; /* space for link register save */ 74 register_t cf_func; 75 register_t cf_arg0; 76 register_t cf_arg1; 77}; 78 79/* Definitions for syscalls */ 80#define FIRSTARG 3 /* first arg in reg 3 */ 81#define NARGREG 8 /* 8 args in regs */ 82#define MOREARGS(sp) ((caddr_t)((int)(sp) + 8)) /* more args go here */ 83 84#endif /* _MACHINE_FRAME_H_ */ |