Matteo Concas started a new discussion on grlib.c: 
https://gitlab.rtems.org/rtems/tools/rtems-sis/-/merge_requests/13#note_160118

 >        irqmp_ifr[i] = 0;
 >        irqmp_pextack[i] = 0;
 >      }
 > +
 > +  /* Bus interrupt line n maps to interrupt line n.  */
 > +  for (i = 0; i < 8; i++)
 > +    irqmp_map[i] = ((4 * i) << 24) | ((4 * i + 1) << 16) |

Maybe it would be easier to instantiate `irqmp_map` has a `uint8_t 
irqmp_map[MAX_IRQ]` and have a statically declared reset value.

For the GR740 it's simply the identity function so it's easy to have in a for 
loop but for GR765 it's a bit more complicated:
```
grmon4> memb 0xff904300 64
  0x0ff904300  00 01 02 03 04 05 06 07 08 09 0a 0b 17 01 01 0f   
................
  0x0ff904310  10 11 12 13 14 15 16 17 18 19 1a 1b 1c 1d 1e 1f   
................
  0x0ff904320  18 01 13 03 04 05 06 13 1a 1a 1b 1b 1b 17 17 17   
................
  0x0ff904330  17 11 19 17 13 12 12 13 12 12 13 12 12 13 12 12   
................
```

-- 
View it on GitLab: 
https://gitlab.rtems.org/rtems/tools/rtems-sis/-/merge_requests/13#note_160118
You're receiving this email because of your account on gitlab.rtems.org. 
Unsubscribe from this thread: 
https://gitlab.rtems.org/-/namespace/15/sent_notifications/5-bdj72h9bccmknkxa59zk9t88n-f/unsubscribe
 | Manage all notifications: https://gitlab.rtems.org/-/profile/notifications | 
Help: https://gitlab.rtems.org/help


_______________________________________________
bugs mailing list
[email protected]
http://lists.rtems.org/mailman/listinfo/bugs

Reply via email to