From 7ef6e512db55661ca31d333a54d15b28e975b595 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Sun, 29 Mar 2015 00:17:38 +0000 Subject: [PATCH] px4plus: minor updates --- Kernel/platform-px4plus/README | 5 ++--- Kernel/platform-px4plus/sio.h | 4 +--- Kernel/platform-px4plus/swapdev.s | 3 +++ 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Kernel/platform-px4plus/README b/Kernel/platform-px4plus/README index ad5d2ba6..fa5162d2 100644 --- a/Kernel/platform-px4plus/README +++ b/Kernel/platform-px4plus/README @@ -1,6 +1,5 @@ -A FUZIX target for the PX4plus (and PX4 with 128K RAM disc) - -Just playing to see if we can make it fit. +A FUZIX target for the PX4plus (and PX4 with either the 128K sidecar or a +RAM cartridge of at least 32K size). The PX4Plus has 64K of RAM, and can overlay 6000-DFFF with one of two different ROMpacks (usually 'basic' and 'utility'). Our kernel is a two diff --git a/Kernel/platform-px4plus/sio.h b/Kernel/platform-px4plus/sio.h index 19ed5384..477739f4 100644 --- a/Kernel/platform-px4plus/sio.h +++ b/Kernel/platform-px4plus/sio.h @@ -5,7 +5,7 @@ extern int select_sio(void); extern void deselect_sio(int old); extern void sio_set_irq(void); -extern void sio_release_irq(void); +extern uint16_t sio_release_irq(void); extern void sio_write(uint8_t *buf, int len); extern int sio_read(uint8_t *buf, int len); @@ -13,7 +13,5 @@ extern int sio_read(uint8_t *buf, int len); /* These don't truely belong here but it will do for now */ extern void read_from_bank(void); -extern uint8_t sio_count; -extern uint8_t missed_interrupts; #endif \ No newline at end of file diff --git a/Kernel/platform-px4plus/swapdev.s b/Kernel/platform-px4plus/swapdev.s index 9eb1fb20..cc36abf6 100644 --- a/Kernel/platform-px4plus/swapdev.s +++ b/Kernel/platform-px4plus/swapdev.s @@ -17,6 +17,9 @@ ; the I/O memory that held the bank we switched to, and then we fix ; up the table. That makes all the magic going on conveniently ; invisible to the core code. +; +; FIXME: The 128K sidecar has a notion of open/closed. Open allows +; accesses, closes saves power. We need to support this. ; .globl _cartridge_copy -- 2.34.1