From owner-p4-projects@FreeBSD.ORG Tue Jun 8 05:46:40 2004 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id B85BA16A4D2; Tue, 8 Jun 2004 05:46:39 +0000 (GMT) Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 915E316A4CE for ; Tue, 8 Jun 2004 05:46:39 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 715D543D39 for ; Tue, 8 Jun 2004 05:46:39 +0000 (GMT) (envelope-from jmallett@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.11/8.12.11) with ESMTP id i585kZdt055786 for ; Tue, 8 Jun 2004 05:46:35 GMT (envelope-from jmallett@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id i585kZt0055783 for perforce@freebsd.org; Tue, 8 Jun 2004 05:46:35 GMT (envelope-from jmallett@freebsd.org) Date: Tue, 8 Jun 2004 05:46:35 GMT Message-Id: <200406080546.i585kZt0055783@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to jmallett@freebsd.org using -f From: Juli Mallett To: Perforce Change Reviews Subject: PERFORCE change 54398 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Jun 2004 05:46:40 -0000 http://perforce.freebsd.org/chv.cgi?CH=54398 Change 54398 by jmallett@jmallett_oingo on 2004/06/08 05:45:35 Get rid of one more bogus indirection. Affected files ... .. //depot/projects/mips/sys/mips/include/pcb.h#6 edit .. //depot/projects/mips/sys/mips/include/reg.h#7 edit .. //depot/projects/mips/sys/mips/mips/genassym.c#12 edit Differences ... ==== //depot/projects/mips/sys/mips/include/pcb.h#6 (text+ko) ==== @@ -37,6 +37,8 @@ __register_t pcb_regs[12]; }; +typedef struct pcb label_t; + #ifdef _KERNEL #define PCB_FSR(pcb) (0) ==== //depot/projects/mips/sys/mips/include/reg.h#7 (text+ko) ==== @@ -41,10 +41,6 @@ long long r_regs[33]; }; -typedef struct cswx { - __register_t val[12]; -} label_t; - /* * Registers for a debugger by way of procfs or ptrace. */ ==== //depot/projects/mips/sys/mips/mips/genassym.c#12 (text+ko) ==== @@ -39,6 +39,7 @@ #include #include +#include #include ASSYM(PC_CURTHREAD, offsetof(struct pcpu, pc_curthread)); @@ -167,18 +168,18 @@ ASSYM(TF_PPL, offsetof(struct trapframe, tf_ppl)); ASSYM(CTXSWFRAME_SIZ, sizeof(label_t)); -ASSYM(SF_REG_SR, offsetof(label_t, val[11])); -ASSYM(SF_REG_RA, offsetof(label_t, val[10])); -ASSYM(SF_REG_S0, offsetof(label_t, val[0])); -ASSYM(SF_REG_S1, offsetof(label_t, val[1])); -ASSYM(SF_REG_S2, offsetof(label_t, val[2])); -ASSYM(SF_REG_S3, offsetof(label_t, val[3])); -ASSYM(SF_REG_S4, offsetof(label_t, val[4])); -ASSYM(SF_REG_S5, offsetof(label_t, val[5])); -ASSYM(SF_REG_S6, offsetof(label_t, val[6])); -ASSYM(SF_REG_S7, offsetof(label_t, val[7])); -ASSYM(SF_REG_SP, offsetof(label_t, val[8])); -ASSYM(SF_REG_S8, offsetof(label_t, val[9])); +ASSYM(SF_REG_SR, offsetof(label_t, pcb_regs[11])); +ASSYM(SF_REG_RA, offsetof(label_t, pcb_regs[10])); +ASSYM(SF_REG_S0, offsetof(label_t, pcb_regs[0])); +ASSYM(SF_REG_S1, offsetof(label_t, pcb_regs[1])); +ASSYM(SF_REG_S2, offsetof(label_t, pcb_regs[2])); +ASSYM(SF_REG_S3, offsetof(label_t, pcb_regs[3])); +ASSYM(SF_REG_S4, offsetof(label_t, pcb_regs[4])); +ASSYM(SF_REG_S5, offsetof(label_t, pcb_regs[5])); +ASSYM(SF_REG_S6, offsetof(label_t, pcb_regs[6])); +ASSYM(SF_REG_S7, offsetof(label_t, pcb_regs[7])); +ASSYM(SF_REG_SP, offsetof(label_t, pcb_regs[8])); +ASSYM(SF_REG_S8, offsetof(label_t, pcb_regs[9])); ASSYM(VM_MIN_ADDRESS, VM_MIN_ADDRESS); ASSYM(VM_MAXUSER_ADDRESS, VM_MAXUSER_ADDRESS);