From 5fdaab9f8f5608a5029556f72dde5cb3473d4312 Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Mallo Date: Thu, 5 Sep 2024 15:24:02 +0200 Subject: [PATCH] Fix plictest --- lagarto-ox.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lagarto-ox.nix b/lagarto-ox.nix index bf569b0..4505759 100644 --- a/lagarto-ox.nix +++ b/lagarto-ox.nix @@ -191,8 +191,8 @@ # Write the priority register of an interrupt and ensure # the threshold register didn't change 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 + t1=$(devmem 0x40a00000) # Read context 1 threshold value t2=$(devmem 0x40a00000) # Read context 1 threshold value found="$t1 $t2" expected="0x00000000 0x00000000" @@ -212,7 +212,7 @@ pending=$(devmem 0x40801000) # Dump pending bits of sources 0-31 # Ensure the aux timer is pending - if [ "$pending" = "0x00000018" ]; then + if [ "$pending" = "0x00000010" ]; then # Make sure the priority is higher than the threshold devmem 0x40800010 32 0x10 # Write source 4 priority value 16