Sean Cross
6e57fbe29b
kernel: riscv: make sure to flush mmu
...
THe MMU flushing logic got disabled due to an experiment. Re-enable it
to ensure pages are consistent when shifting them across boundaries.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-05-19 20:55:45 +08:00
Sean Cross
efe5a8b9e8
xous: tag v0.8.1
...
This adds the `stringbuffer` object.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-05-19 14:27:58 +08:00
Sean Cross
51b4a2db82
emulation: check in repl file with warning header
...
Signed-off-by: Sean Cross <sean@xobs.io>
2021-05-19 14:27:42 +08:00
Sean Cross
3575a00f25
xtask: regenerate repl file as part of renode-image
...
Use `svd2repl` to generate the Renode platform file.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-05-19 14:26:18 +08:00
Sean Cross
659f5b7f68
svd2repl: print auto-generated warning in header
...
Print a warning indicating that the platform file is auto-generated.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-05-19 14:25:50 +08:00
Sean Cross
c516919479
xous: run cargo fmt
...
Signed-off-by: Sean Cross <sean@xobs.io>
2021-05-19 14:20:47 +08:00
Sean Cross
f7ae13da44
tools: run cargo fmt on pnam
...
Signed-off-by: Sean Cross <sean@xobs.io>
2021-05-19 14:20:22 +08:00
Sean Cross
d15127fef6
kernel: run cargo fmt
...
Signed-off-by: Sean Cross <sean@xobs.io>
2021-05-19 14:18:46 +08:00
Sean Cross
47bf453325
kernel: riscv: use raw pointers for mmu mapping
...
This avoids using uninitialized arrays to manage the pagetables, and
instead uses raw pointers. This should avoid using potentially
uninitialized data.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-05-19 14:17:53 +08:00
Sean Cross
25f976dbb6
kernel: claim uart irq before we enable irqs
...
In order to prevent a race at the start, claim the IRQ before we enable
the IRQ.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-05-19 14:17:07 +08:00
Sean Cross
a1b16a74cb
xous: definitions: add default constructors for Message
...
Enable creating new_lend() and new_scalar() messages.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-05-19 14:14:21 +08:00
Sean Cross
7fe10b6463
xous: stringbuffer: fix build in libstd
...
When building as part of libstd, we need to manually specify flags.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-05-19 14:13:38 +08:00
Sean Cross
30b82b25b1
kernel: run cargo fmt
...
Signed-off-by: Sean Cross <sean@xobs.io>
2021-05-19 14:12:01 +08:00
Sean Cross
b13b458b11
log-server: validate operation with libstd
...
This makes minor changes to the panic behavior when operating with a
libstd client.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-05-19 14:12:01 +08:00
Sean Cross
e0f4e0c47f
emulation: fix missing interrupts in peripherals
...
Now that we wire up the irq line, ensure the peripherals have actual
interrupts.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-05-19 14:12:01 +08:00
Sean Cross
74abf35a08
svd2repl: add program to generate a repl file
...
Signed-off-by: Sean Cross <sean@xobs.io>
2021-05-19 14:12:01 +08:00
bunnie
a8e68bcebe
fix file permissions
2021-05-19 00:39:47 +08:00
bunnie
7d9e84c456
initial frameworks around sha512 acceleration integration
2021-05-19 00:39:03 +08:00
bunnie
3f12b0a69b
add a gyro test command to shellchat
2021-05-16 16:52:27 +08:00
bunnie
5d4e716e1b
add status thread mechanism to check charger state
2021-05-16 16:30:58 +08:00
bunnie
87b6d9b6d7
add backlight commands
2021-05-16 04:29:12 +08:00
bunnie
5328e09a5b
Merge branch 'bunnie-dev' of github.com:betrusted-io/xous-core into bunnie-dev
2021-05-16 03:06:54 +08:00
bunnie
7fb7402fe0
clean up some trailing whitespace
2021-05-16 03:06:11 +08:00
bunnie
d7b64972e9
Merge remote-tracking branch 'betrusted/master' into bunnie-dev
2021-05-16 02:28:02 +08:00
bunnie
b06e8d2a81
fix issue with datetime on hosted mode on windows
...
just monkey-patch over the call in hosted mode...
2021-05-16 02:26:24 +08:00
bunnie
b8a7605ba5
add a scaffolding to help automate windows-based build and update
2021-05-16 01:24:18 +08:00
bunnie
4d0de65f49
fix benchmark package issue
2021-05-16 01:23:45 +08:00
bunnie
b36865a893
add some delay on hosted mode for failed name requests
...
helps make startup a bit more orderly on multi-core systems
2021-05-16 01:22:25 +08:00
bunnie
1ba2d004f3
Merge remote-tracking branch 'betrusted/master' into bunnie-dev
2021-05-12 23:34:13 +08:00
Sean Cross
04f1d11c69
emulation: fix interrupt offset for keyboard
...
This fixes the keyboard interrupt offset to be at 11, rather than 10.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-05-12 21:26:18 +08:00
Sean Cross
fb677f32da
cargo: commit new lockfile
...
Signed-off-by: Sean Cross <sean@xobs.io>
2021-05-12 21:22:15 +08:00
Sean Cross
a8e9492560
log-server: implement opcodes and stdout
...
This allows the log server to support various opcodes, and gives us
stdout as a suitable command.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-05-12 21:22:15 +08:00
Sean Cross
04055c1bf5
xous: add StringBuffer
...
This is a simple lendable StringBuffer variant of String that is
suitable for sending across process boundaries.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-05-12 21:22:15 +08:00
Sean Cross
b74396cfe7
syscall: add return_memory_offset_valid()
...
This sets the `valid` field in addition to the `offset` field when
returning a MemoryMessage.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-05-12 21:22:15 +08:00
Sean Cross
32d740aa15
xous: run cargo fmt on definitions
...
Signed-off-by: Sean Cross <sean@xobs.io>
2021-05-12 21:22:15 +08:00
bunnie
69576695bf
give a little more time for the suspend
...
right now some graphics ops aren't completing.
2021-05-11 16:51:52 +08:00
bunnie
6bcae7bb99
Merge pull request #68 from betrusted-io/bunnie-dev
...
Bunnie dev
2021-05-11 15:08:53 +08:00
bunnie
77106b8919
Merge branch 'master' of github.com:betrusted-io/xous-core into bunnie-dev
2021-05-11 15:03:59 +08:00
bunnie
57e73c788f
Merge pull request #67 from andrewtron3000/master
...
#41 : Stop iterator when y exceeds one pixel beyond quadrant bounds.
2021-05-11 15:01:35 +08:00
bunnie
74d8e42c7f
Merge commit 'a68b24ab9c19f5f0b518f67ad1d7c11528d59b57' into bunnie-dev
2021-05-11 14:46:34 +08:00
Sean Cross
9a9cd25414
kernel: debug: add help screen to debug output
...
Signed-off-by: Sean Cross <sean@xobs.io>
2021-05-10 19:37:30 +08:00
Sean Cross
1b7ee904b2
kernel: print running total of memory usage size
...
Print the total of all processes in the system.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-05-10 15:09:46 +08:00
Sean Cross
7087fbe823
Cargo: add hooks to reduce binary size
...
These can be turned on if we want to reduce the size of our binaries.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-05-10 15:09:24 +08:00
Sean Cross
ff46015127
loader: increase stack size to main process
...
The graphics server has been observed to explode stack. This increases
the start size of the stack to prevent this from happening.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-05-10 15:08:46 +08:00
Sean Cross
5bca939c37
kernel: mem: fix build on hosted mode
...
Signed-off-by: Sean Cross <sean@xobs.io>
2021-05-10 14:42:53 +08:00
Sean Cross
e43f333faa
loader: don't map the stack into the kernel
...
This prevents the stack from getting claimed by the kernel, or handed
out to another process.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-05-10 14:37:33 +08:00
Sean Cross
0962453812
xous: definitions: make SID a [u32; 4]
...
This has a well-defined C representation, and is more portable than the
tuple format.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-05-10 14:37:33 +08:00
Sean Cross
49904988c3
kernel: debug: add simple uart interface
...
Wire up the interrupt handler to allow printing various debug
information.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-05-10 14:37:33 +08:00
Sean Cross
1b85d8a4de
kernel: format syscalls as hex
...
This improves readability, particuarly when addresses are involved.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-05-10 14:37:33 +08:00
Sean Cross
040759af25
kernel: services: add process_name(pid)
...
Add a function to determine the name of a process.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-05-10 14:37:33 +08:00