diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2019-07-25 08:58:58 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2019-07-25 08:58:58 +0200 |
commit | 811b80cae120168762e5825784a135ee4a5558e2 (patch) | |
tree | 620d154c71fdd9c3f4b082c3b90c3d589a5cab0f /sys/src/9/bcm64/clock.c | |
parent | dfea95b3c29ef4a6de2713a946453d3a022ae0b4 (diff) |
bcm, bcm64: make irq.$O optional and add intrdisable(), use intrenable()
the raspberry pi 4 has a new interrupt controller and
pci support, so get rid of intrenable() macro and
properly make intrenable function with tbdf argument.
Diffstat (limited to 'sys/src/9/bcm64/clock.c')
-rw-r--r-- | sys/src/9/bcm64/clock.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/src/9/bcm64/clock.c b/sys/src/9/bcm64/clock.c index bbc66a687..71ffd91b5 100644 --- a/sys/src/9/bcm64/clock.c +++ b/sys/src/9/bcm64/clock.c @@ -131,7 +131,7 @@ clockinit(void) *(u32int*)(ARMLOCAL + Prescaler) = (((uvlong)SystimerFreq<<31)/19200000)&~1UL; } else { syswr(CNTP_CTL_EL0, Enable); - intrenable(IRQcntpns, localclockintr, nil, 0, "clock"); + intrenable(IRQcntpns, localclockintr, nil, BUSUNKNOWN, "clock"); } tn = (Systimers*)SYSTIMERS; @@ -151,7 +151,7 @@ clockinit(void) if(m->machno == 0){ tn->cs = 1<<3; tn->c3 = tn->clo - 1; - intrenable(IRQtimer3, clockintr, nil, 0, "clock"); + intrenable(IRQtimer3, clockintr, nil, BUSUNKNOWN, "clock"); tm = (Armtimer*)ARMTIMER; tm->load = 0; |