bunnie
35e7cfe89e
jtag server now reporting ID
2021-08-10 22:46:00 +08:00
bunnie
bdd70f9502
stash to figure out build issue
2021-08-10 22:41:22 +08:00
bunnie
3be03bfb8b
fix debug statements
2021-08-10 22:41:15 +08:00
bunnie
e04a2e4ce0
fix debug statements
2021-08-10 18:20:50 +08:00
bunnie
5113df5eec
Merge branch 'bunnie-dev' into main
...
Use a RefCell to solve the interior mutability issue introduced
by the &mut check introduced on MemoryRanges.
2021-08-10 18:13:33 +08:00
bunnie
4b175df36b
fix multithreaded gateware verification at boot
2021-08-10 05:08:09 +08:00
bunnie
cf3ed935e7
add staging location lockout and xous-names completion checking
2021-08-10 04:30:45 +08:00
bunnie
184bb8405f
getting closer to a finalized flow.
2021-08-10 03:04:03 +08:00
bunnie
352b725f7a
add an abort option to the initialization flow
2021-08-10 02:48:32 +08:00
bunnie
29f7cbe53b
refactor main menu to give options for rootkey operations
2021-08-10 01:54:35 +08:00
bunnie
7edc119472
clean up debug spew
2021-08-09 14:06:54 +08:00
bunnie
04dc6a4c2b
refactor engine-sha512 to be named sha2
...
this makes patch.crates-io much easier to debug, we now
have the hardware hasher working in all the places i expect it to.
2021-08-09 04:40:33 +08:00
bunnie
ec6a3fd1a3
self-signing working, but the patch to use the SHA hash engine seems to be disregarded...
2021-08-09 03:27:43 +08:00
bunnie
b332f07d99
Update flash.md
2021-08-08 01:53:52 +08:00
bunnie
bc6ec8caf4
initial key provisioning demo working
2021-08-07 22:21:49 +08:00
Sam Blenny
8baccc0063
Remove dead code for ip shellchat command
...
This stuff was left over from an old idea that I didn't implement.
Signed-off-by: samblenny
2021-08-06 10:02:30 +00:00
Sean Cross
9b4333802d
vscode: specify platform for vscode support
...
Signed-off-by: Sean Cross <sean@xobs.io>
2021-08-06 17:51:47 +08:00
Sean Cross
fa2a841f8a
kernel: fix hosted mode exception support
...
Signed-off-by: Sean Cross <sean@xobs.io>
2021-08-06 17:51:24 +08:00
Sean Cross
32eb3c202c
xous: add exception handler support
...
This has been tested end-to-end. We now have exception handler support.
There is a potential issue when passing messages to our own process in
an exception handler. This will need to be investigated.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-08-06 17:48:17 +08:00
Sean Cross
6985fda7ba
kernel: get exceptions fully working
...
This finishes work with exceptions such that they now actually work.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-08-06 17:47:44 +08:00
Sam Blenny
53a0bf2827
Use com_rs::serdes::StringDes for wlan status
...
Switch to using the new com_rs::serdes::StringDes struct for
deserializing the COM protocol response to WLAN_STATUS.
With this change, `wlan status` will receive a string of up to 64
bytes and print it to the shellchat log. Status string formatting
is handled by the betrusted-ec EC firmware code.
Signed-off-by: samblenny
2021-08-06 08:30:16 +00:00
Sean Cross
9bba083e2e
kernel: remove debug print from mem.rs
...
Signed-off-by: Sean Cross <sean@xobs.io>
2021-08-06 13:05:23 +08:00
Sean Cross
15c9eadc4c
kernel: riscv: re-fix mem warnings
...
The previous approach did not work, and broke everything. This fixes it
properly.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-08-06 13:02:16 +08:00
Sean Cross
b6f706411b
kernel: gdb_server: fix clippy warnings
...
Signed-off-by: Sean Cross <sean@xobs.io>
2021-08-06 12:55:22 +08:00
Sean Cross
68f5e81d3f
kernel: riscv: fix warnings in process
...
Fix clippy warnings in the `process.rs` file.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-08-06 12:54:43 +08:00
Sean Cross
dbd34318ce
Revert "kernel: fix remaining clippy warnings"
...
This appears to have broken things.
This reverts commit 8b0dd3630c .
2021-08-06 12:51:40 +08:00
Sean Cross
5dbf6a9964
xous: definitions: derive Debug on ExceptionType
...
Signed-off-by: Sean Cross <sean@xobs.io>
2021-08-06 12:35:55 +08:00
Sean Cross
9b48c0a2ee
xous-ipc: remove most clippy warnings
...
Signed-off-by: Sean Cross <sean@xobs.io>
2021-08-06 12:21:42 +08:00
Sean Cross
b3cb5ff40a
xous-rs: remove all remaining clippy warnings
...
Signed-off-by: Sean Cross <sean@xobs.io>
2021-08-06 12:21:24 +08:00
Sean Cross
c2bc966020
xous: locale: remove unnecessary &static lifetime
...
Signed-off-by: Sean Cross <sean@xobs.io>
2021-08-06 12:04:41 +08:00
Sean Cross
e900912e58
xous: stringbuffer: fix clippy warnings
...
Signed-off-by: Sean Cross <sean@xobs.io>
2021-08-06 12:04:21 +08:00
Sean Cross
6d7660b76a
loader: debug: fix minor clippy warning
...
Signed-off-by: Sean Cross <sean@xobs.io>
2021-08-06 11:55:56 +08:00
Sean Cross
8b0dd3630c
kernel: fix remaining clippy warnings
...
This removes all remaining clippy warnings from inside the kernel.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-08-06 11:43:34 +08:00
Sean Cross
0a6a1f2edd
kernel: syscall: ignore final Clippy warning
...
This warning is due to some debug information that is currently unused.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-08-06 11:39:09 +08:00
Sean Cross
cc8dc49dba
kernel: riscv: refactor irqs to support exceptions
...
This fixes the exception handler so that it can support user-defined
exceptions. Additionally, kernel mode errors are called out now.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-08-06 11:37:27 +08:00
Sean Cross
19f68edbb4
kernel: riscv: allow exceptions with NULL pc
...
When the program counter is NULL, we can still get exceptions. This
happens when we jump to an invalid address, for example.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-08-06 11:34:50 +08:00
Sean Cross
08b787a03e
kernel: debug: fix remaining clippy lints
...
Signed-off-by: Sean Cross <sean@xobs.io>
2021-08-06 11:34:30 +08:00
Sean Cross
c7ff0ceb21
kernel: mem: fix remaining clippy lints
...
Signed-off-by: Sean Cross <sean@xobs.io>
2021-08-06 11:32:52 +08:00
Sean Cross
d27a2eb27e
kernel: mem: use iter instead of array access
...
This compresses the entirety of the memory range finder into a single
statement. As a result, duplicate code is removed and we can elide more
range checks.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-08-06 11:30:29 +08:00
Sean Cross
9dc4fcbf55
kernel: services: fix all clippy warnings
...
Signed-off-by: Sean Cross <sean@xobs.io>
2021-08-06 10:16:29 +08:00
Sean Cross
d4675ef9cf
kernel: services: allow unsetting exception handler
...
Signed-off-by: Sean Cross <sean@xobs.io>
2021-08-06 10:05:29 +08:00
Sean Cross
5b2ac0df68
kernel: implement SetExceptionHandler routine
...
Signed-off-by: Sean Cross <sean@xobs.io>
2021-08-06 10:03:29 +08:00
Sean Cross
76953985fe
kernel: fix clippy warnings in mem/server
...
Signed-off-by: Sean Cross <sean@xobs.io>
2021-08-06 10:03:12 +08:00
Sean Cross
059fc18850
services: add exception handler routines
...
Add a function to set and one to clear the current exception handler.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-08-06 10:02:32 +08:00
Sean Cross
a096509a04
kernel: irq: use iter for IRQ_HANDLERS
...
Don't use direct indexing. Instead, use an iterator to go through the
IRQ_HANDLERS array.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-08-06 10:00:42 +08:00
bunnie
86845dd093
fix permissions
2021-08-06 02:34:35 +08:00
bunnie
82aaeb072f
gateware HMAC verification now working!
2021-08-06 02:33:52 +08:00
bunnie
40b671ffac
refactor for sha256 software emulation native in the engine512 crate
2021-08-05 22:07:21 +08:00
Sean Cross
b98e465d12
kernel: more clippy warning fixes
...
Signed-off-by: Sean Cross <sean@xobs.io>
2021-08-05 16:59:27 +08:00
Sean Cross
d7a9b64d82
xous: add SetExceptionHandler syscall
...
Signed-off-by: Sean Cross <sean@xobs.io>
2021-08-05 16:59:06 +08:00