Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 305428
b: refs/heads/master
c: d219e2e
h: refs/heads/master
v: v3
  • Loading branch information
David Daney authored and H. Peter Anvin committed Apr 19, 2012
1 parent e48678a commit 424d907
Show file tree
Hide file tree
Showing 2 changed files with 8 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: a79f248b9b309ebb5f34ca6a8fd1eb9e18db5720
refs/heads/master: d219e2e86a407035303b987e4184ca0b1de53257
8 changes: 7 additions & 1 deletion trunk/kernel/extable.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,16 @@ DEFINE_MUTEX(text_mutex);
extern struct exception_table_entry __start___ex_table[];
extern struct exception_table_entry __stop___ex_table[];

/* Cleared by build time tools if the table is already sorted. */
u32 __initdata main_extable_sort_needed = 1;

/* Sort the kernel's built-in exception table */
void __init sort_main_extable(void)
{
sort_extable(__start___ex_table, __stop___ex_table);
if (main_extable_sort_needed)
sort_extable(__start___ex_table, __stop___ex_table);
else
pr_notice("__ex_table already sorted, skipping sort\n");
}

/* Given an address, look for it in the exception tables. */
Expand Down

0 comments on commit 424d907

Please sign in to comment.