bunnie
710abce418
fixup to latest soc.svd register documentation standard
2020-11-22 03:45:44 +08:00
bunnie
8f702a73eb
Merge branch 'master' of github.com:betrusted-io/xous-core
2020-11-22 02:06:42 +08:00
Sean Cross
4f0d53e9a6
xous: fix hosted process response
...
This uses a slightly different approach to looking at a process
response.
Signed-off-by: Sean Cross <sean@xobs.io>
2020-11-11 17:33:08 +08:00
Sean Cross
796c9c5998
services: ticktimer: remove excess hosted printing
...
This was used to try and debug an issue in the ticktimer server, which
ended up being an issue in the kernel.
Signed-off-by: Sean Cross <sean@xobs.io>
2020-11-11 16:23:23 +08:00
Sean Cross
5186594f17
kernel: remove excess debug output from hosted mode
...
Signed-off-by: Sean Cross <sean@xobs.io>
2020-11-11 16:22:29 +08:00
Sean Cross
b8d9d1e1b3
Revert "kernel: hosted: don't send responses twice"
...
This causes problems, and fixes an issue that doesn't actually exist.
Revert it.
This reverts commit fc9f597092 .
2020-11-11 16:18:39 +08:00
Sean Cross
d9272ba21a
ticktimer: use log server
...
Signed-off-by: Sean Cross <sean@xobs.io>
2020-11-11 16:09:34 +08:00
Sean Cross
aa315c534c
ticktimer: implement msleep
...
Signed-off-by: Sean Cross <sean@xobs.io>
2020-11-11 16:09:01 +08:00
Sean Cross
5a66f72938
ticktimer: add opcodes for msleep
...
Signed-off-by: Sean Cross <sean@xobs.io>
2020-11-11 16:08:48 +08:00
Sean Cross
b8f69b4a7f
ticktimer: use correct debug port
...
Signed-off-by: Sean Cross <sean@xobs.io>
2020-11-11 16:07:33 +08:00
Sean Cross
1a0be47d05
shell: add loop number to msleep
...
This allows us to trace the loop number through the syscall.
Signed-off-by: Sean Cross <sean@xobs.io>
2020-11-11 16:06:39 +08:00
Sean Cross
4e6a189e4e
kernel: fix returning scalars in interrupt context
...
This is now allowed.
Signed-off-by: Sean Cross <sean@xobs.io>
2020-11-11 16:06:08 +08:00
Sean Cross
4b83edc43b
kernel: server: replace ctx with tid
...
Threads haven't been called contexts for a very long time.
Signed-off-by: Sean Cross <sean@xobs.io>
2020-11-11 16:04:35 +08:00
Sean Cross
7156ab5e79
kernel: mem: match riscv printf with rest of formatting
...
We don't use `println` anymore, we use `print`.
Signed-off-by: Sean Cross <sean@xobs.io>
2020-11-11 16:03:52 +08:00
Sean Cross
aee42bf264
kernel: print message when idling
...
Signed-off-by: Sean Cross <sean@xobs.io>
2020-11-11 16:03:29 +08:00
Sean Cross
fc9f597092
kernel: hosted: don't send responses twice
...
If we've already sent a response, don't send a second response.
Signed-off-by: Sean Cross <sean@xobs.io>
2020-11-11 12:55:58 +08:00
Sean Cross
b497ad113e
xous: terminate process on panic
...
Signed-off-by: Sean Cross <sean@xobs.io>
2020-11-11 12:52:12 +08:00
Sean Cross
6b1dc7f853
xous: hosted: fix sync error with mis-ordered replies
...
Replies would get mis-ordered, which became bad when data had memory
attached.
Signed-off-by: Sean Cross <sean@xobs.io>
2020-11-11 12:51:41 +08:00
Sean Cross
f6dc227ed2
emulation: add interrupt to betrusted platform
...
Signed-off-by: Sean Cross <sean@xobs.io>
2020-11-11 12:50:55 +08:00
Sean Cross
44a3d40b1c
emulation: sync latest svd file
...
This svd file reflects the latest svd from CI.
Signed-off-by: Sean Cross <sean@xobs.io>
2020-11-11 12:50:27 +08:00
Sean Cross
0ed99d1eba
emulation: memlcd: format cs file
...
Signed-off-by: Sean Cross <sean@xobs.io>
2020-11-11 12:50:07 +08:00
Sean Cross
80419955fb
svd2utra: update example with latest svd
...
Signed-off-by: Sean Cross <sean@xobs.io>
2020-11-11 12:49:42 +08:00
Sean Cross
e3dbf1e9d4
emulation: ticktimer: add msleep support
...
Signed-off-by: Sean Cross <sean@xobs.io>
2020-11-04 13:41:18 +08:00
Sean Cross
d8733a437c
README: rewrite to document xtask
...
The `xtask` command has come a long way, and is the preferred method of
building this repositry. Document the fun ways it can be used.
Signed-off-by: Sean Cross <sean@xobs.io>
2020-11-03 20:41:37 +08:00
Sean Cross
b5692b70eb
Merge pull request #3 from mbrubeck/patch-1
...
Fix typo in README.md
2020-11-02 12:53:27 +08:00
Matt Brubeck
9e349c6af3
Fix typo in README.md
2020-11-01 20:29:32 -08:00
Sean Cross
2698333382
kernel: allow making syscalls from an interrupt
...
This enables calling some syscalls from within an interrupt context.
Signed-off-by: Sean Cross <sean@xobs.io>
2020-11-01 17:59:26 +08:00
Sean Cross
7391b98f4e
log-server: remove excess printing from log string
...
Signed-off-by: Sean Cross <sean@xobs.io>
2020-11-01 16:30:07 +08:00
Sean Cross
c6e12a5ecd
kernel: remove dead code from hosted/irq.rs
...
Signed-off-by: Sean Cross <sean@xobs.io>
2020-11-01 16:29:36 +08:00
Sean Cross
08fb5e0a0b
xous: add send() to String
...
This call can be used to send a string to a Server.
Signed-off-by: Sean Cross <sean@xobs.io>
2020-11-01 16:28:47 +08:00
Sean Cross
7ab2338ff3
kernel: add in_irq parameter to syscall::handle()
...
This parameter will determine whether a syscall is being handled from
within an interrupt context. This is because certain calls cannot be
called from such a context.
Signed-off-by: Sean Cross <sean@xobs.io>
2020-11-01 16:27:39 +08:00
Sean Cross
bb304d412a
xous: add can_call_from_interrupt() to SysCall
...
This function can be used to determine if a particular syscall may be
called from an interrupt context.
Signed-off-by: Sean Cross <sean@xobs.io>
2020-11-01 16:26:33 +08:00
Sean Cross
719549a2cb
xous: rename ReturnToParentI -> ReturnToParent
...
This syscall isn't the only one that can be called from an interrupt
context.
Signed-off-by: Sean Cross <sean@xobs.io>
2020-11-01 16:26:19 +08:00
Sean Cross
8ac141af1b
cargo: commit latest lockfile
...
Signed-off-by: Sean Cross <sean@xobs.io>
2020-10-30 21:28:33 +08:00
Sean Cross
4f2be0c0e1
shell: use log-server for message logging
...
This paves the way for no longer needing our own UART for this process.
Signed-off-by: Sean Cross <sean@xobs.io>
2020-10-30 21:27:35 +08:00
Sean Cross
1ffc440565
graphics-server: use log-server for all message printing
...
Signed-off-by: Sean Cross <sean@xobs.io>
2020-10-30 21:27:06 +08:00
Sean Cross
e18219b078
log-server: add first draft of logging server
...
This server implements `log`, and comes with a `lib` that allows for
setting up logging.
Signed-off-by: Sean Cross <sean@xobs.io>
2020-10-30 21:26:19 +08:00
Sean Cross
4650e865fb
xous: String: add from_message() as an initializer
...
Allow creating a `String` from a `MemoryMessage`.
Signed-off-by: Sean Cross <sean@xobs.io>
2020-10-30 20:51:29 +08:00
Sean Cross
d76832dada
kernel: services: return ServerNotFound when server isn't found
...
This is more intuitive than `OutOfMemory`.
Signed-off-by: Sean Cross <sean@xobs.io>
2020-10-30 20:43:59 +08:00
Sean Cross
2244a78f16
kernel: allow syscall processing when printing is disabled
...
Due to a missing comment, syscalls wouldn't work at all when printing
was disabled. Fix this.
Signed-off-by: Sean Cross <sean@xobs.io>
2020-10-30 20:43:22 +08:00
Sean Cross
6e312ffc8a
kernel: process: only print process inits when printing is enabled
...
Signed-off-by: Sean Cross <sean@xobs.io>
2020-10-30 20:42:57 +08:00
Sean Cross
e5003eee6d
kernel: only print RISC-V exceptions when printing is enabled
...
Signed-off-by: Sean Cross <sean@xobs.io>
2020-10-30 20:42:25 +08:00
Sean Cross
f46f7c6e81
shell: use new String struct from xous
...
Signed-off-by: Sean Cross <sean@xobs.io>
2020-10-30 11:19:43 +08:00
Sean Cross
9192775e5e
graphics-server: use String for String opcode
...
Signed-off-by: Sean Cross <sean@xobs.io>
2020-10-30 11:19:17 +08:00
Sean Cross
f149c086ef
xous: add String
...
This is a basic String that can be passed as a Message.
Signed-off-by: Sean Cross <sean@xobs.io>
2020-10-30 11:18:48 +08:00
Sean Cross
4df3296d99
cargo: commit lockfile
...
Signed-off-by: Sean Cross <sean@xobs.io>
2020-10-30 10:31:37 +08:00
Sean Cross
c33794c859
shell: use new graphics subsystem
...
Signed-off-by: Sean Cross <sean@xobs.io>
2020-10-30 10:30:34 +08:00
Sean Cross
7fc8dafc39
shell: add StringBuffer struct
...
Add a StringBuffer struct that can be used to create string messages.
This will eventually be promoted to Xous.
Signed-off-by: Sean Cross <sean@xobs.io>
2020-10-30 10:29:58 +08:00
Sean Cross
2d4a2bf871
ticktimer: use millis instead of nanos on hosted
...
The `elapsed_ms()` function should probably return milliseconds rather
than nanoseconds. Time marches on.
Signed-off-by: Sean Cross <sean@xobs.io>
2020-10-30 10:29:12 +08:00
Sean Cross
c7164c461d
log-server: unify print messages for log_string
...
Signed-off-by: Sean Cross <sean@xobs.io>
2020-10-30 10:28:01 +08:00