Sean Cross
13204d1714
Merge branch 'master' into debugger
...
Signed-off-by: Sean Cross <sean@xobs.io>
2021-06-18 10:56:30 +08:00
bunnie
62c9737bbc
tenuous addition of a menu object
...
things don't crash, but...haven't really validated if they work, either!
2021-06-18 04:10:41 +08:00
bunnie
3664ff6718
clean up keyboard event handling so the GAM is the gateway server
...
this allows the GAM to handle authentication for listening requests.
2021-06-17 01:12:25 +08:00
bunnie
799bae0386
Merge remote-tracking branch 'origin/master' into ux-refactor
2021-06-16 18:38:50 +08:00
Sean Cross
00e9ead818
xous: definitions: dispose of Vec on hosted
...
When running on Hosted mode, reconstitute the Vec and dispose of it
rather than freeing the memory by passing it back to the kernel.
This is because the data was previously allocated by way of a vec, and
only a reconstituted vec knows how to properly dispose of the data.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-06-16 18:35:18 +08:00
Sean Cross
486d993c4c
xous: hosted: don't over-allocate memory messages
...
Call `shrink_to_fit()` on the array that contains memory messages. This
is beacuse we throw away the `capacity` field, and we want to make sure
we can reconstitute the vector at a later stage.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-06-16 18:35:17 +08:00
bunnie
96ca0eb8a1
Merge remote-tracking branch 'origin/master' into ux-refactor
2021-06-16 17:56:44 +08:00
Sean Cross
180c99aa8d
kernel: services: free servers on process termination
...
When a process is terminated, we disconnect it from all other processes.
We also need to free the slot in the server table.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-06-16 17:55:23 +08:00
Sean Cross
76b16579b0
kernel: syscall: remove warning in hosted mode
...
This was a function whose only purpose is useful in baremetal mode.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-06-16 17:54:55 +08:00
bunnie
4b1495a8ef
change cargo xtask run to something that fails
2021-06-16 17:51:02 +08:00
bunnie
03bcf18348
clean up enum-based dispatch for Layouts, pulling in enum_dispatch crate.
2021-06-16 17:41:47 +08:00
bunnie
356b07dacc
works on "real hardware" but some issues with hosted mode
2021-06-16 17:03:28 +08:00
Sean Cross
62623f995c
Merge branch 'master' of github.com:betrusted-io/xous-core
2021-06-16 16:54:06 +08:00
Sean Cross
fb839f3217
wip
...
Signed-off-by: Sean Cross <sean@xobs.io>
2021-06-16 16:53:40 +08:00
bunnie
5301f4af20
major refactor of the Ux -- can create, redirect I/O contexts
...
getting ready for Precursor to do more than just one thing.
2021-06-16 04:50:26 +08:00
bunnie
13a8cf7417
it helps to save the file before committing it
2021-06-15 17:46:10 +08:00
bunnie
8cd84d3be0
Merge branch 'bunnie-dev' into ux-refactor
...
incorporates the upstreamed xous-names connection count patch
2021-06-15 17:45:07 +08:00
bunnie
eee9f4e765
refactor xous-names to permit only a fixed number of connections
...
this prevents less trusted processes from connecting to servers
after the kernel initializations are done.
this works so long as we don't have disconnects from the kernel
servers. In order to support disconnects we will also need a
way to re-enumerate the SID to guarantee that we don't have a re-use
problem. But for now, the kernel is not designed with any practical
disconnect mechanism; there is no code that calls the Quit mechanism
on any server.
2021-06-15 17:41:14 +08:00
bunnie
4058b56aae
intermediate checkin of UX refactor
2021-06-15 12:50:29 +08:00
bunnie
7e141aba91
commit some API changes before making even more API changes
...
yo dawg i herd u liek API changes so I made API changes to ur API changes
2021-06-14 02:51:41 +08:00
bunnie
0db9ad9e6f
add status bar extension to inform of security states
...
- inverted text indicates a trusted message. policy is enforced in the GAM.
- we don't have a way to lock the USB port yet; but at least now it's communicated.
2021-06-13 04:40:50 +08:00
bunnie
d5c30fae00
tighten up the CPU halt periods to just around the USB burst reads
2021-06-12 15:13:35 +08:00
bunnie
943c07e38b
improve richness of error feedback from trng
2021-06-12 15:12:44 +08:00
bunnie
75f15df723
relax polling of target ready in trng test script
2021-06-12 04:26:30 +08:00
bunnie
c1734334fb
add retries around all functions
2021-06-12 03:41:45 +08:00
bunnie
406aa9405d
put the trng tester host-side helpe script inside the tools directory
2021-06-12 01:50:17 +08:00
bunnie
ad72c0ee7d
update trng test ram locations
...
we're starting to fill up enough memory that we have to relocate
these buffers
2021-06-12 01:49:56 +08:00
bunnie
79e30d6180
need to migrate the fpga image, too
2021-06-11 16:55:59 +08:00
bunnie
adde48bc2d
update buildpush script to comply to latest locations for prebuild artefacts
2021-06-11 16:54:19 +08:00
bunnie
77cd652a0e
minor bugs/typos in urandomtest path
2021-06-11 16:45:53 +08:00
bunnie
14f8685168
update xtask to invoke urandomtest
2021-06-11 16:33:45 +08:00
bunnie
a70b858812
convert to using the urandom interface
2021-06-11 16:29:25 +08:00
bunnie
abbd1574e5
add trng test and management commands
2021-06-08 21:29:23 +08:00
bunnie
2174ab7677
upgrade TRNG with health tests and reporting facilities
2021-06-08 01:22:07 +08:00
Sean Cross
651844ba20
Merge remote-tracking branch 'origin/master' into debugger
2021-06-06 19:21:18 +08:00
Sean Cross
664bd5b26a
kernel: use git for feature/state-machine-recv-packet
...
Signed-off-by: Sean Cross <sean@xobs.io>
2021-06-06 11:49:37 +08:00
Sean Cross
3becfc03c5
kernel: debug: store only a single object in GDB_STATE
...
This keeps a single object in the global singleton.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-06-06 11:46:00 +08:00
Sean Cross
29c36c3b0f
debug: get kernel building
...
Signed-off-by: Sean Cross <sean@xobs.io>
2021-06-06 11:39:41 +08:00
bunnie
ff5af4d66e
update precursors to incorporate the correct git rev
2021-06-04 02:33:17 +08:00
bunnie
8b78a45b40
Merge branch 'bunnie-dev' of github.com:betrusted-io/xous-core into bunnie-dev
2021-06-04 02:33:04 +08:00
bunnie
b64d610d69
re-org the vex code a bit so it's not as repetative
2021-06-04 02:16:19 +08:00
bunnie
5a153d8fa9
add AES256 vex instructions support
2021-06-04 02:02:44 +08:00
bunnie
b1d027bc52
adding AES native instruction support
2021-06-04 00:49:34 +08:00
bunnie
7fa06866dd
remove inappropriate readme
2021-06-03 14:14:25 +08:00
bunnie
d14d987f44
Merge remote-tracking branch 'origin/aes' into bunnie-dev
2021-06-02 14:49:42 +08:00
bunnie
bbfe0fb605
Merge remote-tracking branch 'betrusted/aes' into bunnie-dev
2021-06-02 14:49:11 +08:00
Sean Cross
f69bbb2085
aes-test: add const versions of some functions
...
These may compile to faster code, but that hasn't been determined.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-06-02 14:36:07 +08:00
Sean Cross
c365fad962
services: start removing some C array -isms
...
Signed-off-by: Sean Cross <sean@xobs.io>
2021-06-02 14:28:20 +08:00
Sean Cross
ee36638b5e
aes-test: rename get_u32_* to get_u32_[bl]e
...
These functions are better described using this nomenclature.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-06-02 13:57:19 +08:00
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