Commit graph

2870 commits

Author SHA1 Message Date
bunnie
ce9a71b958 Merge branch 'main' of github.com:betrusted-io/xous-core into main 2022-04-07 04:49:43 +08:00
bunnie
6ef0072a69 Merge branch 'bunnie-dev' into main 2022-04-07 04:49:29 +08:00
bunnie
c97a00ed1f refactor validator to not create a new single-use server 2022-04-07 04:38:38 +08:00
bunnie
f720f3175c refactor main loop to use deferred responses
I think things could be compactified even further, but this is a
first-step "merge the threads and break as few things as possible"
pass. Would like to get @gsora's multi-line boxes merged into this
new system before doing even more optimization.
2022-04-07 04:04:37 +08:00
bunnie
360e50a8bb refactor locking to use deferred responses 2022-04-07 02:19:37 +08:00
bunnie
1261d73451 remove execution gate server and use deferred callback idiom instead
reduces one connection on all PIDs that require suspend/resume
callbacks; lightens kernel by about 16k runtime load
2022-04-07 01:13:49 +08:00
bunnie
c36d0d4111 remove an unnecessary xns registration 2022-04-07 00:20:07 +08:00
bunnie
92c6a93147 eliminate yield loop on blocking mount poller 2022-04-07 00:04:25 +08:00
bunnie
b75df1efb3 annotate rationale on multiple variants of pddb mount calls 2022-04-06 23:46:39 +08:00
bunnie
8ded66cd27
Merge pull request #134 from nworbnhoj/main
Add helpful links regarding Messaging into doco
2022-04-06 23:43:56 +08:00
nworbnhoj
d862e25a55
Correct rkyv link to v0.4.3 in API.md 2022-04-06 21:48:20 +10:00
bunnie
f6131693ab Merge branch 'bunnie-dev' into main 2022-04-06 13:38:55 +08:00
bunnie
1b25f4c11d fix hosted mode 2022-04-06 13:38:44 +08:00
nworbnhoj
5b0ecb6d27
link to rkyv & bincode in API.md 2022-04-06 07:26:40 +10:00
nworbnhoj
cd9a1a90ff
Merge branch 'betrusted-io:main' into main 2022-04-06 06:53:08 +10:00
nworbnhoj
5ac7bd8b23
Link repl readme to wiki Push Events and Listeners 2022-04-06 06:42:01 +10:00
bunnie
ed2a8f5ddb Merge branch 'main' of github.com:betrusted-io/xous-core into main 2022-04-06 04:08:41 +08:00
bunnie
33d8275321 refactor I2C to use deferred message responses instead of busy waits
This is a start on issue #111, where instead of starting a throw-away
server and doing a "yield" loop to emulate blocking behavior, messages
are instead stored so they don't drop, thus keeping a blocking
message blocking.
2022-04-06 03:35:43 +08:00
bunnie
6564f562e1
Merge pull request #133 from proppy/patch-2
README: add note about renode version
2022-04-06 01:52:19 +08:00
Johan Euphrosine
30ff598696
README: add note about renode version 2022-04-06 00:42:46 +09:00
bunnie
b7adbcff52 remove no longer used UDP API stubs 2022-04-05 18:43:16 +08:00
Sean Cross
6d294c97c5 kernel: print connection count on per-process output
Signed-off-by: Sean Cross <sean@xobs.io>
2022-04-05 15:11:47 +08:00
bunnie
5e369555d2 Merge branch 'main' of github.com:betrusted-io/xous-core into main 2022-04-05 13:37:19 +08:00
Sean Cross
ab512c8996 kernel: services: fix recursion warning in Process
The `Process::defualt()` implementation started getting a recursion
warning in 1.60.0.

Signed-off-by: Sean Cross <sean@xobs.io>
2022-04-05 13:32:48 +08:00
bunnie
5b8e53aacb remove "log" feature from NTP crate, trims off some executable size 2022-04-05 13:32:23 +08:00
bunnie
dacc38808e fix blocking message detection clause in two places 2022-04-05 13:31:50 +08:00
Sean Cross
e13bb426e3 xous: additional documentation on server errors
There are multiple reasons why a process might fail to create a new
server. Add notes on why this might be.

