Commit graph

10340 commits

Author SHA1 Message Date
bunnie
795c2a38da remove now-defunct shell server 2021-04-06 23:09:53 +08:00
bunnie
ea43e236ee refactor fcc-agent for v0.8 2021-04-06 23:09:33 +08:00
bunnie
ca349ec1b0 clean up minor bugs and other issues 2021-04-06 22:38:11 +08:00
bunnie
b9162fda3d gettin' there! major modules now mostly working under v0.8 2021-04-06 19:32:35 +08:00
bunnie
0a7ab8294a Merge branch 'xous-ipc-refactor' of github.com:betrusted-io/xous-core into xous-ipc-refactor 2021-04-06 16:56:01 +08:00
Sean Cross
21a8ddd458 kernel: services: don't remap memory on intra-process lends
This brings intra-process lending in-line with intra-process sending,
where memory is not remapped the pointer is simply reused.

We may change this at a later point in order to further enforce the
concept of lent-memory-is-inaccessible, so do not rely in this behavior.

Signed-off-by: Sean Cross <sean@xobs.io>
2021-04-06 09:08:03 +08:00
bunnie
24e9408ce0 fix most of the inter-server bugs
still some issue with the predictions showing a longer length
than expected, but this is progress.
2021-04-06 02:48:55 +08:00
bunnie
d83b7de12d update renode to minimal for test cases 2021-04-06 01:55:52 +08:00
bunnie
8c12dbe2af found a bug. 2021-04-06 01:52:26 +08:00
bunnie
9ba2fb134c refactor most major modules, but Xous now crashes 2021-04-05 23:50:00 +08:00
Sean Cross
03bed02393 xous: make terminate_process divergent
This allows for terminating a process when something goes wrong.

Signed-off-by: Sean Cross <sean@xobs.io>
2021-04-05 18:19:33 +08:00
Sean Cross
4830f3eb2c kernel: server: implement DestroyServer(sid)
This implements a syscall to shut down a server. Servers may not be shut
down if they have outstanding messages that they have seen but not
responded to.

Signed-off-by: Sean Cross <sean@xobs.io>
2021-04-05 18:18:48 +08:00
Sean Cross
49c1eacf8c kernel: remove split queues file
This file shouldn't have been checked in.

Signed-off-by: Sean Cross <sean@xobs.io>
2021-04-05 18:17:09 +08:00
bunnie
4a504943dc part-way through the GAM refactor 2021-04-05 05:47:17 +08:00
bunnie
75a6f779f8 initial refactor of ime-frontend 2021-04-05 03:39:14 +08:00
bunnie
8fed353a83 refactor of the imef interface part 1 2021-04-05 00:30:46 +08:00
bunnie
9cc94d05ec cleanup warnings 2021-04-04 21:25:26 +08:00
bunnie
44899d073e clean up some efforts to fix log trace level 2021-04-04 18:25:53 +08:00
bunnie
9416e9dbe0 turn off trace on keyboard 2021-04-04 18:23:49 +08:00
bunnie
6d4916972b keyboard refactor now working 2021-04-04 18:23:26 +08:00
bunnie
659b050c0e put the borrow in the right place :-/ 2021-04-04 02:17:14 +08:00
bunnie
da7ace04d4 rebuild and prep for testing on hardware 2021-04-04 02:15:46 +08:00
bunnie
8786b6db7b should be borrowing the name server object to make connections 2021-04-04 02:15:29 +08:00
bunnie
bd54b48f8f initial cut of a major refactor of the keyboard server
- debounce is now in hardware (requires latest version of betrusted-soc)
- key events originate from an interrupt context and propagate through
  to the listeners as messages
- attempt to reduce the use of heapless::Vec; there is an awkward
interposer step still between the array methodology and the Vec
methodology

I'm not sure if trying to eliminate the Vec is a good idea,
because...I'm finding that we're just re-implementing Vec, but
much worse.

However, for the purpose of movement of data across
IPC boundaries, it's more robust to use primitive types,
because serializing Vec is not possible without either
forking the heapless crate to derive the rkyv traits; or, we'd
have to do some probably quite dangerous conversion of the Vec
to a raw slice which also doesn't feel nice.
2021-04-04 01:42:30 +08:00
bunnie
aa04241aa4 restrict visibility of Opcode 2021-04-03 00:57:30 +08:00
bunnie
b9ff993845 refactor graphics server 2021-04-03 00:53:30 +08:00
bunnie
dea8cb8388 fix typos and start on the graphics server 2021-04-02 22:57:02 +08:00
bunnie
25dc27f2f7 add drop implementation to servers 2021-04-02 22:01:40 +08:00
Sean Cross
265f99c6ae Merge branch 'xous-ipc-refactor' of github.com:betrusted-io/xous-core into xous-ipc-refactor 2021-04-02 21:40:08 +08:00
bunnie
c972666f41 implement Drop on Com object 2021-04-02 19:01:11 +08:00
bunnie
d4e1de7cf9 add more details of callback including dropping 2021-04-02 19:01:01 +08:00
Sean Cross
85f0adbb2d kernel: implement Disconnect() syscall
Signed-off-by: Sean Cross <sean@xobs.io>
2021-04-02 18:37:09 +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