Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 305435
b: refs/heads/master
c: 6a1ea27
h: refs/heads/master
i:
  305433: 228ea23
  305431: 6db9ce0
v: v3
  • Loading branch information
H. Peter Anvin committed Apr 19, 2012
1 parent 1cd0a91 commit 1a56135
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ffc4bc9c6fa4eaf935d96d139bfa7443cac0b88e
refs/heads/master: 6a1ea279c210e7dc05de86dc29c0d4f577f484fb
17 changes: 17 additions & 0 deletions trunk/arch/x86/mm/extable.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,20 @@ int fixup_exception(struct pt_regs *regs)

return 0;
}

/* Restricted version used during very early boot */
int __init early_fixup_exception(unsigned long *ip)
{
const struct exception_table_entry *fixup;

fixup = search_exception_tables(*ip);
if (fixup) {
if (fixup->fixup < 16)
return 0; /* Not supported during early boot */

*ip = fixup->fixup;
return 1;
}

return 0;
}

0 comments on commit 1a56135

Please sign in to comment.