Fix plictest
This commit is contained in:
parent
c6801587b3
commit
5fdaab9f8f
@ -191,8 +191,8 @@
|
|||||||
# Write the priority register of an interrupt and ensure
|
# Write the priority register of an interrupt and ensure
|
||||||
# the threshold register didn't change
|
# the threshold register didn't change
|
||||||
devmem 0x40a00000 32 0 # Write context 1 threshold value 0
|
devmem 0x40a00000 32 0 # Write context 1 threshold value 0
|
||||||
t1=$(devmem 0x40a00000) # Read context 1 threshold value
|
|
||||||
devmem 0x40800010 32 5 # Write source 4 priority value 5
|
devmem 0x40800010 32 5 # Write source 4 priority value 5
|
||||||
|
t1=$(devmem 0x40a00000) # Read context 1 threshold value
|
||||||
t2=$(devmem 0x40a00000) # Read context 1 threshold value
|
t2=$(devmem 0x40a00000) # Read context 1 threshold value
|
||||||
found="$t1 $t2"
|
found="$t1 $t2"
|
||||||
expected="0x00000000 0x00000000"
|
expected="0x00000000 0x00000000"
|
||||||
@ -212,7 +212,7 @@
|
|||||||
pending=$(devmem 0x40801000) # Dump pending bits of sources 0-31
|
pending=$(devmem 0x40801000) # Dump pending bits of sources 0-31
|
||||||
|
|
||||||
# Ensure the aux timer is pending
|
# Ensure the aux timer is pending
|
||||||
if [ "$pending" = "0x00000018" ]; then
|
if [ "$pending" = "0x00000010" ]; then
|
||||||
|
|
||||||
# Make sure the priority is higher than the threshold
|
# Make sure the priority is higher than the threshold
|
||||||
devmem 0x40800010 32 0x10 # Write source 4 priority value 16
|
devmem 0x40800010 32 0x10 # Write source 4 priority value 16
|
||||||
|
Loading…
Reference in New Issue
Block a user