shithub: riscv

Download patch

ref: e2978c785ad240e254849ff944294e62651414e3
parent: 4d69aacea023546a7150d92e147e531c38de822f
author: cinap_lenrek <[email protected]>
date: Mon Jan 8 15:25:48 EST 2024

imx8, arm64: fix tbdf argumnt position for intrdisable() (thanks cosa)

--- a/sys/src/9/arm64/fns.h
+++ b/sys/src/9/arm64/fns.h
@@ -162,7 +162,7 @@
 void gpiointrenable(uint pin, int mode, void (*f)(uint pin, void *a), void *a);
 void gpiointrdisable(uint pin);
 
-/* pciimx */
+/* pciqemu */
 extern int pcicfgrw8(int tbdf, int rno, int data, int read);
 extern int pcicfgrw16(int tbdf, int rno, int data, int read);
 extern int pcicfgrw32(int tbdf, int rno, int data, int read);
--- a/sys/src/9/arm64/gic.c
+++ b/sys/src/9/arm64/gic.c
@@ -311,7 +311,7 @@
 }
 
 void
-intrdisable(int tbdf, void (*f)(Ureg*, void*), void *a, int, char*)
+intrdisable(int, void (*f)(Ureg*, void*), void *a, int tbdf, char*)
 {
 	if(BUSTYPE(tbdf) == BusPCI){
 		pciintrdisable(tbdf, f, a);
--- a/sys/src/9/imx8/gic.c
+++ b/sys/src/9/imx8/gic.c
@@ -311,7 +311,7 @@
 }
 
 void
-intrdisable(int tbdf, void (*f)(Ureg*, void*), void *a, int, char*)
+intrdisable(int, void (*f)(Ureg*, void*), void *a, int tbdf, char*)
 {
 	if(BUSTYPE(tbdf) == BusPCI){
 		pciintrdisable(tbdf, f, a);