Age | Commit message (Collapse) | Author |
|
Instead of relying on mmap()'ing the framebuffer and doing shape math
manually, this commit puts libgfx to use.
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
This commit introduces libgfx which is a low-level graphics library
and does not know anything about windows, display architecture, etc.
The job of libgfx is soley to provide an API to draw shapes, graphical objects
and perform operations on them.
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Add dmidump utility that reports information from DMI (aka system
management BIOS).
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Add ctlfs entry for DMI to allow for easy system information from
userspace by reading '/ctl/dmi/*'. This commit implements a ctlfs
node that reports information about the host board.
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Add DMI helper to grab processor version string
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Implements:
- sendmsg()
- recvmsg()
- connect()
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
- Zero new control buffer before usage
- Block if the control message queue is empty
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
This commit adds logic to socket() that creates a temp file that
represents it.
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Keep track of the process that created a socket.
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Update the signature of 'fd_get()', 'fd_alloc()' and 'fd_dup()' to
include a pointer to the process to target. This improves the
flexibility of the file descriptor API.
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
This commit introduces LSR/LSL which are used as bitwise shift
operations.
--
lsr x1, #1 !! x1 >>= 1
lsl x1, #1 !! x1 <<= 1
--
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Ensure that the file descriptor represented by 'socket' is of type
AF_UNIX before performing the rest of recvmsg()
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Introduce initial implementation for out-of-band socket control messages
and an SCM_RIGHTS stub.
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Introduce copyin() and copyout() type functions made for iovec/uio
operation.
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
See https://pubs.opengroup.org/onlinepubs/009695399/basedefs/sys/uio.h.html
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
The machine word size describes how many bytes of data can be processed
at once. Add a per-arch M_WORD_SIZE constant to represent this platform
specific characteristic. This commit also adds an MALIGN() helper macro
to sys/param.h which can be used for optimization purposes in cases
where you want data to be perfectly aligned on a machine word boundary.
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Introduce the following syscalls:
- SYS_socket
- SYS_bind
- SYS_recv
- SYS_send
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Introduce initial support for POSIX sockets. This commit currently
implements the AF_UNIX family for IPC.
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Implement mnemonic for the XOR instruction:
--
xor x4, #1 ! x4 = x4 ^ 1
--
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Implement mnemonic for the OR instruction:
--
or x2, #3 ! x2 = x2 | 3
--
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Implement mnemonic for the AND instruction:
--
and x1, #7 ! x1 = x1 & 7
--
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Allow specification of which process should be targeted for specific
operations.
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
This commit introduces the initial implementation of Virtual System
Resources (VSRs). Virtual system resources enable specific subsystems to
control global state while the VSR acts as a middle man between the
process, and the actual resource itself. This allows the products of
certain operations to be routed to either the global state or a local
(per-process) "shallow copy" whose data and side effects are only
visible through that process. An example of something this would be
useful for is some sort of transparent access control mechanism where
if a process should not modify global system-wide state, it can at least
modify the state for itself.
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Adds compatibility flags for c_iflag as well as improved documentation
for the defines.
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Improve naming consistency
Signed-off-by: Ian Moffett <ian@osmora.org>
|