From owner-p4-projects@FreeBSD.ORG Thu Feb 1 21:29:28 2007 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id A3FD216A40B; Thu, 1 Feb 2007 21:29:28 +0000 (UTC) X-Original-To: perforce@FreeBSD.org Delivered-To: perforce@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7E3DE16A408 for ; Thu, 1 Feb 2007 21:29:28 +0000 (UTC) (envelope-from gonzo@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [69.147.83.41]) by mx1.freebsd.org (Postfix) with ESMTP id 74FB013C478 for ; Thu, 1 Feb 2007 21:29:28 +0000 (UTC) (envelope-from gonzo@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id l11LTSeB033795 for ; Thu, 1 Feb 2007 21:29:28 GMT (envelope-from gonzo@FreeBSD.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id l11LTSmB033792 for perforce@freebsd.org; Thu, 1 Feb 2007 21:29:28 GMT (envelope-from gonzo@FreeBSD.org) Date: Thu, 1 Feb 2007 21:29:28 GMT Message-Id: <200702012129.l11LTSmB033792@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to gonzo@FreeBSD.org using -f From: Oleksandr Tymoshenko To: Perforce Change Reviews Cc: Subject: PERFORCE change 113862 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Feb 2007 21:29:29 -0000 http://perforce.freebsd.org/chv.cgi?CH=113862 Change 113862 by gonzo@gonzo_jeeves on 2007/02/01 21:28:41 o Add storage space for $gp and $fp(AKA $s8) to trapframe struct o Add storage space for $gp to pcb o Add correspondent entries to genassym Affected files ... .. //depot/projects/mips2/src/sys/mips/include/frame.h#5 edit .. //depot/projects/mips2/src/sys/mips/include/pcb.h#5 edit .. //depot/projects/mips2/src/sys/mips/mips/genassym.c#6 edit Differences ... ==== //depot/projects/mips2/src/sys/mips/include/frame.h#5 (text+ko) ==== @@ -74,9 +74,11 @@ #define TF_MULHI 28 #define TF_EPC 29 /* may be changed by trap() call */ -#define TF_SP 30 +#define TF_S8 30 +#define TF_SP 31 +#define TF_GP 32 -#define TF_NREGS 31 +#define TF_NREGS 33 /* Needs to be 8-byte aligned */ struct trapframe { ==== //depot/projects/mips2/src/sys/mips/include/pcb.h#5 (text+ko) ==== @@ -35,7 +35,7 @@ */ struct pcb { caddr_t pcb_onfault; - __register_t pcb_regs[13]; + __register_t pcb_regs[14]; }; #define PCB_REG_S0 (0) @@ -51,6 +51,7 @@ #define PCB_REG_SR (10) #define PCB_REG_RA (11) #define PCB_REG_PC (12) +#define PCB_REG_GP (13) #ifdef _KERNEL #define PCB_FSR(pcb) (0) ==== //depot/projects/mips2/src/sys/mips/mips/genassym.c#6 (text+ko) ==== @@ -157,6 +157,7 @@ ASSYM(TF_REG_MULHI, offsetof(struct trapframe, tf_regs[TF_MULHI])); ASSYM(TF_REG_EPC, offsetof(struct trapframe, tf_regs[TF_EPC])); ASSYM(TF_REG_SP, offsetof(struct trapframe, tf_regs[TF_SP])); +ASSYM(TF_REG_GP, offsetof(struct trapframe, tf_regs[TF_GP])); ASSYM(TF_REG_S0, offsetof(struct trapframe, tf_regs[TF_S0])); ASSYM(TF_REG_S1, offsetof(struct trapframe, tf_regs[TF_S1])); @@ -166,6 +167,7 @@ ASSYM(TF_REG_S5, offsetof(struct trapframe, tf_regs[TF_S5])); ASSYM(TF_REG_S6, offsetof(struct trapframe, tf_regs[TF_S6])); ASSYM(TF_REG_S7, offsetof(struct trapframe, tf_regs[TF_S7])); +ASSYM(TF_REG_S8, offsetof(struct trapframe, tf_regs[TF_S8])); ASSYM(TF_PPL, offsetof(struct trapframe, tf_ppl)); @@ -181,6 +183,7 @@ ASSYM(PCB_REG_SP, offsetof(struct pcb, pcb_regs[PCB_REG_SP])); ASSYM(PCB_REG_SR, offsetof(struct pcb, pcb_regs[PCB_REG_SR])); ASSYM(PCB_REG_RA, offsetof(struct pcb, pcb_regs[PCB_REG_RA])); +ASSYM(PCB_REG_GP, offsetof(struct pcb, pcb_regs[PCB_REG_GP])); ASSYM(VM_MIN_ADDRESS, VM_MIN_ADDRESS); ASSYM(VM_MAXUSER_ADDRESS, VM_MAXUSER_ADDRESS);