add demand paging for systems with serial memory#224
Draft
philburk wants to merge 48 commits into
Draft
Conversation
use macros in @ ! w@ w! c@ c! and +!
add QA macros from PortAudio
Add more unit tests.
The basic outer interpreter works for static dictionaries.
use demand paging in ffReadFile and ffWriteFile
Fix behavior of read and write when we hit the end of file.
Add PF_ASSERT() macro. Add pagedmem.h to highlight the serial memory API.
DRAFT - need to try on RPi in 32-bit mode
For demand paging on a system with 16-bit pointers, we need to support 16-bit pointers in the kernel, and 32-bit CELL and VM addresses on the stack. This commit fixes some problem related to casting pointers to cell_t. We were getting sign expension. This was fixed by by using (uintptr_t). I also fixed some unnecessary narrowing when aligning dictionary addresses.
Change td_sourcePtr to virtual_address_t. Fix lots of warnings. Portable formats for printing cell in unittest.h Some assistance from Gemini Pro.
Add test for FLOAT compiled in a word Fix FLOAT LITERAL
Used (uintptr_t) casting to address warnings related to converting form a 32-bit cell_t to a pointer.
Leave paged memory in known state. Also add another technique for munging virtual addresses in the simulator.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Some devices have a small static RAM and a large serial memory.
But the serial memory cannot be directly accessed.
This PR puts the the dictionary and header into serial memory
and pages it into physical RAM as needed.