aboutsummaryrefslogtreecommitdiff
path: root/libpsn00b/include
diff options
context:
space:
mode:
authorspicyjpeg <thatspicyjpeg@gmail.com>2022-08-21 23:36:45 +0200
committerspicyjpeg <thatspicyjpeg@gmail.com>2022-08-21 23:36:45 +0200
commitf2e946cc0f9730c0da56aae533b3429a0381003e (patch)
tree7ae3607a4708d8cdae096fa07dea774cead6ae4d /libpsn00b/include
parentc845878cb43da4f7470914a064109db2270fd7e6 (diff)
downloadpsn00bsdk-f2e946cc0f9730c0da56aae533b3429a0381003e.tar.gz
Fix psxetc bugs, IRQ controller register size
Diffstat (limited to 'libpsn00b/include')
-rw-r--r--libpsn00b/include/hwregs_c.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/libpsn00b/include/hwregs_c.h b/libpsn00b/include/hwregs_c.h
index 7b80590..b205b87 100644
--- a/libpsn00b/include/hwregs_c.h
+++ b/libpsn00b/include/hwregs_c.h
@@ -14,7 +14,7 @@
/* Constants */
-#define IOBASE 0x1f800000
+#define IOBASE 0xbf800000
#define F_CPU 33868800UL
#define F_GPU 53222400UL
@@ -96,8 +96,8 @@
/* IRQ controller */
-#define IRQ_STAT _MMIO32(IOBASE | 0x1070)
-#define IRQ_MASK _MMIO32(IOBASE | 0x1074)
+#define IRQ_STAT _MMIO16(IOBASE | 0x1070)
+#define IRQ_MASK _MMIO16(IOBASE | 0x1074)
/* DMA */