Skip to content

Commit 41dbee8

Browse files
committed
parisc: Document rules regarding checksum of HPMC handler
Signed-off-by: Helge Deller <[email protected]>
1 parent 89e050c commit 41dbee8

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

arch/parisc/kernel/traps.c

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -837,6 +837,17 @@ void __init initialize_ivt(const void *iva)
837837
if (pdc_instr(&instr) == PDC_OK)
838838
ivap[0] = instr;
839839

840+
/*
841+
* Rules for the checksum of the HPMC handler:
842+
* 1. The IVA does not point to PDC/PDH space (ie: the OS has installed
843+
* its own IVA).
844+
* 2. The word at IVA + 32 is nonzero.
845+
* 3. If Length (IVA + 60) is not zero, then Length (IVA + 60) and
846+
* Address (IVA + 56) are word-aligned.
847+
* 4. The checksum of the 8 words starting at IVA + 32 plus the sum of
848+
* the Length/4 words starting at Address is zero.
849+
*/
850+
840851
/* Compute Checksum for HPMC handler */
841852
length = os_hpmc_size;
842853
ivap[7] = length;

0 commit comments

Comments
 (0)