view bwsplash/bwsplash.pbm @ 268:f2e52cab0a73

abb_inth.c: check all interrupt causes, not just one The original code used if - else if - else if etc constructs, thus the first detected interrupt was the only one handled. However, Iota ITSTATREG is a clear-on-read register, thus if we only handle the first detected interrupt and skip checking the others, then the other interrupts will be lost, if more than one interrupt happened to occur in one ABB interrupt handling cycle - a form of rare race condition. Change the code to check all interrupts that were read in this cycle.
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 13 Jun 2021 18:17:53 +0000
parents 4d9f24c501f3
children
line wrap: on
line source

P1
80 30
11111110000000000000000000000111111000000000011000000000000000000000000000000000
11111110000000000000000000000111011100000000011000000000000000000000000000000000
11000000110100011000000110001100001100011100011011000011011011000011100000111000
11000000111101111110011111101100000000111111011001100110011111100111111011111100
11111110110001100110011001101100000000110011011001100110011000110110011011000110
11111110110011000110110001101100000000000111011001100100011000110111100011000110
11000000110011111110111111101100000110111111011000111100011000110011111011000110
11000000110011000000110000001100001101100011011000111100011000110000011011000110
11000000110001100110011001100111011101110111011000111000011101110110011011001110
11000000110001111100011111000011111000111111011000011000011111100111111001111100
00000000000000000000000000000000000000000000000000011000011000000000000000000000
00000000000000000000000000000000000000000000000000110000011000000000000000000000
00000000000000000000000000000000000000000000000001110000011000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000011000000000000000000000000000000000000000000000000000
00000000000000000000000000011000000011000110000000000000000000000000000000000000
00000000000000000000000000011000000000000110000011000000000000000000000000000000
00000000000000000000000000011000000011001111001111110000000000000000000000000000
00000000000000000000000000011000000011000110001100110000000000000000000000000000
00000000000000000000000000011000000011000110011000110000000000000000000000000000
00000000000000000000000000011000000011000110011111110000000000000000000000000000
00000000000000000000000000011000000011000110011000000000000000000000000000000000
00000000000000000000000000011111110011000110001100110000000000000000000000000000
00000000000000000000000000011111110011000111001111100000000000000000000000000000