Fix typos in the board-js2x folder
Found with the "codespell" utility. I kept "busses" which codespell also complains about since it seems to be an old but still valid plural of the word "bus". Signed-off-by: Thomas Huth <thuth@redhat.com> [removed trailing spaces too] Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
This commit is contained in:
parent
975bbacf92
commit
8f6b2217b0
|
@ -52,8 +52,8 @@ ASM_ENTRY(msg_e_ierror)
|
||||||
* R4 - handling suggestion
|
* R4 - handling suggestion
|
||||||
* R5 - error string reference
|
* R5 - error string reference
|
||||||
* R6 - error number
|
* R6 - error number
|
||||||
*
|
*
|
||||||
* Return:
|
* Return:
|
||||||
* if possible input to H8 and NVRAM log and console , then reboot/halt
|
* if possible input to H8 and NVRAM log and console , then reboot/halt
|
||||||
*
|
*
|
||||||
* Input definitions:
|
* Input definitions:
|
||||||
|
@ -70,7 +70,7 @@ ASM_ENTRY(boot_abort)
|
||||||
mr r30, r4
|
mr r30, r4
|
||||||
mr r29, r5
|
mr r29, r5
|
||||||
mr r28, r6
|
mr r28, r6
|
||||||
|
|
||||||
/* check if i/o is possible, if yes then print message */
|
/* check if i/o is possible, if yes then print message */
|
||||||
li r10, ABORT_CANIO
|
li r10, ABORT_CANIO
|
||||||
and. r3, r31, r10
|
and. r3, r31, r10
|
||||||
|
|
|
@ -45,7 +45,7 @@
|
||||||
* Return 0 if no manipulation was found, otherwise return 1
|
* Return 0 if no manipulation was found, otherwise return 1
|
||||||
*
|
*
|
||||||
* input:
|
* input:
|
||||||
* r3 - NVRAM Base Address
|
* r3 - NVRAM Base Address
|
||||||
*
|
*
|
||||||
* output:
|
* output:
|
||||||
* r3 - status: 0 = ok, 1 = corrupt
|
* r3 - status: 0 = ok, 1 = corrupt
|
||||||
|
@ -71,7 +71,7 @@ ASM_ENTRY(checkLogHeaderData)
|
||||||
LOAD64( r6, LLFW_LOG_BE0_NAME)
|
LOAD64( r6, LLFW_LOG_BE0_NAME)
|
||||||
subf r5, r6, r5
|
subf r5, r6, r5
|
||||||
add r4, r4, r5
|
add r4, r4, r5
|
||||||
|
|
||||||
lhz r5, LLFW_LOG_POS_DATA_OFFSET(r3) //check data offset
|
lhz r5, LLFW_LOG_POS_DATA_OFFSET(r3) //check data offset
|
||||||
addi r5, r5, -LLFW_LOG_BE0_DATA_OFFSET
|
addi r5, r5, -LLFW_LOG_BE0_DATA_OFFSET
|
||||||
add r4, r4, r5
|
add r4, r4, r5
|
||||||
|
@ -95,12 +95,12 @@ ASM_ENTRY(checkLogHeaderData)
|
||||||
* bit 1: if partition header checksum is corrupt
|
* bit 1: if partition header checksum is corrupt
|
||||||
* bit 2: if CRC is corrupt
|
* bit 2: if CRC is corrupt
|
||||||
* bit 3: if Header entries are corrupt
|
* bit 3: if Header entries are corrupt
|
||||||
*
|
*
|
||||||
* input:
|
* input:
|
||||||
* r3 - NVRAM log address (BASE + NVRAM_LOG_OFFSET)
|
* r3 - NVRAM log address (BASE + NVRAM_LOG_OFFSET)
|
||||||
*
|
*
|
||||||
* output:
|
* output:
|
||||||
* r3 - CRC status
|
* r3 - CRC status
|
||||||
* r4 - NVRAM log address
|
* r4 - NVRAM log address
|
||||||
*
|
*
|
||||||
* Modifies Register: R3, R4, R5, R6, R7, R8, R9
|
* Modifies Register: R3, R4, R5, R6, R7, R8, R9
|
||||||
|
@ -126,7 +126,7 @@ ASM_ENTRY(.checkLogPartition)
|
||||||
ori r7, r7, 1 // 0 as checksum is invalid
|
ori r7, r7, 1 // 0 as checksum is invalid
|
||||||
0:
|
0:
|
||||||
mr r3, r4
|
mr r3, r4
|
||||||
bl checkLogHeaderData
|
bl checkLogHeaderData
|
||||||
cmpdi 7, r3, 0
|
cmpdi 7, r3, 0
|
||||||
beq+ 7, 0f
|
beq+ 7, 0f
|
||||||
ori r7, r7, 4
|
ori r7, r7, 4
|
||||||
|
@ -135,13 +135,13 @@ ASM_ENTRY(.checkLogPartition)
|
||||||
mtlr r8
|
mtlr r8
|
||||||
blr
|
blr
|
||||||
/*****************************************************************************
|
/*****************************************************************************
|
||||||
* checkinitLog: check the NVRAM Log Partition Header
|
* checkinitLog: check the NVRAM Log Partition Header
|
||||||
* initialize the NVRAM if the Header was modified
|
* initialize the NVRAM if the Header was modified
|
||||||
*
|
|
||||||
* input:
|
|
||||||
* r3 - NVRAM BASE address
|
|
||||||
*
|
*
|
||||||
* output:
|
* input:
|
||||||
|
* r3 - NVRAM BASE address
|
||||||
|
*
|
||||||
|
* output:
|
||||||
* r3 - 0 = check ok, no new header written
|
* r3 - 0 = check ok, no new header written
|
||||||
* r3 - 1 = check not ok, header and NVRAM initialized
|
* r3 - 1 = check not ok, header and NVRAM initialized
|
||||||
* r4 - NVRAM log address
|
* r4 - NVRAM log address
|
||||||
|
@ -152,20 +152,20 @@ ASM_ENTRY(.checkLogPartition)
|
||||||
ASM_ENTRY(.checkinitLog)
|
ASM_ENTRY(.checkinitLog)
|
||||||
ASM_ENTRY(checkinitLog)
|
ASM_ENTRY(checkinitLog)
|
||||||
mflr r9
|
mflr r9
|
||||||
bl .checkLogPartition //r3..r8, r4_out = r3_in
|
bl .checkLogPartition //r3..r8, r4_out = r3_in
|
||||||
mtlr r9
|
mtlr r9
|
||||||
|
|
||||||
cmpwi 7, r3, 0
|
cmpwi 7, r3, 0
|
||||||
mr r3, r4 // r3=NVRAM_LOG address
|
mr r3, r4 // r3=NVRAM_LOG address
|
||||||
bne- 7, .initLog // if header is not ok, init header
|
bne- 7, .initLog // if header is not ok, init header
|
||||||
li r3, 0
|
li r3, 0
|
||||||
blr // header OK, return 0
|
blr // header OK, return 0
|
||||||
|
|
||||||
|
|
||||||
/* this is basically just a copy of .initLog
|
/* this is basically just a copy of .initLog
|
||||||
registers used: r3, r4, r5, r6, r7, r9*/
|
registers used: r3, r4, r5, r6, r7, r9*/
|
||||||
init_log_2nd_be:
|
init_log_2nd_be:
|
||||||
mflr r9
|
mflr r9
|
||||||
li r6, LLFW_LOG_BE0_LENGTH
|
li r6, LLFW_LOG_BE0_LENGTH
|
||||||
mulli r6, r6, 0x10
|
mulli r6, r6, 0x10
|
||||||
add r6, r7, r6
|
add r6, r7, r6
|
||||||
|
@ -192,11 +192,11 @@ init_log_2nd_be:
|
||||||
/*****************************************************************************
|
/*****************************************************************************
|
||||||
* initLog: initialize the NVRAM with 0
|
* initLog: initialize the NVRAM with 0
|
||||||
* write a new NVRAM Log-Partition-Header
|
* write a new NVRAM Log-Partition-Header
|
||||||
*
|
|
||||||
* input:
|
|
||||||
* r3 - NVRAM BASE address
|
|
||||||
*
|
*
|
||||||
* output:
|
* input:
|
||||||
|
* r3 - NVRAM BASE address
|
||||||
|
*
|
||||||
|
* output:
|
||||||
* r3 - 0 = check ok, no new header written
|
* r3 - 0 = check ok, no new header written
|
||||||
* r3 - 1 = check not ok, header and NVRAM initialized
|
* r3 - 1 = check not ok, header and NVRAM initialized
|
||||||
* r4 - NVRAM log address
|
* r4 - NVRAM log address
|
||||||
|
@ -235,10 +235,10 @@ ASM_ENTRY(.initLog)
|
||||||
* clearNVRAM: set all not used NVRAM memory to zero
|
* clearNVRAM: set all not used NVRAM memory to zero
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* input:
|
* input:
|
||||||
* R3 - NVRAM BASE ADDRESS
|
* R3 - NVRAM BASE ADDRESS
|
||||||
*
|
*
|
||||||
* output:
|
* output:
|
||||||
* R3 - NVARM END ADDRESS
|
* R3 - NVARM END ADDRESS
|
||||||
*
|
*
|
||||||
* Modifies Register: r4, r5
|
* Modifies Register: r4, r5
|
||||||
|
@ -253,18 +253,18 @@ ASM_ENTRY(clearNVRAM)
|
||||||
stdx r4, r3,r5
|
stdx r4, r3,r5
|
||||||
addi r5, r5, 8
|
addi r5, r5, 8
|
||||||
bdnz+ 0b
|
bdnz+ 0b
|
||||||
blr
|
blr
|
||||||
/*****************************************************************************
|
/*****************************************************************************
|
||||||
* writeNVRAMbyte: write next log into NVRAM
|
* writeNVRAMbyte: write next log into NVRAM
|
||||||
*
|
|
||||||
*
|
*
|
||||||
* input:
|
*
|
||||||
|
* input:
|
||||||
* R3 - byte to be written
|
* R3 - byte to be written
|
||||||
* R4 - NVRAM Base Address
|
* R4 - NVRAM Base Address
|
||||||
*
|
*
|
||||||
* output:
|
* output:
|
||||||
* R3 - byte that was written
|
* R3 - byte that was written
|
||||||
* R4 - NVRAM Base Address
|
* R4 - NVRAM Base Address
|
||||||
*
|
*
|
||||||
* Modifies Register: R3, R4, R5, R6
|
* Modifies Register: R3, R4, R5, R6
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -275,22 +275,22 @@ ENTRY(writeLogByte)
|
||||||
addi r5, r5, 1 // increment pointer
|
addi r5, r5, 1 // increment pointer
|
||||||
stw r5, LLFW_LOG_POS_POINTER(r4) // store pointer
|
stw r5, LLFW_LOG_POS_POINTER(r4) // store pointer
|
||||||
addi r5, r5, -1 // restore old pointer
|
addi r5, r5, -1 // restore old pointer
|
||||||
add r6, r4, r5 // byte address in data section
|
add r6, r4, r5 // byte address in data section
|
||||||
|
|
||||||
stb r3, LLFW_LOG_BE0_DATA_OFFSET(r6)
|
stb r3, LLFW_LOG_BE0_DATA_OFFSET(r6)
|
||||||
blr
|
blr
|
||||||
|
|
||||||
/*****************************************************************************
|
/*****************************************************************************
|
||||||
* writeNVRAMbyte: write next log into NVRAM
|
* writeNVRAMbyte: write next log into NVRAM
|
||||||
*
|
|
||||||
*
|
*
|
||||||
* input:
|
*
|
||||||
|
* input:
|
||||||
* R3 - byte to be written
|
* R3 - byte to be written
|
||||||
* R4 - NVRAM Base Address
|
* R4 - NVRAM Base Address
|
||||||
*
|
*
|
||||||
* output:
|
* output:
|
||||||
* R3 - byte that was written
|
* R3 - byte that was written
|
||||||
* R4 - NVRAM Base Address
|
* R4 - NVRAM Base Address
|
||||||
*
|
*
|
||||||
* Modifies Register: R3, R4, R5, R6
|
* Modifies Register: R3, R4, R5, R6
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -303,18 +303,18 @@ ENTRY(writeLogByteBE1)
|
||||||
addi r5, r5, 1 // increment pointer
|
addi r5, r5, 1 // increment pointer
|
||||||
stw r5, LLFW_LOG_POS_POINTER(r4) // store pointer
|
stw r5, LLFW_LOG_POS_POINTER(r4) // store pointer
|
||||||
addi r5, r5, -1 // restore old pointer
|
addi r5, r5, -1 // restore old pointer
|
||||||
add r6, r4, r5 // byte address in data section
|
add r6, r4, r5 // byte address in data section
|
||||||
|
|
||||||
stb r3, LLFW_LOG_BE1_DATA_OFFSET(r6)
|
stb r3, LLFW_LOG_BE1_DATA_OFFSET(r6)
|
||||||
blr
|
blr
|
||||||
|
|
||||||
/*****************************************************************************
|
/*****************************************************************************
|
||||||
* calPartitionHeaderChecksum: calculate the Checksum of the
|
* calPartitionHeaderChecksum: calculate the Checksum of the
|
||||||
* Partition Header as described in ....
|
* Partition Header as described in ....
|
||||||
*
|
*
|
||||||
* input: r3 - NVRAM BASE address
|
* input: r3 - NVRAM BASE address
|
||||||
*
|
*
|
||||||
* output: R3 - the calculated checksum as 8 bit value
|
* output: R3 - the calculated checksum as 8 bit value
|
||||||
* R4 - NVRAM log address
|
* R4 - NVRAM log address
|
||||||
*
|
*
|
||||||
* Modifies Register: R3, R4, R5, R6
|
* Modifies Register: R3, R4, R5, R6
|
||||||
|
@ -328,9 +328,9 @@ ASM_ENTRY(.calPartitionHeaderChecksum)
|
||||||
addi r4, r4, 1 // r4++ (index)
|
addi r4, r4, 1 // r4++ (index)
|
||||||
add r5, r5, r3 // r5 new sum =sum + nexed byte
|
add r5, r5, r3 // r5 new sum =sum + nexed byte
|
||||||
rldicl r5, r5, 0, 56
|
rldicl r5, r5, 0, 56
|
||||||
cmpld 7, r5, r3
|
cmpld 7, r5, r3
|
||||||
cmpldi 6, r4, LLFW_LOG_POS_DATA_OFFSET
|
cmpldi 6, r4, LLFW_LOG_POS_DATA_OFFSET
|
||||||
bge+ 7,.L5 // if new sum > sum
|
bge+ 7,.L5 // if new sum > sum
|
||||||
addi r5, r5, 1 // new sum ++
|
addi r5, r5, 1 // new sum ++
|
||||||
rldicl r5, r5, 0, 56
|
rldicl r5, r5, 0, 56
|
||||||
.L5:
|
.L5:
|
||||||
|
|
Loading…
Reference in New Issue