Commit graph

163 commits

Author SHA1 Message Date
Toby Jaffey
0018bdd249 Add test of reading cstring syscall argument which never terminates before hitting end of ram 2025-12-13 19:12:24 +00:00
Toby Jaffey
b1b4cbf583 Fix bug where memory was being used instead of extram when reading cstring from extram 2025-12-13 18:46:28 +00:00
Toby Jaffey
8a0604fc8d abs path 2025-12-13 18:22:02 +00:00
Toby Jaffey
faab397178 Remove accidental make clean on tests 2025-12-13 18:16:00 +00:00
Toby Jaffey
d72955690f Add test for extram being removed then invalid pointer being followed 2025-12-13 18:10:50 +00:00
Toby Jaffey
5b33478cad Coverage path 2025-12-13 18:10:32 +00:00
Toby Jaffey
c5470bc279 YAML hell 2025-12-13 18:05:40 +00:00
Toby Jaffey
92913ab478 Add test for reading code which is too large 2025-12-13 18:02:43 +00:00
Toby Jaffey
f2c903cfb6 Coverage wildcard 2025-12-13 17:59:40 +00:00
Toby Jaffey
a9af18488e Merge branch 'main' of github.com:ringtailsoftware/uvm32 2025-12-13 17:54:47 +00:00
Toby Jaffey
2e1f4d3f93 Generate coverage report 2025-12-13 17:53:55 +00:00
Toby Jaffey
1e5555f66d Unify all tests to use same common makefile includes 2025-12-13 17:27:24 +00:00
Toby Jaffey
903167231f Fix internal memcpy/memset to have standard libc prototypes 2025-12-13 15:52:27 +00:00
Toby Jaffey
125c79176e Move section 2025-12-12 21:56:20 +00:00
Toby Jaffey
f8f7627eb8 Update README.
Add license
2025-12-12 21:50:33 +00:00
Toby Jaffey
789cd74516 Disable stack canary by default 2025-12-12 21:01:40 +00:00
Toby Jaffey
3ecd16c8bf Update links 2025-12-12 20:52:54 +00:00
Toby Jaffey
8c97057809 Make extram uint8_t 2025-12-12 20:51:39 +00:00
Toby Jaffey
8158ac647c Renaming and documentating header 2025-12-12 20:42:26 +00:00
Toby Jaffey
9880eadf4f Markdown fix 2025-12-12 16:54:28 +00:00
Toby Jaffey
e5581f1c27 Organise list 2025-12-12 16:52:31 +00:00
Toby Jaffey
4dad76be61 Split docs 2025-12-12 16:43:00 +00:00
Toby Jaffey
147a9f2198 Split includes.
All code needs uvm32_sys.h, but uvm32_common_custom.h is optional (and has defs needed for demos)
2025-12-12 15:56:47 +00:00
Toby Jaffey
ef948e9797 Move target app only includes under apps/common 2025-12-12 15:49:03 +00:00
Toby Jaffey
5bd6a32013 Move all app common files under apps/common 2025-12-12 15:45:17 +00:00
Toby Jaffey
60f362b819 h2 2025-12-12 15:06:03 +00:00
Toby Jaffey
e903e8271b Explanation 2025-12-12 15:05:34 +00:00
Toby Jaffey
3722e4c267 Cleanup 2025-12-12 15:02:20 +00:00
Toby Jaffey
bba5fa654c Fix off-by-one error which refused to read final byte of extram 2025-12-12 15:01:56 +00:00
Toby Jaffey
cb717ed108 use only the amount of extram needed 2025-12-12 15:01:30 +00:00
Toby Jaffey
74267d94df Handle syscall cstring argument when pointing to extram 2025-12-12 14:45:25 +00:00
Toby Jaffey
ce63353156 Update makefile 2025-12-12 14:29:50 +00:00
Toby Jaffey
096efb3b2c Remove unused var 2025-12-12 14:26:30 +00:00
Toby Jaffey
ed57b62f79 Add render and getkey syscalls, for host-sdl use. 2025-12-12 14:25:01 +00:00
Toby Jaffey
9836500503 Handle mapping a buffer to extram 2025-12-12 14:24:34 +00:00
Toby Jaffey
238b4c5fcf Update for new sdl-host 2025-12-12 14:23:55 +00:00
Toby Jaffey
8598be727f Provide a framebuffer 320x200 (RGBA8888) on render(addr,len) syscall, copy from that VM memory location to framebuffer. 2025-12-12 14:22:42 +00:00
Toby Jaffey
2108083b75 Only send syscall every other frame, which makes VM stop to draw 2025-12-12 00:03:33 +00:00
Toby Jaffey
2d07f6fcc0 Munching squares 2025-12-11 23:53:43 +00:00
Toby Jaffey
e7485d5972 SDL based host with extram mapped to framebuffer and simple gfx app to accompany it 2025-12-11 23:31:10 +00:00
Toby Jaffey
577aaadacd Zig allocator demo, using extram 2025-12-11 21:18:21 +00:00
Toby Jaffey
a5018dab2f Fix path 2025-12-11 20:53:56 +00:00
Toby Jaffey
1eb03f1747 Fix path 2025-12-11 20:53:03 +00:00
Toby Jaffey
5fc4575888 Add precompiled heap example 2025-12-11 20:37:33 +00:00
Toby Jaffey
dc93c314e6 Add uintptr_t 2025-12-11 20:36:49 +00:00
Toby Jaffey
447af909c2 Add memtest and heap examples to build 2025-12-11 20:36:17 +00:00
Toby Jaffey
dae3c272d4 Install bc in docker, used for arithmetic in makefiles 2025-12-11 20:35:56 +00:00
Toby Jaffey
42cd77a9ff Cleanup paths 2025-12-11 20:35:39 +00:00
Toby Jaffey
f27ed6213c Example of setting up malloc heap on extram 2025-12-11 20:35:11 +00:00
Toby Jaffey
7fae8c129f Zero extram on startup.
On crash, dump extram to file
2025-12-11 17:48:00 +00:00