Commit graph

2019 commits

Author SHA1 Message Date
Sean Cross
1ef4c0d87d kernel: mem: actually free unmapped pages
Previously we would only free a page if it was valid. Now we
unconditionally free it.

Signed-off-by: Sean Cross <sean@xobs.io>
2021-09-27 19:40:39 +08:00
Sean Cross
956d5f0866 kernel: remove debugging prints for memory allocation
Signed-off-by: Sean Cross <sean@xobs.io>
2021-09-27 19:38:15 +08:00
Sean Cross
62216b7295 kernel: allow freeing unbacked virtual memory
Memory is on-demand allocated, meaning it's entirely possible to
allocate and free memory without ever touching physical pages.

Previously, when we attempted to free memory, it would skip over pages
that were never backed by real memory.

With this patch, we continue to free the virtual page even if there is
no associated physical page.

Signed-off-by: Sean Cross <sean@xobs.io>
2021-09-27 13:39:10 +08:00
Sean Cross
b1fec878a4 Merge branch 'main' of github.com:betrusted-io/xous-core 2021-09-26 22:21:05 +08:00
bunnie
a629681c59 re-enable the watchdog timer for the master branch 2021-09-25 22:36:35 +08:00
bunnie
1f92ed3551 update precursors 2021-09-25 22:29:30 +08:00
bunnie
4a57adac3d add battery check, version print to oqc test 2021-09-20 00:05:21 +08:00
bunnie
87228ad747 basically working OQC test 2021-09-19 01:06:21 +08:00
bunnie
c2c919ba81 add oqc test service
this works around the problem with stdlib allocator not
working quite correctly in spawned threads.
2021-09-18 02:22:35 +08:00
bunnie
74207851ac don't even include the code to print server ID 2021-09-18 02:22:06 +08:00
bunnie
bdbaba027b improve drawing performance
the trailing update after every event seems redundant now that
the gam is cleaned up

also fix a bug that causes overflow text on tl fitted text
to overflow the drawing region
2021-09-18 02:21:12 +08:00
bunnie
5df4e38caf add some debug helpers for suspend/resume 2021-09-18 02:19:43 +08:00
bunnie
029c845359 add ssid, suspend/resume test to the OQC test routine; comment out keyboard
keyboard routine still pending fixing a possible bug in xous allocator
2021-09-16 03:54:35 +08:00
bunnie
ce026e661d clear warning from previous mux fix 2021-09-16 03:54:19 +08:00
bunnie
21fb59c4d9 fix incorrect &mut self in library call 2021-09-16 03:53:36 +08:00
bunnie
9aef2eb7b4 fix dirty rectangles on resume 2021-09-16 03:53:04 +08:00
bunnie
4882016d08 add a graphics test routine for OQC
invoked via the GAM, callable exactly once per boot for up
to 60 seconds.
2021-09-16 01:00:22 +08:00
bunnie
f0dd512d7d bump sha2 version number so it matches what's on crates.io (for clean patching) 2021-09-15 18:53:11 +08:00
bunnie
8edb02ba40 try a version using scalars, still crashes 2021-09-15 18:29:27 +08:00
bunnie
8ce0e8c789 intermediate checkpoint of failing memory-passing for keyrawstates 2021-09-15 17:59:13 +08:00
Sean Cross
45d8124418 Merge branch 'main' of github.com:betrusted-io/xous-core 2021-09-15 17:18:14 +08:00
bunnie
dfc6444d78 add killkey test to the self test suite 2021-09-14 20:15:03 +08:00
bunnie
3f1ba5e279 add com trng seed, uptime on EC; EC reset test commands 2021-09-13 23:28:54 +08:00
bunnie
d0a83b6865 add backlight test 2021-09-11 22:53:20 +08:00
bunnie
49919c6123 fix typo in check clause 2021-09-11 18:02:26 +08:00
bunnie
5bff7433a5 add internal vcc measeruments to self test 2021-09-11 18:00:22 +08:00
bunnie
e06188c5fa add trng module to self-test 2021-09-11 00:16:55 +08:00
bunnie
5c33e84858 fix hosted mode missing audio dummy functions 2021-09-10 22:58:03 +08:00
bunnie
6eed8deb4c improve audio testing integration for automation framework 2021-09-10 22:54:23 +08:00
bunnie
16fdd25839 fix new compiler warnings since rust 1.55 re: workspace issues 2021-09-10 22:54:01 +08:00
bunnie
beed5c395a add volume control functions to the codec 2021-09-10 22:53:41 +08:00
bunnie
8648a342fc Merge branch 'bunnie-dev' of github.com:betrusted-io/xous-core into bunnie-dev 2021-09-10 02:56:52 +08:00
bunnie
3be7204ce6 audio test frameworks initial working cut 2021-09-10 02:56:27 +08:00
bunnie
966615270f update trng test wdt ping method 2021-09-09 22:38:51 +08:00
bunnie
bd89146967 commit latest formatting changes for test output 2021-09-09 22:32:08 +08:00
bunnie
549912c9d5 add rtc test 2021-09-09 16:55:56 +08:00
bunnie
7ac8b9100d create a test case for cosine intrinsics 2021-09-08 15:10:54 +08:00
bunnie
af016f95cc Merge branch 'main' into bunnie-dev 2021-09-07 19:12:34 +08:00
bunnie
ccbe7c479f improve braille testing flags, make them more consistent
i wonder if there isn't a workspace-level way to flip a flag...
2021-09-07 19:11:54 +08:00
bunnie
f3786b01a1 Merge branch 'main' of github.com:betrusted-io/xous-core into main 2021-09-07 19:01:02 +08:00
bunnie
840cccecda make the filename more obvious for the purpose of the legacy update script 2021-09-07 19:00:34 +08:00
bunnie
da9078749f add a script for xous 0.8 devices. because there are still a couple out there 2021-09-07 18:59:47 +08:00
bunnie
3f998dd6e4 Merge branch 'main' into bunnie-dev 2021-09-07 05:10:21 +08:00
bunnie
c7b523cb02 commit precursors that fix curve25519 bug 2021-09-07 05:09:54 +08:00
bunnie
74e2f3f2d2 add a trace debug print in engine emulation for correlation
against cycle-accurate verilog simulator.
2021-09-07 05:08:56 +08:00
bunnie
3c67e7a89b update csharp docs 2021-09-06 21:11:27 +08:00
bunnie
0e94725d23 add wycheproof help message 2021-09-06 14:43:19 +08:00
bunnie
e510525a0a move wycheproof-import to tools 2021-09-06 14:42:19 +08:00
bunnie
01bfc375b2 Merge branch 'main' into bunnie-dev 2021-09-06 14:40:16 +08:00
bunnie
1a55973346 adjustments to self test routines 2021-09-06 14:39:44 +08:00