Skip to content

add demand paging for systems with serial memory#224

Draft
philburk wants to merge 48 commits into
masterfrom
paging_223
Draft

add demand paging for systems with serial memory#224
philburk wants to merge 48 commits into
masterfrom
paging_223

Conversation

@philburk
Copy link
Copy Markdown
Owner

@philburk philburk commented May 1, 2026

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.

@philburk philburk marked this pull request as draft May 5, 2026 22:37
philburk added 20 commits May 7, 2026 11:57
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant