mirror of
https://github.com/livingcomputermuseum/UniBone.git
synced 2026-04-27 20:39:13 +00:00
ACLO/DCLO/INIT moved from PRU to ARM
INTR/DMA request params linked to device params on change
This commit is contained in:
@@ -47,6 +47,8 @@ priority_request_c::~priority_request_c() {
|
||||
void priority_request_c::set_priority_slot(uint8_t priority_slot) {
|
||||
assert(priority_slot > 0); // 0 reserved
|
||||
assert(priority_slot < PRIORITY_SLOT_COUNT);
|
||||
if (this->slot == priority_slot)
|
||||
return ; // called on every on_param_change()
|
||||
unibusdevice_c *ubdevice = unibusdevice_c::find_by_request_slot(priority_slot);
|
||||
if (ubdevice && ubdevice != this->device) {
|
||||
WARNING("Slot %u already used by device %s", (unsigned) priority_slot, ubdevice->name.value.c_str());
|
||||
@@ -105,3 +107,4 @@ void intr_request_c::set_vector(uint16_t vector) {
|
||||
this->vector = vector;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user