bunnie
b24ac8a34d
Merge branch 'bunnie-dev' into main
2021-06-29 23:46:58 +08:00
bunnie
674faa46d9
button up after debugging the ed25519 issue
2021-06-29 23:46:15 +08:00
bunnie
d00717bc17
try to make a simpler example
2021-06-29 01:35:03 +08:00
bunnie
c880eda822
commit renode changes
2021-06-29 00:51:52 +08:00
bunnie
0bad1ad755
isolate a potential compiler bug
2021-06-29 00:10:46 +08:00
Sean Cross
deb524e570
emulation: sha512: wire up done bit
...
Signed-off-by: Sean Cross <sean@xobs.io>
2021-06-28 21:37:42 +08:00
Sean Cross
3de0b4cf06
emulation: connect sha512 to Renode
...
Signed-off-by: Sean Cross <sean@xobs.io>
2021-06-28 21:35:17 +08:00
Sean Cross
96c3c59b72
emulation: add first draft of sha512 engine
...
This should be feature complete, but has not been tested.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-06-28 21:34:50 +08:00
Sean Cross
2877fcc72a
emulation: correctly wire keyboard inject interrupt
...
This interrupt was wired to the incorrect variable.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-06-28 21:34:20 +08:00
bunnie
8da62390ad
add RFC7748 test vectors for diffie hellman
2021-06-28 19:01:22 +08:00
bunnie
e01676d563
move the montgomery multiply code into the engine server
...
this saves a fairly substantial amount of time marshalling
re-used bits of microcode around on the benchmarks.
2021-06-28 18:41:34 +08:00
bunnie
ee87fd35a8
add hw acceleration for the affine transform on curve25519
2021-06-28 04:43:56 +08:00
bunnie
89b3875bfc
commit before working on acceleration code
2021-06-28 02:33:32 +08:00
bunnie
d50b620f33
Merge branch 'main' of github.com:betrusted-io/xous-core into main
2021-06-28 01:34:04 +08:00
bunnie
4a3258f6bd
Merge branch 'bunnie-dev' into main
2021-06-28 01:33:42 +08:00
bunnie
d791548b9d
straggler.
2021-06-28 01:32:42 +08:00
bunnie
0563bfb8ad
remove local paths so we can push to CI
2021-06-28 01:32:17 +08:00
bunnie
e2ada8f8fe
attempt to fix up some build system warts
2021-06-28 01:31:43 +08:00
Sean Cross
4e54bfdc7a
kernel: use gdbstub dev/0.6
...
The previous brach will shortly be deleted.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-06-27 19:23:53 +08:00
bunnie
a9cc7c3b53
unbreak the renode build
2021-06-27 16:22:30 +08:00
bunnie
7dfa77de11
Merge branch 'bunnie-dev' into main
2021-06-27 03:19:50 +08:00
bunnie
906882be71
un-break hosted mode
2021-06-27 03:19:22 +08:00
bunnie
5ab0c0b426
commit a version that should be able to build in CI now
2021-06-27 03:14:50 +08:00
bunnie
e39c2200cd
fix up the build system warts & integration with dalek crates
...
we are at least now only requiring users to use our patched
curve25519-dalek crate, which now builds cleanly in both
xous and std environments, but the higher-level crates can be
directly used from crates.io
2021-06-27 03:07:39 +08:00
bunnie
6efdb7e0db
stash a version with XousEngine25519 traits in case we want it back later
2021-06-27 00:31:15 +08:00
Sean Cross
6b53b1e159
keyboard: map "Home" key to home button
...
It just makes sense.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-06-26 00:40:48 +08:00
Sean Cross
e6073c585d
emulation: fix mapping for down/left
...
This also maps backslash to Menu.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-06-26 00:39:45 +08:00
Sean Cross
24fbdd9c48
emulation: check in newly-minted i2c drivers
...
Signed-off-by: Sean Cross <sean@xobs.io>
2021-06-25 23:55:50 +08:00
Sean Cross
a0cc1e2f24
svd2repl: generate i2c bus for betrusted
...
Signed-off-by: Sean Cross <sean@xobs.io>
2021-06-25 23:55:21 +08:00
Sean Cross
2c270ee355
emulation: add initial drafts of i2c for soc
...
Signed-off-by: Sean Cross <sean@xobs.io>
2021-06-25 23:55:04 +08:00
bunnie
9ebd181694
engine25519 core services now working
2021-06-25 19:35:31 +08:00
bunnie
1d9b474a6d
add in a missing redraw command
2021-06-25 09:09:42 +08:00
bunnie
1d274e4d7c
engine passs tests, but still some issues with power management
2021-06-25 04:40:06 +08:00
bunnie
6825e2e7e8
reset the i2c machine every new transaction
2021-06-25 03:41:42 +08:00
bunnie
f7874aab94
add in a missing redraw command
2021-06-25 03:38:54 +08:00
bunnie
75dca6bd4c
checkin for a rollback to sanity check some things
2021-06-25 02:09:42 +08:00
Sean Cross
7b7be0fe9e
hosted: fix MemoryRange refactor
...
This fixes the MemoryRange refactor where `.addr` and `.size` are now
private fields.
Previously it had only been tested on baremetal mode.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-06-24 18:02:28 +08:00
Sean Cross
a99839ecd6
xous: mark MemoryRange fields as private
...
Mark the private fields in a `MemoryRange` struct as being private. This
allows us to perform operations on the memory range armed with the
knowledge that the entire range is valid and unaliased.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-06-24 17:41:16 +08:00
Sean Cross
1fb7d4ebd5
kernel: use unsafe {} on Hosted mode
...
Since `MemoryRange::new()` is now unsafe, add an `unsafe {}` note when
calling this function on Hosted mode.
This fixes the build.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-06-24 17:07:41 +08:00
Sean Cross
023918082b
xous: add as_slice() and as_mut_slice() to MemoryRange
...
Add functions to obtain various slices from a `MemoryRange`. These
functions are safe because we know that the memory in the range is
valid, and we know the size of the type.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-06-24 17:02:47 +08:00
Sean Cross
977a175bb5
xous: mark MemoryRange::new() as unsafe
...
This function allows for creating arbitrary memory ranges. Mark this
function as `unsafe` in order to warn users that this can be used to
create invalid memory regions.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-06-24 17:02:02 +08:00
bunnie
afa55055ea
add serial console mux setting
2021-06-24 13:52:44 +08:00
bunnie
3b0a4f2bf4
clean up some obvious bugs
...
stuff doesn't crash but also doesn't work
2021-06-24 03:38:32 +08:00
bunnie
ae25142acb
engine25519 doesn't crash on boot, at least.
...
ManagedMemory structure for susres has some issues with large
blocks, so use "heap-allocated" structures
2021-06-24 03:17:32 +08:00
bunnie
16ec932286
refactor to sync/async apis split
2021-06-23 19:12:43 +08:00
bunnie
7ff4824eb6
add routines to copy audio test files to the device
2021-06-23 19:07:59 +08:00
bunnie
f93e06939e
Update flash.md
2021-06-23 18:52:25 +08:00
Sean Cross
b1e949c4c4
xtask: add libstd-test routine
...
This routine takes a list of binaries to include in the resulting image.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-06-23 17:54:04 +08:00
Sean Cross
e4d02301ee
kernel: support pluggable debug printing
...
This allows us to support different printers in the kernel. For example,
this can be used to swap out the println!() function to print to GDB
when a debugger is attached.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-06-23 17:51:59 +08:00
bunnie
5d21ef0c76
beginnings of the curve25519 accelerator engine core driver
...
the engine-25519 server just takes microcode jobs and runs them
on the curve25519 accelerator engine.
all the fancy crypto stuff comes from other crates, which will
be filled in later.
2021-06-22 01:48:51 +08:00