Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 43024
b: refs/heads/master
c: 70463da
h: refs/heads/master
v: v3
  • Loading branch information
Jeremy Fitzhardinge authored and Andi Kleen committed Dec 7, 2006
1 parent c42067a commit d31982f
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 2 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: ec7fcaabbfb3c5bd5189f857b6ac7bb9745ef291
refs/heads/master: 70463daca852db396ce17f179d2404b257ba0f66
28 changes: 27 additions & 1 deletion trunk/include/asm-i386/irq_regs.h
Original file line number Diff line number Diff line change
@@ -1 +1,27 @@
#include <asm-generic/irq_regs.h>
/*
* Per-cpu current frame pointer - the location of the last exception frame on
* the stack, stored in the PDA.
*
* Jeremy Fitzhardinge <jeremy@goop.org>
*/
#ifndef _ASM_I386_IRQ_REGS_H
#define _ASM_I386_IRQ_REGS_H

#include <asm/pda.h>

static inline struct pt_regs *get_irq_regs(void)
{
return read_pda(irq_regs);
}

static inline struct pt_regs *set_irq_regs(struct pt_regs *new_regs)
{
struct pt_regs *old_regs;

old_regs = read_pda(irq_regs);
write_pda(irq_regs, new_regs);

return old_regs;
}

#endif /* _ASM_I386_IRQ_REGS_H */
1 change: 1 addition & 0 deletions trunk/include/asm-i386/pda.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ struct i386_pda

int cpu_number;
struct task_struct *pcurrent; /* current process */
struct pt_regs *irq_regs;
};

extern struct i386_pda *_cpu_pda[];
Expand Down

0 comments on commit d31982f

Please sign in to comment.