Signed-off-by: Sean Cross <sean@xobs.io>
2022-04-05 12:45:03 +08:00
Sean Cross
6f4b58c47d kernel: add process name to server output
Signed-off-by: Sean Cross <sean@xobs.io>
2022-04-05 10:41:22 +08:00
Sean Cross
ce4e40b28a kernel: add s command to print servers
This will print all allocated servers on the system.

Signed-off-by: Sean Cross <sean@xobs.io>
2022-04-05 10:36:00 +08:00
bunnie
532c4a4f1f add NTP to time setting via SNTP library 2022-04-05 04:19:53 +08:00
bunnie
d183009cb6 add an extra release note 2022-04-05 01:12:08 +08:00
bunnie
dbce305f11 Merge branch 'bunnie-dev' into main 2022-04-05 01:11:23 +08:00
bunnie
56498ba0d2 add release notes as we move along 2022-04-05 01:10:59 +08:00
bunnie
cbb1e3f944 fix various bugs related to UDP; prep for transition to libstd-only UDP 2022-04-05 00:39:56 +08:00
bunnie
067c603e03 strip out old UDP libraries, harmonize on just libstd UDP 2022-04-04 23:15:51 +08:00
bunnie
57339dfe2f udp libstd passing inital tests 2022-04-04 22:37:01 +08:00
bunnie
cfcea2e094 shift the status bar a bit more
as uptime goes up, the width gets larger...
2022-04-04 04:54:37 +08:00
bunnie
b5a6c436c2 first draft at some basic libstd UDP mechanics 2022-04-04 04:49:17 +08:00
bunnie
b936414d11 emit a warning if apps don't recognize focus changes, instead of a panic 2022-04-03 17:49:12 +08:00
bunnie
66ca91dd6e
Merge pull request #130 from qbit/cb-test-fix
Pass register_name two args
2022-04-03 13:12:53 +08:00
bunnie
6a6574dfcc
Update README.md 2022-04-03 13:10:56 +08:00
Aaron Bieber
f9ca65be11 Pass register_name two args 2022-04-02 16:07:22 -06:00
bunnie
9dc75071ad split up the main.rs file
it's going to get unwieldy if we stick all of std::net into just main.rs
2022-04-02 17:57:50 +08:00
Sean Cross
9c68eb005a xous: definitions: update doc on Message.(valid|offset)
These fields are advisory, and may be repurposed to other uses.

Signed-off-by: Sean Cross <sean@xobs.io>
2022-04-02 09:10:42 +08:00
bunnie
d026102d41 Limit scope of Foreground/Background messages to just app changes
Don't send FocusState::Foreground / FocusState::Background messages
to Layouts that are non-App type. This allows this to be used more
reliably as a signal of if the background is the running app or not,
rather than if it is merely the drawable canvas.
2022-04-01 22:54:33 +08:00
bunnie
fa10cfc040 minor typo fix 2022-03-31 02:38:08 +08:00
bunnie
ec4515579c stashing a bit of code so i can remember how to conjure a delay in susres 2022-03-31 01:44:48 +08:00
bunnie
8b5ad2657b an aborted attempt at doing a clean-shutdown for hosted mode
This doesn't work because the shutdown call destroys all the servers then terminates
the processes. But, the problem is that the processes are still
running, but servers are disappearing. So what you end up with is a
panic when the first message gets delivered to a server that no longer
exists, and then you end up with the program hanging on that panic
because some servers haven't been destroyed/exited yet and are now
just spinning waiting to be scheduled. so the call works in the tidy
kernel test cases but to get it to work on a full OS you'd need to
have a way to put every server into an eternal blocking state before
making the shutdown call (to prevent new messages from being issued
while servers are going away), which is more work than i'm willing to
put into the problem right now.
2022-03-31 01:10:58 +08:00
bunnie
52f1afa780 commit some improvements to the CI framework 2022-03-31 00:28:49 +08:00
bunnie
ba18f3cbe2 don't try to reset the RTC alarm in hosted mode
there isn't an RTC in hosted mode!
2022-03-30 23:33:00 +08:00