parisc: initialize unwinder much earlier
The unwinder was being initialized way too late to be any use debugging early boot crashes. Instead of relying on module_init initcalls to initialize it, let's do it explicitly as early as we can. Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com> Signed-off-by: Kyle McMartin <kyle@mcmartin.ca>
This commit is contained in:
committed by
Kyle McMartin
parent
0be7d1fe43
commit
f0514ae323
@@ -170,7 +170,7 @@ void unwind_table_remove(struct unwind_table *table)
|
||||
}
|
||||
|
||||
/* Called from setup_arch to import the kernel unwind info */
|
||||
static int unwind_init(void)
|
||||
int unwind_init(void)
|
||||
{
|
||||
long start, stop;
|
||||
register unsigned long gp __asm__ ("r27");
|
||||
@@ -417,5 +417,3 @@ int unwind_to_user(struct unwind_frame_info *info)
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
module_init(unwind_init);
|
||||
|
Reference in New Issue
Block a user