Commit graph

3336 commits

Author SHA1 Message Date
bunnie
8b8e7680cc update std implementation to assign handler 2024-10-18 04:17:06 +08:00
bunnie
6b48aee498 fix gfx server to comply with updated cram-soc apis 2024-10-10 02:08:13 +08:00
bunnie
8deeac91ee update existing api to match hw api
however, the actual driver is kind of bogus
2024-10-04 13:09:05 +08:00
bunnie
84c79a313b add udmaglobal implementation for xous environment 2024-10-04 13:08:46 +08:00
bunnie
68828cf9ce add IoGpio for xous environment 2024-10-04 13:08:27 +08:00
bunnie
84f88e9e65 configure xous-swapper to point to board files 2024-10-02 01:45:47 +08:00
bunnie
972a314869 configure xous-log to point to board files 2024-10-02 01:45:30 +08:00
bunnie
d3691a556c extract reserved pages from board files 2024-10-02 01:45:14 +08:00
bunnie
728fab3b62 consolidate spi pin setup 2024-10-02 00:24:03 +08:00
bunnie
76e88ebc7d absorb setup_pin trait into the cramium-hal service 2024-10-01 23:14:42 +08:00
bunnie
6f0ab9ae3d add flash write test routine to mbox 2024-10-01 14:41:22 +08:00
bunnie
043dfd84ae update formatting to latest nightly rules 2024-09-24 01:49:45 +08:00
bunnie
f248be981e fix broken factory test 2024-09-24 00:14:52 +08:00
bunnie
a8f2e9da27 fix up a tts bug 2024-09-23 23:02:32 +08:00
bunnie
e68fde8e2b update to use new flat-ipc API 2024-09-23 22:42:24 +08:00
bunnie
f494da21cc absorb new xous-ipc version 2024-09-23 22:05:50 +08:00
bunnie
2e9b19d62d fail, don't panic on serialization failure
this allows us to handle the error. probably should propagate
on to xous-ipc
2024-09-23 19:02:19 +08:00
bunnie
8cd1cef679 cleanup bulk read on PDDB
we don't have to pass a "size" field anymore; since we're end-offset
from pos, just pass pos and use that to chain records.
2024-09-23 18:07:50 +08:00
bunnie
921be1cf8b add bounds checking to a TextView string length
Before xous-ipc's fixed-length string guaranteed this thing
fit into a single page. Now, we can send potentially unbounded
amounts of text between servers.

I don't think it makes sense to send more than a few k of text to
render on the screen at once, given our screen sizes, so I've added
a patch that truncates the text to the previous length that things
would truncate to.

The behavior is the same as before, except that you will
over-allocate memory on the heap in the sending process
as you shove more string data into a TextView than can be rendered.
Previously, the TextView would just truncate the data and discard
the data.

