bunnie
e7bbf209d0
add back-link to 0.8 for API docs
2021-08-20 01:28:04 +08:00
bunnie
2a37f616d3
release 0.9 notes
2021-08-20 01:25:23 +08:00
bunnie
693ec91f0e
finalize formatting run
2021-08-20 00:26:16 +08:00
bunnie
74531517dd
move more crates to standardized formatting
2021-08-20 00:24:16 +08:00
bunnie
d801749e18
move more crates to standardized formatting
2021-08-20 00:19:16 +08:00
bunnie
3f679bd1e9
alphebetize the rustfmt list
2021-08-20 00:06:17 +08:00
bunnie
340048aac9
move more crates into stardized formatting
2021-08-20 00:04:46 +08:00
bunnie
fd4e047d62
move trng into the standardized formatting set with some exceptions
2021-08-20 00:00:15 +08:00
bunnie
6f5be1e4bb
aes-tests into standard formatting
2021-08-19 23:52:54 +08:00
bunnie
7f3d2e3ce3
move xous-names into standard formatting
2021-08-19 23:51:20 +08:00
bunnie
323b2ed261
move more crates into standard formatting
2021-08-19 23:48:53 +08:00
bunnie
c0ce66ee51
fix permissions. windows is sort of stupid and makes everything +x
2021-08-19 23:34:29 +08:00
bunnie
2a2c75f420
add a rustfmt.toml and run rust fmt on the project
...
notably directories written by bunnie are excluded.
2021-08-19 23:33:23 +08:00
bunnie
49c94f63d4
Merge branch 'main' into bunnie-dev
2021-08-19 13:41:55 +08:00
Sean Cross
1e2f31a753
Cargo: add lockfile settings for xtask
...
xtask now includes libcurl and unzip in order to be able to extract the
toolchain.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-08-19 11:58:55 +08:00
Sean Cross
3c917d9be4
xtask: offer to download the toolchain
...
If the toolchain does not exist, offer to download it for the user.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-08-19 11:58:55 +08:00
bunnie
c44547336b
clean up xtask run warnings
2021-08-19 04:49:23 +08:00
bunnie
c3fc3ff23f
add bbram provisioning sequence
2021-08-19 04:22:28 +08:00
Sean Cross
05801f3f06
xtask: add simple check for toolchain
...
This adds a simple check for the proper Rust toolchain. A more advance
test will advise on toolchain installation.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-08-18 18:30:35 +08:00
Sean Cross
66a68f1757
emulation: use riscv32imac-unknown-xous-elf loader
...
Use the new target for the loader.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-08-18 18:23:09 +08:00
Sean Cross
e96d356e15
xtask: build kernel using riscv32imac-unknown-xous-elf
...
Signed-off-by: Sean Cross <sean@xobs.io>
2021-08-18 18:22:50 +08:00
Sean Cross
83f88f6fde
xous: hosted: improve performance by removing a copy
...
Remove one copy step when receiving packets. This should improve
performance of Hosted mode by around 1.5x.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-08-18 18:22:07 +08:00
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
2c6abd627d
modularize rootkeys implementation slightly
2021-08-18 00:09:01 +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