Sean Cross
7dee05082c
xous: syscall: add function to modify memory ptr
...
Add a function to modify the pointer of a MemoryRange. This is used by
`hosted` mode in order to modify memory pointers when we receive them
from the remote client.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-08-18 18:21:19 +08:00
Sean Cross
f5de6551bc
loader: cargo: load packages that work with xous target
...
Load versions of the dalek crates that support the xous target.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-08-18 18:19:41 +08:00
Sean Cross
c9c02b5d93
loader: initial riscv32imac-unknown-xous compat
...
Initial changes required to get the loader building for the
`riscv32imac-unknown-xous-elf` target.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-08-18 18:18:56 +08:00
Sean Cross
f952d0d9fe
loader: cargo: add support for -xous- target_os
...
Add link commands to the cargo config so that the loader can be built
for the `riscv32imac-unknown-xous-elf` target.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-08-18 18:17:53 +08:00
Sean Cross
184274782c
kernel: config: temporarily remove support for lto
...
LTO is currently broken with Rust 1.54.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-08-18 18:16:13 +08:00
Sean Cross
bb0339652a
kernel: use local copy of riscv crate
...
A local copy of the `riscv` crate is used in order to get support for
the `xous` target_os.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-08-18 18:15:29 +08:00
Sean Cross
19653e9c53
kernel: compatibility with riscv32imac-unknown-xous-elf
...
Signed-off-by: Sean Cross <sean@xobs.io>
2021-08-18 18:14:24 +08:00
Sean Cross
3c10127ed4
imports: riscv: add version with -xous support
...
Add a local version of the `riscv` crate with support for `-xous-` as an
OS. This allows us to build our kernel using
`riscv32imac-unknown-xous-elf` as a target.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-08-18 18:13:06 +08:00
bunnie
498f530165
the base layer of the AES oracle is in place for the rootkeys
2021-08-17 04:15:24 +08:00
bunnie
a1967a2128
make parblock size parametrizeabel (almost)
...
there's a weird bit where GenericArray needs a U-size (U16)
to match the CONST declaration.
2021-08-17 00:53:26 +08:00
bunnie
eff5d3d9e6
Merge remote-tracking branch 'origin/main' into bunnie-dev
2021-08-17 00:02:59 +08:00
bunnie
944a506f7a
aes ops are there but we need to wrap it in a UX...
2021-08-17 00:02:24 +08:00
bunnie
8a82caf2fc
intermediate check-in on rootkeys enclave
2021-08-16 23:35:36 +08:00
Sean Cross
88b63916e4
graphics-server: run rustfmt
...
Signed-off-by: Sean Cross <sean@xobs.io>
2021-08-16 22:52:06 +08:00
Sean Cross
2a77c38a6a
minifb: remove fps limiter
...
The fps limiter ends up blocking the whole system due to how it limits
the framerate.
If we want to put in a proper rate limiter, we should move the Server
into a different thread and keep just the framebuffer on the main
thread.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-08-16 22:51:13 +08:00
Sean Cross
034ab9a04c
xous: test: fix unnecessary mut warning
...
This fixes a warning in test builds where a field was marked as `mut`
that didn't need to be.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-08-16 15:08:04 +08:00
Sean Cross
e44eec2334
kernel: fix remaining warnings on hosted mode
...
This removes all remaining warnings from hosted mode. Tests pass, and
the system continues to run normally.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-08-16 15:07:25 +08:00
Sean Cross
5eaa3a41b1
kernel: services: fix warnings on hosted mode
...
Signed-off-by: Sean Cross <sean@xobs.io>
2021-08-16 15:01:07 +08:00
Sean Cross
90d1c7a4b8
kernel: move arch mods into their own dir
...
Move `hosted.rs` into `hosted/mod.rs` and `riscv.rs` into
`riscv/mod.rs`.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-08-16 14:55:38 +08:00
Sean Cross
80bf296382
xtask: fix clippy warnings
...
Signed-off-by: Sean Cross <sean@xobs.io>
2021-08-16 12:26:28 +08:00
Sean Cross
c59cdfbd51
kernel: rename WouldBlock syscall result
...
This reflects the new naming convention, which is clearer.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-08-16 12:25:39 +08:00
Sean Cross
afdf8531aa
kernel: use resolver v2
...
This is required now to support tests, since tests create processes as
threads.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-08-16 12:25:15 +08:00
Sean Cross
d705d6d14e
xous: handle new syscall naming
...
The syscall function is now exported by the arch, rather than being a
magic name.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-08-16 12:23:59 +08:00
Sean Cross
c15cd45d64
xous: hosted: set the thread ID to 1 at startup
...
Signed-off-by: Sean Cross <sean@xobs.io>
2021-08-16 12:23:33 +08:00
Sean Cross
d126108412
xous: renamed WouldBlock to RetryCall
...
This gives a better idea of what this syscall does.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-08-16 12:22:24 +08:00
Sean Cross
1d0a952331
xous: hosted: redo control flow with condvars
...
This completely redoes the client-side of syscalls such that there is a
lot less lock contention. Processes now properly sleep rather than
spinning, unless they're waiting for a response due to a blocked server,
which rarely happens in practice.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-08-16 12:20:47 +08:00
Sean Cross
23ce9e5bf0
xous: arch: look for feature flag for tests
...
When running tests, `processes-as-threads` gets enabled. Look for this
feature flag to determine if we need to use that architecture.
Note that this change requires `resolver v2` to be enabled.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-08-16 12:19:53 +08:00
Sean Cross
5efe76f490
xous: arch: fix interface for test arch
...
Fix the interface for the `test` arch due to changes with the other
platforms.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-08-16 12:18:15 +08:00
Sean Cross
b17be29195
xous: make processes-as-threads a feature flag
...
The test module uses this feature to avoid having to spawn external
processes. Make this a feature flag since it doesn't make sense for any
other target.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-08-16 12:16:27 +08:00
Sean Cross
ae97ca4e14
xous: move rename native arch to riscv
...
This will enable adding more architectures later.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-08-16 12:16:06 +08:00
Sean Cross
c72ffc3dd4
Merge branch 'main' of github.com:betrusted-io/xous-core
2021-08-16 09:56:31 +08:00
bunnie
ccc577f8d7
clean up the update flow
2021-08-16 02:46:54 +08:00
Sean Cross
0c372263ff
loader: mark sections as +X
...
It is unclear why this is required. More investigation
is needed.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-08-15 21:59:19 +08:00
Sean Cross
4700275b93
loader: handle sections on page boundaries
...
Handle a section that ends exactly at a page boundary.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-08-15 21:54:59 +08:00
Sean Cross
1b315de830
kernel: make init proces stack grown downwards
...
Previously, we were creating a stack beginning at the initial page,
and then growing it upwards. The correct behavior is to begin it at
the top and grow it downwards.
In order to do this, subtract the size of the stack from the initial
pointer.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-08-15 19:26:11 +08:00
Sean Cross
e29dc5a739
kernel: don't allow allocating exception thread
...
This prevents the exception thread from being allocated as a normal
system thread.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-08-15 19:25:29 +08:00
bunnie
353311b987
fix USB update flow
2021-08-15 16:03:18 +08:00
bunnie
a19fc87687
clean up warnings, and fix some hosted mode issues
2021-08-15 00:46:16 +08:00
bunnie
20a6244687
cargo.lock updated after the merge
2021-08-15 00:20:23 +08:00
bunnie
47489dc990
Merge pull request #79 from samblenny/com-wlan
...
Add wlan shellchat command
2021-08-14 23:14:27 +08:00
bunnie
6a7e6a7504
Merge branch 'bunnie-dev' into main
2021-08-14 22:50:38 +08:00
bunnie
870bd5e632
committing a generic soc_csr.bin image -- should unbreak things for other users
2021-08-14 20:04:49 +08:00
bunnie
c88c986aea
clean up key signing routines, finally everything "seems" to work
2021-08-14 19:46:42 +08:00
bunnie
b4ee254001
finally, a semblance of sanity...
2021-08-14 16:24:19 +08:00
Sam Blenny
af25697a6f
Merge remote-tracking branch 'upstream/main' into com-wlan
2021-08-13 23:01:12 +00:00
Sam Blenny
a1bd9c18fd
Update com_rs submodule to get new WLAN_* verbs
...
Signed-off-by: samblenny
2021-08-13 22:41:25 +00:00
Sean Cross
dbbf85255d
xous: split test into its own arch
...
The `test` arch works with TLS and allows for multiple servers and
processes per "process".
This is a special case, and warrants its own arch.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-08-13 09:30:08 +08:00
bunnie
ee4368e747
gateware update code in place
2021-08-13 06:00:21 +08:00
bunnie
f334199ee6
commit host mode debugging
2021-08-12 23:01:34 +08:00
bunnie
063b9e58b6
Update flash.md
2021-08-12 17:03:33 +08:00