The truncation happens at the point where you try to hand the
record off to another process, so, one could in theory try
to make this recoverable by adding a layer that splits the
textview into more manageable chunks or pages the data, but that
is an exercise for another day.
2024-09-23 17:35:27 +08:00
bunnie
e61a2e3238 reformat shellchat with the latest alphabetization rules 2024-09-23 17:22:47 +08:00
bunnie
1ec66137be port cramium target to xous-ipc 0.10 2024-09-23 14:35:51 +08:00
bunnie
7ea1400843 fixup cram-console for xous-ipc 0.10 2024-09-23 14:31:00 +08:00
bunnie
cdc841124d fix a xous-ipc change but now conflated with reformatting 2024-09-23 14:18:45 +08:00
bunnie
ec43c4622c print the debug info for trng pump 2024-09-23 14:18:16 +08:00
bunnie
9ebb61c68c update test on cram side too 2024-09-23 14:17:56 +08:00
bunnie
e9ab865e09 port trng server to use flatipc 2024-09-23 14:17:31 +08:00
bunnie
cbe9aa05be redo lib api to use flatipc; has a question for xobs 2024-09-23 13:38:38 +08:00
bunnie
75954de8d6 commit the version bump 2024-09-23 01:46:25 +08:00
bunnie
2f8604299c remove test for deprecated rkyv 2024-09-23 01:17:17 +08:00
bunnie
5973e48bf4 missed a case that is in hosted mode 2024-09-23 01:16:59 +08:00
bunnie
840964d33b track xous-tt-backend release bump 2024-09-23 00:33:03 +08:00
bunnie
4c7c9312c1 change xous-ipc api to 0.10.0 2024-09-23 00:24:48 +08:00
bunnie
5cad1a3bcf more xous_ipc cleanup 2024-09-23 00:03:49 +08:00
bunnie
3c0140bf2d final cleanup on shellchat xous-ipc abstractions
the implementation relied on a quirk of xous-ipc where the message
ID is 0 for string send/receives. This cleans it up so that the API
is transparent and consistent with other API calls in the system.
2024-09-23 00:01:32 +08:00
bunnie
8424d19ea9 fixup API to not rely on copy, instead use borrow
also some more regex fixup
2024-09-23 00:00:41 +08:00
bunnie
ef718853b2 cleanup borrow issues in com 2024-09-22 23:59:52 +08:00
bunnie
95a31a369c fix Copy derive and related issues in net 2024-09-22 21:55:20 +08:00
bunnie
e423bfd347 fix lines that missed the regex in DNS 2024-09-22 21:54:58 +08:00
bunnie
15aaf55e93 fix borrow for argument parsing 2024-09-22 21:54:24 +08:00
bunnie
4eb504bb43 more typecast cleanup 2024-09-22 18:51:06 +08:00
bunnie
839923967c git rid of a .clone() that crept in, now fixed by prior commit 2024-09-22 18:50:38 +08:00
bunnie
7141a02e10 ah yes. This was the kind of xous-ipc abuse I was worried I would have done.
And I did it! and it's now fixed.

I was using xous-ipc String to make a fixed-length string in a
structure that's not strictly an IPC structure.

The solution to this is to just implement a fixed length string
directly.
2024-09-22 18:49:26 +08:00
bunnie
6e4eec99a3 more cleanup on usb crate 2024-09-22 18:48:55 +08:00
bunnie
1b5eacdb68 manually cleanup a flat accessor in USB crate 2024-09-22 15:49:39 +08:00
bunnie
be227adde1 removed sized strings from pddb interchange structures
I think this is safe to do because no strings can be directly
serialized into the PDDB's structures. The place to check for
this is inside the backend/ directory. For example, `DictName`
is where the name field is serialized into a structure that
goes onto the disk. It's explicitly length-checked.

What this means is that we could have calls into the pddb crate
with invalid length strings, however, if you check the lib
implementation, all of the APIs also pre-flight the length of
arguments to ensure they fit into the destination string.

So mostly what we're losing is the constraints on the intermediate
IPC representation, but the length is still checked on either side.
2024-09-22 15:44:05 +08:00
bunnie
34e6f46d63 formatting changes that resulted from the regex search
a bunch of lines are shorter or different length now which
triggers a mandatory reformat. this patch cleans that up,
so that going forward the manual rework patches are clearer and
not tied up with formatting patches.
2024-09-22 15:31:14 +08:00
bunnie
0cdbfdfcc3 format cleanup & copy remove
a bunch of code has to be re-formatted because spacing changed
and we have a strict formatting rule
2024-09-22 15:29:23 +08:00
bunnie
f6f7cbdc98 bunnie-review: fix borrows in modals main loop
note for more review by bunnie down the road to make sure
that I have not changed any behaviors accidentally in fixing
the loss of Copy on a core structure
2024-09-22 15:28:11 +08:00
bunnie
af35f6e118 more cleanup of copy trait 2024-09-22 15:13:46 +08:00
bunnie
dfd7272773 review-needed: modify the alert modal prompt loop
The original loop takes advantage of the copy-trait that is
no longer available. I think the intent of the loop was to
mutate a field within the copy through each iteration so you
can update the prompt to handle field validations that failed
without re-allocating the ManagedPromtWithTextResponse structure.

This has been rewritten to alloc that each iteration to avoid
the borrow error, and instead the `prompt` itself is a string
that's initialized with the initial prompt message and is updated
on each iteration if the form validation fails.

@gsora git seems to say you wrote this code, maybe I could use
your help to review this patch.
2024-09-22 15:10:31 +08:00