Sean Cross
bdb8eac9ad
MemoryRange: move to using this struct for memory ranges
...
This is a combination of MemoryAddress and MemorySize. This is
guaranteed to be not null.
Signed-off-by: Sean Cross <sean@xobs.io>
2020-04-01 10:28:36 +08:00
Sean Cross
4be5f4031b
xous: add UnmapMemory syscall
...
Signed-off-by: Sean Cross <sean@xobs.io>
2020-03-31 18:36:53 +08:00
Sean Cross
abce9eb0c1
message::move: implement movable messages
...
This is the first implementation of message passing with moving memory.
Signed-off-by: Sean Cross <sean@xobs.io>
2020-03-31 18:03:19 +08:00
Sean Cross
8c3f931445
messaging: first message passing example
...
THis commit allows us to pass Scalar messages between processes.
Signed-off-by: Sean Cross <sean@xobs.io>
2020-03-30 16:07:58 +08:00
Sean Cross
405a9227cf
xous: add contextid return value
...
Signed-off-by: Sean Cross <sean@xobs.io>
2020-03-27 16:22:51 +08:00
Sean Cross
d8d0c3838a
xous: add context id and context error
...
Signed-off-by: Sean Cross <sean@xobs.io>
2020-03-27 13:32:41 +08:00
Sean Cross
dafec2bb89
kernel: make contexts first-class
...
Due to an initial misunderstanding of how the RISC-V is architected,
contexts were going to be an emergent property of the kernel.
However, after further consideration, contexts must now be baked into
the kernel. Switching between contexts can be handled by the scheduler,
but the kernel must keep track of processor registers.
Keep track of context IDs and ensure they are sane. With this patch,
interrupts work, as does basic context switching.
Signed-off-by: Sean Cross <sean@xobs.io>
2020-03-27 12:30:29 +08:00
Sean Cross
97238861a1
xous: syscall: define the return value for SwitchTo
...
Signed-off-by: Sean Cross <sean@xobs.io>
2020-03-25 14:08:13 +08:00
Sean Cross
a05258654c
xous: rename WaitMessage -> ReceiveMessage
...
It might not wait. The name `ReceiveMessage` better reflects the
operation.
Signed-off-by: Sean Cross <sean@xobs.io>
2020-03-24 15:26:25 +08:00
Sean Cross
537e9da79d
xous: adjust message envelope struct
...
Signed-off-by: Sean Cross <sean@xobs.io>
2020-03-20 17:22:02 +08:00
Sean Cross
646cf9340e
xous: add Connect syscall
...
Signed-off-by: Sean Cross <sean@xobs.io>
2020-03-19 17:26:01 +08:00
Sean Cross
2dd62e50fd
xous: rework definition of message structs
...
Message structs are used to pass memory between processes. Rework how
this struct is laid out so as to better describe this process.
Signed-off-by: Sean Cross <sean@xobs.io>
2020-03-19 08:52:25 +08:00
Sean Cross
19ddb32d9d
xous: add syscalls for connecting to a server
...
This is required because server IDs are 128 bits, but we only have
enough space for 32 bits in the message.
This is fine, because it means we can drop "Connect" permissions to
prevent compromised clients from making new connections.
Signed-off-by: Sean Cross <sean@xobs.io>
2020-03-17 13:00:06 +08:00
Sean Cross
d10bc2e894
syscalls: begin adding message-passing syscalls
...
These are still not connected, however their existence is starting to
solidify the API.
Signed-off-by: Sean Cross <sean@xobs.io>
2020-03-17 10:27:03 +08:00
Sean Cross
1b8f97a5a3
xous-rs: implement create_server call
...
This call isn't properly handled by the kernel, but it's now available
in the standard library.
Signed-off-by: Sean Cross <sean@xobs.io>
2020-03-16 19:03:51 +08:00
Sean Cross
5a1bcf4c21
xous-rs: implement create_server syscall
...
The kernel doesn't have this wired up yet, but the syscall works.
Signed-off-by: Sean Cross <sean@xobs.io>
2020-03-14 15:57:58 +08:00
Sean Cross
9508201db9
xous-rs: add claim_interrupt wrapper
...
Rather than calling the raw function, add a wrapper for programs to use.
Signed-off-by: Sean Cross <sean@xobs.io>
2020-03-14 15:41:44 +08:00
Sean Cross
7a3e038e6b
syscall: add intial CreateServer call
...
Signed-off-by: Sean Cross <sean@xobs.io>
2020-03-13 22:41:25 +08:00
Sean Cross
c2008e5fe8
syscall: implement map_memory wrapper
...
Signed-off-by: Sean Cross <sean@xobs.io>
2020-03-13 20:33:08 +08:00
Sean Cross
f50ec67553
initial commit
...
This pulls together many disparate repositories into one xous-core
repository.
Signed-off-by: Sean Cross <sean@xobs.io>
2020-03-10 12:13:05 +08:00