/linux-2.4.37.9/arch/sh64/kernel/ |
D | process.c | 366 void show_regs(struct pt_regs * regs) in show_regs() argument 372 ah = (regs->pc) >> 32; in show_regs() 373 al = (regs->pc) & 0xffffffff; in show_regs() 374 bh = (regs->regs[18]) >> 32; in show_regs() 375 bl = (regs->regs[18]) & 0xffffffff; in show_regs() 376 ch = (regs->regs[15]) >> 32; in show_regs() 377 cl = (regs->regs[15]) & 0xffffffff; in show_regs() 381 ah = (regs->sr) >> 32; in show_regs() 382 al = (regs->sr) & 0xffffffff; in show_regs() 394 ah = (regs->regs[0]) >> 32; in show_regs() [all …]
|
D | signal.c | 36 #define REF_REG_RET regs->regs[REG_RET] 37 #define REF_REG_SP regs->regs[REG_SP] 38 #define DEREF_REG_PR regs->regs[REG_PR] 44 asmlinkage int do_signal(struct pt_regs *regs, sigset_t *oldset); 89 struct pt_regs * regs) in sys_sigsuspend() argument 104 regs->pc += 4; /* because sys_sigreturn decrements the pc */ in sys_sigsuspend() 105 if (do_signal (regs, &saveset)) in sys_sigsuspend() 108 regs->pc -= 4; in sys_sigsuspend() 118 struct pt_regs * regs) in sys_rt_sigsuspend() argument 139 regs->pc += 4; /* because sys_sigreturn decrements the pc */ in sys_rt_sigsuspend() [all …]
|
D | traps.c | 45 struct pt_regs *regs); 51 unsigned long error_code, struct pt_regs *regs, struct task_struct *tsk); 54 asmlinkage void do_##name(unsigned long error_code, struct pt_regs *regs) \ 56 do_unhandled_exception(trapnr, signr, str, __FUNCTION__, error_code, regs, current); \ 61 void die(const char * str, struct pt_regs * regs, long err) in die() argument 66 show_regs(regs); in die() 71 static inline void die_if_kernel(const char * str, struct pt_regs * regs, long err) in die_if_kernel() argument 73 if (!user_mode(regs)) in die_if_kernel() 74 die(str, regs, err); in die_if_kernel() 77 static void die_if_no_fixup(const char * str, struct pt_regs * regs, long err) in die_if_no_fixup() argument [all …]
|
/linux-2.4.37.9/arch/ppc/kernel/ |
D | traps.c | 46 extern void xmon(struct pt_regs *regs); 47 extern int xmon_bpt(struct pt_regs *regs); 48 extern int xmon_sstep(struct pt_regs *regs); 49 extern int xmon_iabr_match(struct pt_regs *regs); 50 extern int xmon_dabr_match(struct pt_regs *regs); 51 extern void (*xmon_fault_handler)(struct pt_regs *regs); 55 void (*debugger)(struct pt_regs *regs) = xmon; 56 int (*debugger_bpt)(struct pt_regs *regs) = xmon_bpt; 57 int (*debugger_sstep)(struct pt_regs *regs) = xmon_sstep; 58 int (*debugger_iabr_match)(struct pt_regs *regs) = xmon_iabr_match; [all …]
|
/linux-2.4.37.9/include/asm-sh64/ |
D | elf.h | 77 do { _r->regs[0]=0; _r->regs[1]=0; _r->regs[2]=0; _r->regs[3]=0; \ 78 _r->regs[4]=0; _r->regs[5]=0; _r->regs[6]=0; _r->regs[7]=0; \ 79 _r->regs[8]=0; _r->regs[9]=0; _r->regs[10]=0; _r->regs[11]=0; \ 80 _r->regs[12]=0; _r->regs[13]=0; _r->regs[14]=0; _r->regs[15]=0; \ 81 _r->regs[16]=0; _r->regs[17]=0; _r->regs[18]=0; _r->regs[19]=0; \ 82 _r->regs[20]=0; _r->regs[21]=0; _r->regs[22]=0; _r->regs[23]=0; \ 83 _r->regs[24]=0; _r->regs[25]=0; _r->regs[26]=0; _r->regs[27]=0; \ 84 _r->regs[28]=0; _r->regs[29]=0; _r->regs[30]=0; _r->regs[31]=0; \ 85 _r->regs[32]=0; _r->regs[33]=0; _r->regs[34]=0; _r->regs[35]=0; \ 86 _r->regs[36]=0; _r->regs[37]=0; _r->regs[38]=0; _r->regs[39]=0; \ [all …]
|
/linux-2.4.37.9/arch/parisc/kernel/ |
D | unaligned.c | 123 void die_if_kernel (char *str, struct pt_regs *regs, long err); 125 static int emulate_ldh(struct pt_regs *regs, int toreg) in emulate_ldh() argument 127 unsigned long saddr = regs->ior; in emulate_ldh() 131 regs->isr, regs->ior, toreg); in emulate_ldh() 139 : "0" (val), "r" (saddr), "r" (regs->isr) in emulate_ldh() 145 regs->gr[toreg] = val; in emulate_ldh() 149 static int emulate_ldw(struct pt_regs *regs, int toreg) in emulate_ldw() argument 151 unsigned long saddr = regs->ior; in emulate_ldw() 155 regs->isr, regs->ior, toreg); in emulate_ldw() 167 : "0" (val), "r" (saddr), "r" (regs->isr) in emulate_ldw() [all …]
|
D | traps.c | 117 show_trace((unsigned long *)tsk->thread.regs.ksp); in show_trace_task() 156 void show_regs(struct pt_regs *regs) in show_regs() argument 164 level = user_mode(regs) ? KERN_DEBUG : KERN_CRIT; in show_regs() 169 printbinary(buf, regs->gr[0], 32); in show_regs() 177 p += sprintf(p, " " RFMT, (i+j) == 0 ? 0 : regs->gr[i + j]); in show_regs() 187 p += sprintf(p, " " RFMT, regs->sr[i + j]); in show_regs() 195 regs->fr[i], i+1, regs->fr[i+1]); in show_regs() 202 level, regs->iasq[0], regs->iasq[1], regs->iaoq[0], regs->iaoq[1]); in show_regs() 204 level, regs->iir, regs->isr, regs->ior); in show_regs() 207 printk("%s ORIG_R28: " RFMT "\n", level, regs->orig_r28); in show_regs() [all …]
|
/linux-2.4.37.9/arch/ppc64/kernel/ |
D | traps.c | 56 extern void xmon(struct pt_regs *regs); 57 extern int xmon_bpt(struct pt_regs *regs); 58 extern int xmon_sstep(struct pt_regs *regs); 59 extern int xmon_iabr_match(struct pt_regs *regs); 60 extern int xmon_dabr_match(struct pt_regs *regs); 61 extern void (*xmon_fault_handler)(struct pt_regs *regs); 65 void (*debugger)(struct pt_regs *regs) = xmon; 66 int (*debugger_bpt)(struct pt_regs *regs) = xmon_bpt; 67 int (*debugger_sstep)(struct pt_regs *regs) = xmon_sstep; 68 int (*debugger_iabr_match)(struct pt_regs *regs) = xmon_iabr_match; [all …]
|
/linux-2.4.37.9/include/asm-parisc/ |
D | assembly.h | 129 .macro save_general regs 130 STREG %r1, PT_GR1 (\regs) 131 STREG %r2, PT_GR2 (\regs) 132 STREG %r3, PT_GR3 (\regs) 133 STREG %r4, PT_GR4 (\regs) 134 STREG %r5, PT_GR5 (\regs) 135 STREG %r6, PT_GR6 (\regs) 136 STREG %r7, PT_GR7 (\regs) 137 STREG %r8, PT_GR8 (\regs) 138 STREG %r9, PT_GR9 (\regs) [all …]
|
/linux-2.4.37.9/arch/s390x/kernel/ |
D | traps.c | 42 extern void handle_per_exception(struct pt_regs *regs); 62 extern void pfault_interrupt(struct pt_regs *regs, __u16 error_code); 175 void show_registers(struct pt_regs *regs) in show_registers() argument 181 mode = (regs->psw.mask & PSW_PROBLEM_STATE) ? "User" : "Krnl"; in show_registers() 183 mode, (unsigned long) regs->psw.mask, in show_registers() 184 (unsigned long) regs->psw.addr); in show_registers() 186 regs->gprs[0], regs->gprs[1], regs->gprs[2], regs->gprs[3]); in show_registers() 188 regs->gprs[4], regs->gprs[5], regs->gprs[6], regs->gprs[7]); in show_registers() 190 regs->gprs[8], regs->gprs[9], regs->gprs[10], regs->gprs[11]); in show_registers() 192 regs->gprs[12], regs->gprs[13], regs->gprs[14], regs->gprs[15]); in show_registers() [all …]
|
/linux-2.4.37.9/arch/mips/kernel/ |
D | traps.c | 66 int (*board_be_handler)(struct pt_regs *regs, int is_fixup); 216 void show_regs(struct pt_regs *regs) in show_regs() argument 222 0, regs->regs[1], regs->regs[2], regs->regs[3], in show_regs() 223 regs->regs[4], regs->regs[5], regs->regs[6], regs->regs[7]); in show_regs() 225 regs->regs[8], regs->regs[9], regs->regs[10], regs->regs[11], in show_regs() 226 regs->regs[12], regs->regs[13], regs->regs[14], regs->regs[15]); in show_regs() 228 regs->regs[16], regs->regs[17], regs->regs[18], regs->regs[19], in show_regs() 229 regs->regs[20], regs->regs[21], regs->regs[22], regs->regs[23]); in show_regs() 231 regs->regs[24], regs->regs[25], in show_regs() 232 regs->regs[28], regs->regs[29], regs->regs[30], regs->regs[31]); in show_regs() [all …]
|
D | branch.c | 24 int __compute_return_epc(struct pt_regs *regs) in __compute_return_epc() argument 30 epc = regs->cp0_epc; in __compute_return_epc() 43 regs->regs[0] = 0; in __compute_return_epc() 51 regs->regs[insn.r_format.rd] = epc + 8; in __compute_return_epc() 54 regs->cp0_epc = regs->regs[insn.r_format.rs]; in __compute_return_epc() 68 if ((long)regs->regs[insn.i_format.rs] < 0) in __compute_return_epc() 72 regs->cp0_epc = epc; in __compute_return_epc() 77 if ((long)regs->regs[insn.i_format.rs] >= 0) in __compute_return_epc() 81 regs->cp0_epc = epc; in __compute_return_epc() 86 regs->regs[31] = epc + 8; in __compute_return_epc() [all …]
|
D | signal.c | 36 extern asmlinkage int do_signal(sigset_t *oldset, struct pt_regs *regs); 79 static_unused int _sys_sigsuspend(struct pt_regs regs) in _sys_sigsuspend() argument 83 uset = (sigset_t *) regs.regs[4]; in _sys_sigsuspend() 94 regs.regs[2] = EINTR; in _sys_sigsuspend() 95 regs.regs[7] = 1; in _sys_sigsuspend() 99 if (do_signal(&saveset, ®s)) in _sys_sigsuspend() 105 static_unused int _sys_rt_sigsuspend(struct pt_regs regs) in _sys_rt_sigsuspend() argument 111 sigsetsize = regs.regs[5]; in _sys_rt_sigsuspend() 115 unewset = (sigset_t *) regs.regs[4]; in _sys_rt_sigsuspend() 126 regs.regs[2] = EINTR; in _sys_rt_sigsuspend() [all …]
|
/linux-2.4.37.9/arch/mips64/kernel/ |
D | traps.c | 64 int (*board_be_handler)(struct pt_regs *regs, int is_fixup); 209 void show_regs(struct pt_regs *regs) in show_regs() argument 214 0UL, regs->regs[1], regs->regs[2], regs->regs[3]); in show_regs() 216 regs->regs[4], regs->regs[5], regs->regs[6], regs->regs[7]); in show_regs() 218 regs->regs[8], regs->regs[9], regs->regs[10], regs->regs[11]); in show_regs() 220 regs->regs[12], regs->regs[13], regs->regs[14], regs->regs[15]); in show_regs() 222 regs->regs[16], regs->regs[17], regs->regs[18], regs->regs[19]); in show_regs() 224 regs->regs[20], regs->regs[21], regs->regs[22], regs->regs[23]); in show_regs() 226 regs->regs[24], regs->regs[25]); in show_regs() 228 regs->regs[28], regs->regs[29], regs->regs[30], regs->regs[31]); in show_regs() [all …]
|
D | branch.c | 22 int __compute_return_epc(struct pt_regs *regs) in __compute_return_epc() argument 28 epc = regs->cp0_epc; in __compute_return_epc() 44 regs->regs[0] = 0; in __compute_return_epc() 52 regs->regs[insn.r_format.rd] = epc + 8; in __compute_return_epc() 55 regs->cp0_epc = regs->regs[insn.r_format.rs]; in __compute_return_epc() 69 if ((long)regs->regs[insn.i_format.rs] < 0) in __compute_return_epc() 73 regs->cp0_epc = epc; in __compute_return_epc() 78 if ((long)regs->regs[insn.i_format.rs] >= 0) in __compute_return_epc() 82 regs->cp0_epc = epc; in __compute_return_epc() 87 regs->regs[31] = epc + 8; in __compute_return_epc() [all …]
|
D | signal.c | 35 extern asmlinkage int do_signal(sigset_t *oldset, struct pt_regs *regs); 78 static_unused int _sys_rt_sigsuspend(abi64_no_regargs, struct pt_regs regs) in _sys_rt_sigsuspend() argument 84 sigsetsize = regs.regs[5]; in _sys_rt_sigsuspend() 88 unewset = (sigset_t *) regs.regs[4]; in _sys_rt_sigsuspend() 99 regs.regs[2] = EINTR; in _sys_rt_sigsuspend() 100 regs.regs[7] = 1; in _sys_rt_sigsuspend() 104 if (do_signal(&saveset, ®s)) in _sys_rt_sigsuspend() 109 asmlinkage int sys_sigaltstack(abi64_no_regargs, struct pt_regs regs) in sys_sigaltstack() argument 111 const stack_t *uss = (const stack_t *) regs.regs[4]; in sys_sigaltstack() 112 stack_t *uoss = (stack_t *) regs.regs[5]; in sys_sigaltstack() [all …]
|
/linux-2.4.37.9/arch/s390/kernel/ |
D | traps.c | 40 extern void handle_per_exception(struct pt_regs *regs); 60 extern void pfault_interrupt(struct pt_regs *regs, __u16 error_code); 173 void show_registers(struct pt_regs *regs) in show_registers() argument 179 mode = (regs->psw.mask & PSW_PROBLEM_STATE) ? "User" : "Krnl"; in show_registers() 181 mode, (unsigned long) regs->psw.mask, in show_registers() 182 (unsigned long) regs->psw.addr); in show_registers() 184 regs->gprs[0], regs->gprs[1], regs->gprs[2], regs->gprs[3]); in show_registers() 186 regs->gprs[4], regs->gprs[5], regs->gprs[6], regs->gprs[7]); in show_registers() 188 regs->gprs[8], regs->gprs[9], regs->gprs[10], regs->gprs[11]); in show_registers() 190 regs->gprs[12], regs->gprs[13], regs->gprs[14], regs->gprs[15]); in show_registers() [all …]
|
/linux-2.4.37.9/arch/sh/kernel/ |
D | traps.c | 37 #define CHK_REMOTE_DEBUG(regs) \ argument 39 if ((kgdb_debug_hook != (kgdb_debug_hook_t *) NULL) && (!user_mode(regs))) \ 41 (*kgdb_debug_hook)(regs); \ 45 #define CHK_REMOTE_DEBUG(regs) argument 51 struct pt_regs regs) \ 56 if (is_dsp_inst(®s)) { \ 58 regs.sr |= SR_DSP; \ 66 CHK_REMOTE_DEBUG(®s); \ 68 die_if_no_fixup(str,®s,error_code); \ 81 void die(const char * str, struct pt_regs * regs, long err) in die() argument [all …]
|
D | signal.c | 33 asmlinkage int do_signal(struct pt_regs *regs, sigset_t *oldset, 77 struct pt_regs regs) in sys_sigsuspend() argument 88 regs.regs[0] = -EINTR; in sys_sigsuspend() 92 if (do_signal(®s, &saveset, 0, 0)) in sys_sigsuspend() 100 struct pt_regs regs) in sys_rt_sigsuspend() argument 117 regs.regs[0] = -EINTR; in sys_rt_sigsuspend() 121 if (do_signal(®s, &saveset, 0, 0)) in sys_rt_sigsuspend() 161 struct pt_regs regs) in sys_sigaltstack() argument 163 return do_sigaltstack(uss, uoss, regs.regs[15]); in sys_sigaltstack() 222 restore_sigcontext(struct pt_regs *regs, struct sigcontext *sc) in restore_sigcontext() argument [all …]
|
D | process.c | 84 void show_regs(struct pt_regs * regs) in show_regs() argument 88 regs->pc, regs->regs[15], regs->sr, ctrl_inl(MMU_TEA), print_tainted()); in show_regs() 90 regs->regs[0],regs->regs[1], in show_regs() 91 regs->regs[2],regs->regs[3]); in show_regs() 93 regs->regs[4],regs->regs[5], in show_regs() 94 regs->regs[6],regs->regs[7]); in show_regs() 96 regs->regs[8],regs->regs[9], in show_regs() 97 regs->regs[10],regs->regs[11]); in show_regs() 99 regs->regs[12],regs->regs[13], in show_regs() 100 regs->regs[14]); in show_regs() [all …]
|
/linux-2.4.37.9/drivers/video/ |
D | cyberfb.c | 110 #define wb_64(regs,reg,dat) (*(((volatile unsigned char *)regs) + reg) = dat) argument 111 #define rb_64(regs, reg) (*(((volatile unsigned char *)regs) + reg)) argument 113 #define ww_64(regs,reg,dat) (*(volatile unsigned short *)(regs + reg) = dat) argument 331 volatile unsigned char *regs = CyberRegs; in Cyber_init() local 355 wb_64(regs, S3_CRTC_ADR, S3_REG_LOCK2); in Cyber_init() 356 wb_64(regs, S3_CRTC_DATA, 0xa0); in Cyber_init() 357 wb_64(regs, S3_CRTC_ADR, S3_HGC_MODE); in Cyber_init() 358 wb_64(regs, S3_CRTC_DATA, 0x00); in Cyber_init() 359 wb_64(regs, S3_CRTC_ADR, S3_HWGC_DX); in Cyber_init() 360 wb_64(regs, S3_CRTC_DATA, 0x00); in Cyber_init() [all …]
|
D | bt431.h | 74 static inline void bt431_select_reg(struct bt431_regs *regs, int ir) in bt431_select_reg() argument 80 volatile u16 *lo = &(regs->addr_lo); in bt431_select_reg() 81 volatile u16 *hi = &(regs->addr_hi); in bt431_select_reg() 90 static inline u8 bt431_read_reg_inc(struct bt431_regs *regs) in bt431_read_reg_inc() argument 96 volatile u16 *r = &(regs->addr_reg); in bt431_read_reg_inc() 102 static inline void bt431_write_reg_inc(struct bt431_regs *regs, u8 value) in bt431_write_reg_inc() argument 108 volatile u16 *r = &(regs->addr_reg); in bt431_write_reg_inc() 114 static inline u8 bt431_read_reg(struct bt431_regs *regs, int ir) in bt431_read_reg() argument 116 bt431_select_reg(regs, ir); in bt431_read_reg() 117 return bt431_read_reg_inc(regs); in bt431_read_reg() [all …]
|
/linux-2.4.37.9/arch/m68k/kernel/ |
D | process.c | 109 void show_regs(struct pt_regs * regs) in show_regs() argument 113 regs->format, regs->vector, regs->pc, regs->sr, print_tainted()); in show_regs() 115 regs->orig_d0, regs->d0, regs->a2, regs->a1); in show_regs() 117 regs->a0, regs->d5, regs->d4); in show_regs() 119 regs->d3, regs->d2, regs->d1); in show_regs() 120 if (!(regs->sr & PS_S)) in show_regs() 183 asmlinkage int m68k_fork(struct pt_regs *regs) in m68k_fork() argument 185 return do_fork(SIGCHLD, rdusp(), regs, 0); in m68k_fork() 188 asmlinkage int m68k_vfork(struct pt_regs *regs) in m68k_vfork() argument 190 return do_fork(CLONE_VFORK | CLONE_VM | SIGCHLD, rdusp(), regs, 0); in m68k_vfork() [all …]
|
/linux-2.4.37.9/arch/sh64/lib/ |
D | dbg.c | 161 void show_excp_regs(char *from, int trapnr, int signr, struct pt_regs *regs) in show_excp_regs() argument 200 ah = (regs->pc) >> 32; in show_excp_regs() 201 al = (regs->pc) & 0xffffffff; in show_excp_regs() 202 bh = (regs->regs[18]) >> 32; in show_excp_regs() 203 bl = (regs->regs[18]) & 0xffffffff; in show_excp_regs() 204 ch = (regs->regs[15]) >> 32; in show_excp_regs() 205 cl = (regs->regs[15]) & 0xffffffff; in show_excp_regs() 209 ah = (regs->sr) >> 32; in show_excp_regs() 210 al = (regs->sr) & 0xffffffff; in show_excp_regs() 222 ah = (regs->regs[0]) >> 32; in show_excp_regs() [all …]
|
/linux-2.4.37.9/include/asm-sparc64/ |
D | mostek.h | 99 #define MSTK_GET(regs,name) \ argument 100 (MSTK_REGVAL_TO_DECIMAL(mostek_read(regs + MOSTEK_ ## name) & MSTK_ ## name ## _MASK)) 101 #define MSTK_SET(regs,name,value) \ argument 102 do { u8 __val = mostek_read(regs + MOSTEK_ ## name); \ 106 mostek_write(regs + MOSTEK_ ## name, __val); \ 113 #define MSTK_REG_CREG(regs) (mostek_read((regs) + MOSTEK_CREG)) argument 114 #define MSTK_REG_SEC(regs) MSTK_GET(regs,SEC) argument 115 #define MSTK_REG_MIN(regs) MSTK_GET(regs,MIN) argument 116 #define MSTK_REG_HOUR(regs) MSTK_GET(regs,HOUR) argument 117 #define MSTK_REG_DOW(regs) MSTK_GET(regs,DOW) argument [all …]
|