]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
parisc: export length of os_hpmc vector
authorKyle McMartin <kyle@mcmartin.ca>
Sat, 3 Jan 2009 06:35:40 +0000 (06:35 +0000)
committerKyle McMartin <kyle@mcmartin.ca>
Mon, 5 Jan 2009 19:18:27 +0000 (19:18 +0000)
and use this instead of dealing with exporting start/end and
toying with function descriptors.

Signed-off-by: Kyle McMartin <kyle@mcmartin.ca>
arch/parisc/kernel/hpmc.S
arch/parisc/kernel/traps.c

index 2cbf13b3ef11d0a1ff62f7eb5cec9b1c96333371..5595a2f311816d3d5e24420e5598563c4815d3a8 100644 (file)
@@ -80,6 +80,7 @@ END(hpmc_pim_data)
 
        .import intr_save, code
 ENTRY(os_hpmc)
+.os_hpmc:
 
        /*
         * registers modified:
@@ -295,5 +296,10 @@ os_hpmc_6:
        b .
        nop
 ENDPROC(os_hpmc)
-ENTRY(os_hpmc_end)     /* this label used to compute os_hpmc checksum */
+.os_hpmc_end:
        nop
+.data
+.align 4
+       .export os_hpmc_size
+os_hpmc_size:
+       .word .os_hpmc_end-.os_hpmc
index 548ba0c654d2f15412d99e1843bcd62a27bf93e7..ba658d2086f77decbc35404da73287338e27618a 100644 (file)
@@ -825,8 +825,8 @@ void handle_interruption(int code, struct pt_regs *regs)
 
 int __init check_ivt(void *iva)
 {
+       extern u32 os_hpmc_size;
        extern const u32 os_hpmc[];
-       extern const u32 os_hpmc_end[];
 
        int i;
        u32 check = 0;
@@ -843,8 +843,7 @@ int __init check_ivt(void *iva)
            *ivap++ = 0;
 
        /* Compute Checksum for HPMC handler */
-
-       length = os_hpmc_end - os_hpmc;
+       length = os_hpmc_size;
        ivap[7] = length;
 
        hpmcp = (u32 *)os_hpmc;