Sean Cross
27c4444d7c
aes-test: more pruning of C-isms
...
Signed-off-by: Sean Cross <sean@xobs.io>
2021-06-02 13:52:16 +08:00
Sean Cross
e6816ce982
aes-test: fix AES-128 test vectors
...
Some values got swapped around.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-06-02 13:52:03 +08:00
Sean Cross
a137ac3848
aes-test: implement looping tests
...
Add looping tests for AES-128, -192, and -256.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-06-02 13:44:41 +08:00
Sean Cross
668a9c758d
aes-test: implement AES-192
...
Signed-off-by: Sean Cross <sean@xobs.io>
2021-06-02 13:44:28 +08:00
Sean Cross
41e9a70977
aes-test: move low_level_tests to their own mod
...
The low-level tests are useful in validating that the hardware works,
however they generally are not useful. Split them into their own module.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-06-02 12:22:27 +08:00
Sean Cross
7a675cdbc4
aes-test: get decryption working
...
Signed-off-by: Sean Cross <sean@xobs.io>
2021-06-02 12:15:24 +08:00
Sean Cross
a77e8e32be
aes-test: get initial tests passing
...
Signed-off-by: Sean Cross <sean@xobs.io>
2021-06-02 11:09:05 +08:00
Sean Cross
837885798d
xtask: add renode-aes-test as a target
...
This generates an image that allows for testing AES.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-06-01 20:02:15 +08:00
Sean Cross
0644d681c5
emulation: add simple vexriscv aes engine
...
This Python-based engine implements the vexriscv accelerated
instructions.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-06-01 20:01:43 +08:00
Sean Cross
9638c67aae
aes-test: add test program
...
This is a basic program that exercises the AES core
Signed-off-by: Sean Cross <sean@xobs.io>
2021-06-01 20:01:23 +08:00
Sean Cross
b22ec0369e
xous: asm: add aes calls for vexriscv
...
VexRiscv has accelerated AES instructions. This adds ASM hooks for these
instructions so they can be called from Rust.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-06-01 19:52:37 +08:00
Sean Cross
8ee3b2cc1b
Merge branch 'master' of github.com:betrusted-io/xous-core
2021-06-01 17:57:23 +08:00
bunnie
d5318ba643
Update memory.md
2021-05-30 19:56:57 +08:00
bunnie
a68330b06e
Update flash.md
2021-05-22 02:02:01 +08:00
bunnie
e277acb59c
Update flash.md
2021-05-22 00:15:54 +08:00
bunnie
c05da31ea5
Update flash.md
2021-05-21 19:12:02 +08:00
bunnie
809ad764aa
Update flash.md
2021-05-21 19:10:06 +08:00
bunnie
6a44a7f08d
Update flash.md
2021-05-21 19:05:04 +08:00
Sean Cross
be6e0a9895
kernel: fix thread termination and waiting
...
Signed-off-by: Sean Cross <sean@xobs.io>
2021-05-21 17:23:13 +08:00
Sean Cross
18a86a9a19
xous: add homepage and repository fields to Cargo.toml
...
Signed-off-by: Sean Cross <sean@xobs.io>
2021-05-21 16:43:30 +08:00
Sean Cross
8d41777dc1
release 0.8.3
...
This implements the `JoinThread(tid)` syscall.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-05-21 16:41:13 +08:00
Sean Cross
a83cf9fe48
xous: document some more functions
...
Signed-off-by: Sean Cross <sean@xobs.io>
2021-05-21 16:40:33 +08:00
Sean Cross
ca53abbd25
xous: wire up wait_thread for baremetal
...
Now that we have a `JoinThread`, connect the `wait_thread` syscall.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-05-21 16:37:19 +08:00
Sean Cross
714aff830c
kernel: implement JoinThread(tid)
...
Signed-off-by: Sean Cross <sean@xobs.io>
2021-05-21 16:32:38 +08:00
Sean Cross
091a655a0a
xous: document disconnect
...
Signed-off-by: Sean Cross <sean@xobs.io>
2021-05-21 16:32:27 +08:00
Sean Cross
7c2d3a2247
kernel: implement thread exit support
...
Threads now have the ability to exit. Previously this resulted in a
kernel panic.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-05-21 13:04:14 +08:00
Sean Cross
6b70922381
xous: add JoinThread syscall
...
The `JoinThread` call will eventually be used to let one thread wait on
another.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-05-21 13:01:03 +08:00
Sean Cross
b617ed2f32
services: ticktimer-server: explicitly specify opcode numbers
...
These opcode numbers will be baked in at the ABI level for several
libraries such as libstd.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-05-20 12:47:02 +08:00
Sean Cross
3b540e4e9a
xous: tag 0.8.2
...
This contains some minor modifications to the ABI.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-05-20 11:53:02 +08:00
Sean Cross
e616a4bf4f
kernel: fix hosted build/warnings
...
Signed-off-by: Sean Cross <sean@xobs.io>
2021-05-20 11:52:03 +08:00
Sean Cross
09b8242bb2
kernel: get process termination "working" on risc-v
...
This successfully allows a process to call `terminate_process(val)`.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-05-20 11:42:31 +08:00
Sean Cross
eb7895d601
xous: add a return code to TerminateProcess
...
As part of this refactor, make `terminate_process()` a divergent call.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-05-20 11:01:00 +08:00
Sean Cross
ca1b9aa35c
log-server: fix implementation of stdout/stderr
...
The buffer was incorrectly sized.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-05-19 20:56:32 +08:00
Sean Cross
6e57fbe29b
kernel: riscv: make sure to flush mmu
...
THe MMU flushing logic got disabled due to an experiment. Re-enable it
to ensure pages are consistent when shifting them across boundaries.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-05-19 20:55:45 +08:00
Sean Cross
efe5a8b9e8
xous: tag v0.8.1
...
This adds the `stringbuffer` object.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-05-19 14:27:58 +08:00
Sean Cross
51b4a2db82
emulation: check in repl file with warning header
...
Signed-off-by: Sean Cross <sean@xobs.io>
2021-05-19 14:27:42 +08:00
Sean Cross
3575a00f25
xtask: regenerate repl file as part of renode-image
...
Use `svd2repl` to generate the Renode platform file.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-05-19 14:26:18 +08:00
Sean Cross
659f5b7f68
svd2repl: print auto-generated warning in header
...
Print a warning indicating that the platform file is auto-generated.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-05-19 14:25:50 +08:00
Sean Cross
c516919479
xous: run cargo fmt
...
Signed-off-by: Sean Cross <sean@xobs.io>
2021-05-19 14:20:47 +08:00
Sean Cross
f7ae13da44
tools: run cargo fmt on pnam
...
Signed-off-by: Sean Cross <sean@xobs.io>
2021-05-19 14:20:22 +08:00
Sean Cross
d15127fef6
kernel: run cargo fmt
...
Signed-off-by: Sean Cross <sean@xobs.io>
2021-05-19 14:18:46 +08:00
Sean Cross
47bf453325
kernel: riscv: use raw pointers for mmu mapping
...
This avoids using uninitialized arrays to manage the pagetables, and
instead uses raw pointers. This should avoid using potentially
uninitialized data.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-05-19 14:17:53 +08:00
Sean Cross
25f976dbb6
kernel: claim uart irq before we enable irqs
...
In order to prevent a race at the start, claim the IRQ before we enable
the IRQ.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-05-19 14:17:07 +08:00
Sean Cross
a1b16a74cb
xous: definitions: add default constructors for Message
...
Enable creating new_lend() and new_scalar() messages.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-05-19 14:14:21 +08:00
Sean Cross
7fe10b6463
xous: stringbuffer: fix build in libstd
...
When building as part of libstd, we need to manually specify flags.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-05-19 14:13:38 +08:00
Sean Cross
30b82b25b1
kernel: run cargo fmt
...
Signed-off-by: Sean Cross <sean@xobs.io>
2021-05-19 14:12:01 +08:00
Sean Cross
b13b458b11
log-server: validate operation with libstd
...
This makes minor changes to the panic behavior when operating with a
libstd client.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-05-19 14:12:01 +08:00
Sean Cross
e0f4e0c47f
emulation: fix missing interrupts in peripherals
...
Now that we wire up the irq line, ensure the peripherals have actual
interrupts.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-05-19 14:12:01 +08:00
Sean Cross
74abf35a08
svd2repl: add program to generate a repl file
...
Signed-off-by: Sean Cross <sean@xobs.io>
2021-05-19 14:12:01 +08:00
bunnie
b06e8d2a81
fix issue with datetime on hosted mode on windows
...
just monkey-patch over the call in hosted mode...
2021-05-16 02:26:24 +08:00