diff options
| author | spicyjpeg <88942473+spicyjpeg@users.noreply.github.com> | 2022-03-07 22:17:50 +0100 |
|---|---|---|
| committer | spicyjpeg <88942473+spicyjpeg@users.noreply.github.com> | 2022-03-07 22:17:50 +0100 |
| commit | 93f0a6d23ebed50833f565f949f351c2b80853ac (patch) | |
| tree | 4b6776e61dfe67955d0787251394b86bc8b72819 /examples | |
| parent | 6174931fe58b1dc0fc64029dbe3abefc81aa67d5 (diff) | |
| download | psn00bsdk-93f0a6d23ebed50833f565f949f351c2b80853ac.tar.gz | |
Fix critical ldscript bug and CI, add BIOS setjmp
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/io/system573/k573io.c | 5 | ||||
| -rw-r--r-- | examples/io/system573/k573io.h | 3 |
2 files changed, 3 insertions, 5 deletions
diff --git a/examples/io/system573/k573io.c b/examples/io/system573/k573io.c index a8748d6..bc13852 100644 --- a/examples/io/system573/k573io.c +++ b/examples/io/system573/k573io.c @@ -11,6 +11,7 @@ #include <stdint.h> #include <psxgpu.h> +#include <hwregs_c.h> #include "k573io.h" @@ -116,8 +117,8 @@ void K573_SetBoardType(K573_IOBoardType type) { //K573_DDRStageCommand(0x000001, 22); void K573_Init(void) { - EXP1_ADDR = 0x1f000000; - EXP1_CTRL = 0x24173f47; // 573 BIOS uses this value + EXP1_ADDR = 0x1f000000; + EXP1_DELAY_SIZE = 0x24173f47; // 573 BIOS uses this value K573_RESET_WATCHDOG(); } diff --git a/examples/io/system573/k573io.h b/examples/io/system573/k573io.h index cf125e2..7095a7c 100644 --- a/examples/io/system573/k573io.h +++ b/examples/io/system573/k573io.h @@ -10,9 +10,6 @@ /* Register definitions */ -#define EXP1_ADDR *((volatile uint32_t *) 0x1f801000) -#define EXP1_CTRL *((volatile uint32_t *) 0x1f801008) - #define K573_BANK_SWITCH *((volatile uint16_t *) 0x1f500000) #define K573_IDE_RESET *((volatile uint16_t *) 0x1f560000) #define K573_WATCHDOG *((volatile uint16_t *) 0x1f5c0000) |
