2020-06-01 12:11:59 +02:00
|
|
|
Extensions on existing code:
|
kernel: dynamic loading of GMAPPED functions to user RAM
This commit introduces a large architectural change. Unlike previous
models of the fx-9860G series, the G-III models have a new user RAM
address different from 8801c000. The purpose of this change is to
dynamically load GMAPPED functions to this address by querying the TLB,
and call them through a function pointer whose address is determined
when loading.
Because of the overhead of using a function pointer in both assembly and
C code, changes have been made to avoid GMAPPED functions altogether.
Current, only cpu_setVBR() and gint_inth_callback() are left, the second
being used specifically to enable TLB misses when needed.
* Add a .gint.mappedrel section for the function pointers holding
addresses to GMAPPED functions; add function pointers for
cpu_setVBR() and gint_inth_callback()
* Move rram to address 0 instead of the hardcoded 0x8801c000
* Load GMAPPED functions at their linked address + the physical address
user RAM is mapped, to and compute their function pointers
* Remove the GMAPPED macro since no user function needs it anymore
* Add section flags "ax" (code) or "aw" (data) to every custom .section
in assembler code, as they default to unpredictable values that can
cause the section to be marked NOLOAD by the linker
* Update the main kernel, TMU, ETMU and RTC interrupt handlers to use
the new indirect calling method
This is made possible by new MMU functions giving direct access to the
physical area behind any virtualized page.
* Add an mmu_translate() function to query the TLB
* Add an mmu_uram() function to access user RAM from P1
The exception catching mechanism has been modified to avoid the use of
GMAPPED functions altogether.
* Set SR.BL=0 and SR.IMASK=15 before calling exception catchers
* Move gint_exc_skip() to normal text ROM
* Also fix registers not being popped off the stack before a panic
The timer drivers have also been modified to avoid GMAPPED functions.
* Invoke timer_stop() through gint_inth_callback() and move it to ROM
* Move and expand the ETMU driver to span 3 blocks at 0xd00 (ETMU4)
* Remove the timer_clear() function by inlining it into the ETMU handler
(TCR is provided within the storage block of each timer)
* Also split src/timer/inth.s into src/timer/inth-{tmu,etmu}.s
Additionally, VBR addresses are now determined at runtime to further
reduce hardcoded memory layout addresses in the linker script.
* Determine fx-9860G VBR addresses dynamically from mmu_uram()
* Determine fx-CG 50 VBR addresses dynamically from mmu_uram()
* Remove linker symbols for VBR addresses
Comments and documentation have been updated throughout the code to
reflect the changes.
2020-09-17 14:48:54 +02:00
|
|
|
* kernel: group linker script symbols in a single header file
|
|
|
|
* kernel: be consistent about *tlb_mapped_memory() in hw_detect()
|
2020-06-17 11:36:05 +02:00
|
|
|
* bopti: try to display fullscreen images with TLB access + DMA on fxcg50
|
2020-05-10 16:36:21 +02:00
|
|
|
* dma: fx9860g support (need to switch it on and update the Makefile)
|
2019-09-19 15:59:38 +02:00
|
|
|
* core: try to leave add-in without reset in case of panic
|
2019-03-06 14:32:51 +01:00
|
|
|
* core: use cmp/str for memchr()
|
2019-07-17 00:34:10 +02:00
|
|
|
* r61524: brightness control and clean the file
|
2020-06-01 12:11:59 +02:00
|
|
|
* core: review forgotten globals and MPU addresses not in <gint/mpu/*.h>
|
2020-02-23 15:49:55 +01:00
|
|
|
* build: make the build system simpler (two targets are enough by default)
|
2019-07-20 18:31:46 +02:00
|
|
|
* core: run destructors when a task-switch results in leaving the app
|
2020-02-23 15:49:55 +01:00
|
|
|
* core rtc: use qdiv10 to massively improve division performance
|
2020-07-20 17:10:47 +02:00
|
|
|
* topti: let the font specify letter and word spacing
|
2019-03-06 14:32:51 +01:00
|
|
|
|
|
|
|
Future directions.
|
2019-07-17 00:34:10 +02:00
|
|
|
* A complete file system abstraction
|
2019-03-06 14:32:51 +01:00
|
|
|
* Integrate overclock management
|
2020-06-01 12:11:59 +02:00
|
|
|
* Audio playback using TSWilliamson's libsnd method
|
|
|
|
* Serial communication
|
|
|
|
* USB communication, using Yatis' reverse-engineering of the module
|
2020-05-10 16:36:21 +02:00
|
|
|
* Make fx9860g projects work out of the box on fxcg50
|
2020-06-14 11:01:27 +02:00
|
|
|
* Use the DSP to enhance parallel computation
|