Sean Cross
75fbf173a9
services: fix mutable references via as_slice_mut
...
The function `as_slice_mut()` takes a `MemoryRange` and returns a
mutable slice. Previously, this could be called on a memory range that
was not defined as `mut`.
This will be fixed in `xous-rs` so that `as_slice_mut()` can only be
called on a region that is defined as `mut`.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-08-05 16:55:53 +08:00
bunnie
c81a9a7644
whups a buffer wasn't saved during the refactor
2021-08-04 02:05:26 +08:00
bunnie
ef671dd6a3
fix up xous-names and resolve issue #26 thanks to stdlib
...
also frees up about 24k of unused RAM, i'll take it!
2021-08-04 01:59:17 +08:00
bunnie
8b83fb7c65
remove heapless, go to libstd for all collections!!!!
...
*fistpump*
2021-08-04 01:25:32 +08:00
bunnie
34d44ee9e7
start to remove heapless and commit to libstd flow
2021-08-04 00:07:47 +08:00
bunnie
cabcce9ab2
fix minor issues for std integration
2021-08-03 18:23:04 +08:00
bunnie
68ea69c2ed
Merge branch 'bunnie-dev' into main
2021-08-03 17:22:10 +08:00
bunnie
f638d01289
fix a minor issue in hosted mode
2021-08-03 16:57:54 +08:00
bunnie
01d6c61bb6
commit before merging main stuff
...
want to capture in the libstd improvements before we get too much
version drift
2021-08-03 16:54:42 +08:00
bunnie
07bf3478fa
add the KEYROM patching database for rewriting bitstreams with new keys
...
This code was originally in https://github.com/betrusted-io/rom-locate .
However, the majority of that crate is concerned with creating the database
files necessary for the patching, and it pulls in a lot of dependencies.
Changing hardware targets is considered to be a "huge" change for this
project, so we're pushing the code generator directly into xous-core,
and commiting the generated code directly. The theory is that we would
probably never have to modify this code, since it's so intimately linked
to the hardware; it's a bit like committing an include file with
register offsets for a particular peripheral.
2021-08-03 16:28:17 +08:00
bunnie
d86c78eea8
partial progress on self-signing
2021-08-03 04:58:34 +08:00
Sean Cross
b86e0a65cd
services: recognize xous as a hardware OS
...
Support `xous` as a valid OS. This allows us to build the entire kernel
under this target.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-08-02 18:11:48 +08:00
bunnie
d112d49524
clean up UX work before switching back into crypto work
2021-08-01 17:52:15 +08:00
bunnie
2714c9eb13
link in some READMEs so that rustdoc pulls them in
...
also add some bread crumbs on the more user-facing APIs to
help beginners out. Need to do a good spring cleaning of the
rustdoc tree, though. looks pretty terrible as it is.
2021-08-01 16:08:27 +08:00
bunnie
e968798fff
fix defacement ordering
2021-08-01 15:06:28 +08:00
bunnie
cfd5e18549
add a progress bar/slider element. getting there.
2021-08-01 04:02:15 +08:00
bunnie
1d3eaa4f9a
fix a stale dialog box message
2021-07-31 04:02:18 +08:00
bunnie
d56e58cb06
ux now to the point of gathering all the required passwords.
2021-07-31 03:54:10 +08:00
bunnie
d7d052b6ff
refactor ux flow, now on a good footing
2021-07-31 03:27:16 +08:00
bunnie
41843db988
intermediate progress on the main UX flow again
...
does not build clean because still deciding on how to handle
UX feedback.
2021-07-30 19:04:02 +08:00
bunnie
151d1ee229
add tests to bcrypt and fix some corner cases
2021-07-30 15:28:47 +08:00
bunnie
919e9e87ff
add bcrypt for password hashing, take care of life cycle of plaintext
2021-07-30 04:07:10 +08:00
bunnie
17be958d87
convert defacement to an XOR
...
this ensures that "all back" dialog boxes that are fake
are also defaced (as opposed to just drawing black, which
would not deface a "fake" dialog box).
2021-07-29 22:13:44 +08:00
bunnie
86a5c34a5b
refactor root-keys to use the latest UX features
...
UX flow for requesting passwords is now more or less complete...
this yak is shaved?
2021-07-29 03:30:03 +08:00
bunnie
78c0b30382
refactor menu
...
- move it to the status thread, out of the GAM
- this allows us to refactor the menu code into its own module
2021-07-29 01:04:22 +08:00
bunnie
8b992bbe38
fix shorter-than-one-line text fitting problem
...
right character gets cut off, but it's because the cursor is
the top left of the last character. add one character height plus
margin to the shortening, because the margin itself could be 0
in many case.
2021-07-29 01:02:44 +08:00
bunnie
03a9719884
Merge branch 'bunnie-dev' into main
2021-07-28 23:58:46 +08:00
bunnie
8cdf3c148b
clean up warnings before merge to main
2021-07-28 23:58:15 +08:00
bunnie
f5a9cce4ac
fix minor bugs in rtc set routine
2021-07-28 23:15:53 +08:00
bunnie
e60478d8d3
checkbox and radiobox now working.
2021-07-28 23:00:25 +08:00
bunnie
9ae5feab78
refactor to add helper threads to the UX format; documentation
2021-07-28 17:35:25 +08:00
bunnie
9f3615fd3d
extend RTC setting with UX
...
not because this is so important, but because it's a simple
test case that exercises a lot of features.
2021-07-28 04:27:14 +08:00
bunnie
b6c443145c
extend modal functions; refactor status into its own server
2021-07-28 01:01:39 +08:00
bunnie
9b51edfe6c
add backspace (derp)
2021-07-27 18:00:09 +08:00
bunnie
4affdabc73
password modal box now nominally works
2021-07-27 17:30:37 +08:00
bunnie
1a65cd3389
password dialog box basic layout is kind of there
...
a little ugly, but...this has already taken too long.
2021-07-27 04:40:12 +08:00
bunnie
53f35f9928
intermediate work toward getting the password box going
...
lots of changes, maybe finally getting out of the UX rathole now
that basic localization is in place
2021-07-26 00:51:22 +08:00
bunnie
86e113b678
add locale to front-end; update menus to suppress 🔇 characters automatically
2021-07-26 00:49:33 +08:00
bunnie
2b57e1c4f8
add static localization
2021-07-25 23:46:03 +08:00
bunnie
bc5d262431
Update README.md
2021-07-23 17:19:50 +08:00
bunnie
556f0aaea5
beginnings of a password dialog system
2021-07-22 03:04:16 +08:00
bunnie
5280d232e5
figuring out which way is up on the RootKeys implementation
2021-07-21 19:47:09 +08:00
bunnie
ce18716b88
add the boilerplate for the keys server
2021-07-20 01:59:52 +08:00
bunnie
d0804ed330
add some notes about the keys block
2021-07-20 01:46:14 +08:00
bunnie
e362e2579f
un-break hosted mode
2021-07-18 18:29:24 +08:00
bunnie
d98f296499
fixed ordering bug in spinor driver
...
works now!
2021-07-18 18:02:46 +08:00
bunnie
7257dbcaef
add cache flush after array write
2021-07-18 16:04:44 +08:00
bunnie
91fe69ca27
add some real-hardware tests for spinor writes
...
definitely still bugs.
need to sleep on it.
2021-07-18 02:36:31 +08:00
bunnie
904f6f6f38
add more tests
2021-07-17 23:33:57 +08:00
bunnie
168d0fc2cb
start of some basic tests
2021-07-17 17:12:23 +08:00