diff options
Diffstat (limited to 'arch/parisc/kernel/traps.c')
-rw-r--r-- | arch/parisc/kernel/traps.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/parisc/kernel/traps.c b/arch/parisc/kernel/traps.c index 548ba0c654d2..ba658d2086f7 100644 --- a/arch/parisc/kernel/traps.c +++ b/arch/parisc/kernel/traps.c | |||
@@ -825,8 +825,8 @@ void handle_interruption(int code, struct pt_regs *regs) | |||
825 | 825 | ||
826 | int __init check_ivt(void *iva) | 826 | int __init check_ivt(void *iva) |
827 | { | 827 | { |
828 | extern u32 os_hpmc_size; | ||
828 | extern const u32 os_hpmc[]; | 829 | extern const u32 os_hpmc[]; |
829 | extern const u32 os_hpmc_end[]; | ||
830 | 830 | ||
831 | int i; | 831 | int i; |
832 | u32 check = 0; | 832 | u32 check = 0; |
@@ -843,8 +843,7 @@ int __init check_ivt(void *iva) | |||
843 | *ivap++ = 0; | 843 | *ivap++ = 0; |
844 | 844 | ||
845 | /* Compute Checksum for HPMC handler */ | 845 | /* Compute Checksum for HPMC handler */ |
846 | 846 | length = os_hpmc_size; | |
847 | length = os_hpmc_end - os_hpmc; | ||
848 | ivap[7] = length; | 847 | ivap[7] = length; |
849 | 848 | ||
850 | hpmcp = (u32 *)os_hpmc; | 849 | hpmcp = (u32 *)os_hpmc; |