Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 88585
b: refs/heads/master
c: 92bc205
h: refs/heads/master
i:
  88583: b735c77
v: v3
  • Loading branch information
Harvey Harrison authored and Ingo Molnar committed Apr 17, 2008
1 parent 86cb83e commit be620eb
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 20 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 45de70791165ce7eac5232ed5a7c31152567f4da
refs/heads/master: 92bc2056855b3250bf6fd5849f05f88d85839efa
5 changes: 2 additions & 3 deletions trunk/arch/x86/kernel/process_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ void __show_registers(struct pt_regs *regs, int all)
init_utsname()->version);

printk("EIP: %04x:[<%08lx>] EFLAGS: %08lx CPU: %d\n",
0xffff & regs->cs, regs->ip, regs->flags,
(u16)regs->cs, regs->ip, regs->flags,
smp_processor_id());
print_symbol("EIP is at %s\n", regs->ip);

Expand All @@ -341,8 +341,7 @@ void __show_registers(struct pt_regs *regs, int all)
printk("ESI: %08lx EDI: %08lx EBP: %08lx ESP: %08lx\n",
regs->si, regs->di, regs->bp, sp);
printk(" DS: %04x ES: %04x FS: %04x GS: %04x SS: %04x\n",
regs->ds & 0xffff, regs->es & 0xffff,
regs->fs & 0xffff, gs, ss);
(u16)regs->ds, (u16)regs->es, (u16)regs->fs, gs, ss);

if (!all)
return;
Expand Down
4 changes: 2 additions & 2 deletions trunk/arch/x86/kernel/signal_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -393,8 +393,8 @@ static int setup_frame(int sig, struct k_sigaction *ka,
regs->sp = (unsigned long) frame;
regs->ip = (unsigned long) ka->sa.sa_handler;
regs->ax = (unsigned long) sig;
regs->dx = (unsigned long) 0;
regs->cx = (unsigned long) 0;
regs->dx = 0;
regs->cx = 0;

regs->ds = __USER_DS;
regs->es = __USER_DS;
Expand Down
28 changes: 14 additions & 14 deletions trunk/include/asm-x86/ptrace.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,23 +36,23 @@ struct pt_regs {
#else /* __KERNEL__ */

struct pt_regs {
long bx;
long cx;
long dx;
long si;
long di;
long bp;
unsigned long bx;
unsigned long cx;
unsigned long dx;
unsigned long si;
unsigned long di;
unsigned long bp;
long ax;
int ds;
int es;
int fs;
unsigned long ds;
unsigned long es;
unsigned long fs;
/* int gs; */
long orig_ax;
long ip;
int cs;
long flags;
long sp;
int ss;
unsigned long ip;
unsigned long cs;
unsigned long flags;
unsigned long sp;
unsigned long ss;
};

#include <asm/vm86.h>
Expand Down

0 comments on commit be620eb

Please sign in to comment.