bunnie
d4e1de7cf9
add more details of callback including dropping
2021-04-02 19:01:01 +08:00
bunnie
39153f6fba
cleanup warnings
2021-04-02 18:07:39 +08:00
bunnie
2cb519b8ee
cleanup logging
2021-04-02 17:58:20 +08:00
bunnie
c6645c6626
add comment to remind myself on how callbacks should work
2021-04-02 17:58:03 +08:00
bunnie
906f8779a8
cleanup details
2021-04-02 17:57:33 +08:00
bunnie
da90d2777d
add an example that tries to document the 0.8 API
2021-04-02 17:56:46 +08:00
Sean Cross
461d6f23ee
syscall: add wrapper functions for destroy_server and disconnect
...
Signed-off-by: Sean Cross <sean@xobs.io>
2021-04-02 17:33:36 +08:00
Sean Cross
0230ccb252
xous: syscall: add definitions for Disconnect and DestroyServer
...
Signed-off-by: Sean Cross <sean@xobs.io>
2021-04-02 17:30:32 +08:00
bunnie
d6fd42b593
COM refactor of callbacks
2021-04-02 16:40:17 +08:00
bunnie
190ca6a29d
more feature notes
2021-04-02 16:14:31 +08:00
bunnie
5961da5e8f
add more notes
2021-04-02 16:09:12 +08:00
bunnie
ad6a5dbf99
add notes about the 0.8 release
2021-04-02 15:58:53 +08:00
bunnie
da255cc1ab
use macro expansion for argument extraction of scalars
2021-04-02 15:38:38 +08:00
bunnie
e3733fa64c
refactor callback methodology to match 0.8 conventions
2021-04-02 15:38:15 +08:00
bunnie
0e936eaee3
add a macro to help reduce the burden of unpacking messages
...
The syntax to pattern-match a message is a pretty heavy cognitive
burden. Try to ease that by introducing a macro.
The main coin-toss here is whether to include the "what you do
with the message" expression within the macro, or to allow it to
be a block that trails it.
The main benefit of including the body inside the macro is that
we can append an "else" clause that spits out an error message
in case the template didn't match. The drawback is the awkwardness
of putting curly braces inside the parens of the macro expansion.
I think Rust coders are probably more OK with that awkwardness,
even though I find it visually unappealing; and the benefit is that
scalars sent to opcodes expecting blockingscalars (and vice versa)
don't go to a "black hole" -- you'll get an error message.
This error message will probably save someone an hour of debugging
someday, so we'll go with the awkwardness.
2021-04-02 15:34:39 +08:00
bunnie
d21c0fa3e7
refactor of COM
...
this was much harder than I liked.
2021-04-02 05:43:47 +08:00
bunnie
5a6ce66d7e
clean up log messages now that we can identify the logging source
2021-04-02 03:10:13 +08:00
bunnie
68b9addd45
redo ticktimer/trng to use the new convenience functions
2021-04-02 02:45:00 +08:00
bunnie
3c34517632
add a convenience method for creating messages
...
reduces the cognitive load of writing library functions
2021-04-02 02:44:24 +08:00
bunnie
fe2a464dd2
cleanup warnings in trng server
2021-04-02 01:56:22 +08:00
bunnie
7210f100f4
upgrade log server to pass rich message types
2021-04-02 01:54:17 +08:00
bunnie
85fdb7453d
remove unused code
2021-04-01 17:24:13 +08:00
bunnie
a3adf797b0
refactor TRNG server to new API
2021-04-01 17:20:36 +08:00
bunnie
2407f17267
fix typos
2021-04-01 17:20:28 +08:00
bunnie
aab0bf459c
update API to more compliant names
2021-04-01 16:43:22 +08:00
bunnie
dc2519c5ef
trying out new API names
2021-04-01 03:47:10 +08:00
bunnie
470b5c6440
finalize API refactor for xous-names
2021-03-30 02:13:23 +08:00
bunnie
23ae292e3d
found the stupid bug
2021-03-29 05:20:21 +08:00
bunnie
c6371e86e7
fix other minor errors
2021-03-29 04:44:03 +08:00
bunnie
f35d478cf0
attempt to refactor xous_names
2021-03-29 04:35:11 +08:00
bunnie
88d66f4fd2
partial refactor but need to switch branches
2021-03-28 19:36:55 +08:00
bunnie
e889765caf
refactor the Ticktimer API.
2021-03-28 18:14:41 +08:00
Sean Cross
45239c61ef
rkyv-test-server: use xous-ipc buffer
...
Signed-off-by: Sean Cross <sean@xobs.io>
2021-03-26 20:25:02 +08:00
Sean Cross
fdce58d06e
ipc: convert project to use xous-ipc
...
This rewrites the entire project so that most runnable projects now use
`xous-ipc` instead of `xous::String` where possible.
This also removes `rkyv` from the list of dependencies in `xous-rs`.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-03-26 20:22:33 +08:00
Sean Cross
7bbcd951fe
xous-ipc: add an initial implementation
...
This adds a first draft of `xous-ipc`, which specializes the IPC
features of Xous.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-03-26 20:22:06 +08:00
Sean Cross
8c947377d7
Merge branch 'master' of github.com:betrusted-io/xous-core
2021-03-26 17:17:41 +08:00
Sean Cross
fa23a7fa21
xtask: build renode-test with rkyv-test-*
...
Signed-off-by: Sean Cross <sean@xobs.io>
2021-03-26 17:17:20 +08:00
Sean Cross
f6c2ee4410
rkyv-test-client: use new log_message_send()
...
Signed-off-by: Sean Cross <sean@xobs.io>
2021-03-26 17:17:03 +08:00
Sean Cross
8760de0406
rkyv-test-server: add log_message_send to test Send messages
...
This uncovered a bug in the kernel where Send messages didn't work.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-03-26 17:16:21 +08:00
Sean Cross
5ae39de7da
kernel: riscv: run rustfmt on mem.rs
...
Signed-off-by: Sean Cross <sean@xobs.io>
2021-03-26 17:14:26 +08:00
Sean Cross
16ea102e94
xous: string: allow any stringlike thing to be used
...
Anything that can be turned into a string can now be used in
`from_str()`.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-03-26 17:14:26 +08:00
Sean Cross
af5598d2dc
kernel: move memory owner when a Move occurs
...
When moving memory between processes, update the owner of that page to
match the new PID. Otherwise, memory can never be released.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-03-26 17:14:26 +08:00
bunnie
92656724f5
add minimal image as a build option
2021-03-26 15:53:38 +08:00
bunnie
850cd809b1
Merge branch 'master' of https://github.com/betrusted-io/xous-core
2021-03-26 15:37:09 +08:00
Sean Cross
f58f82a40d
rkyv-test-server: support multiple callbacks for one client
...
There doesn't seem to be a compelling reason to limit clients to just
one callback.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-03-26 12:42:35 +08:00
Sean Cross
c1fe20c06b
services: allow for multiple callbacks
...
This means we can have multiple clients requesting a callback.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-03-26 12:41:15 +08:00
Sean Cross
561a0c3e27
rkyv-test-client: make doubling string dynamic
...
This tests for emoji as well as making sure it's working as intended.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-03-26 12:40:47 +08:00
Sean Cross
22b50d080b
rkyv-test-client: dynamically generate log message string
...
By dynamically generating the log message string, we ensure dynamic
buffer adjustments are accepted.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-03-26 12:33:30 +08:00
Sean Cross
e27db818ef
rkyv-test-server: accept any string-like arguments
...
As long as we can turn an argument into a string, that's good enough for
us.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-03-26 12:32:42 +08:00
Sean Cross
32ebee0b8f
xous: String: implement AsRef<str>
...
This allows xous Strings to be used in functions that expect to be able
to stringify arguments.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-03-26 12:31:59 +08:00