Date: Tue, 8 Jun 2004 05:46:35 GMT From: Juli Mallett <jmallett@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 54398 for review Message-ID: <200406080546.i585kZt0055783@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 <vm/vm_map.h> #include <machine/locore.h> +#include <machine/pcb.h> #include <machine/reg.h> 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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200406080546.i585kZt0055783>