summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
14 hourslibgfx: draw: Add gfx_get_pix() functionIan Moffett
Introduce gfx routine to grab the RGB value of a specific pixel at a specific location on the screen. Signed-off-by: Ian Moffett <ian@osmora.org>
15 hoursliboda: Add window cacheIan Moffett
Implement a window cache to avoid the overhead of back-to-back calls for malloc() and free. This commit additionally introduces a new oda_shutdown() function for cleaning up the library. Signed-off-by: Ian Moffett <ian@osmora.org>
23 hoursdocs: liboda: Add input management sectionIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
23 hoursliboda: input: Remove unused definesIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
24 hoursliboda: input: Add constant 'ODA_KEY_*' definesIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
24 hoursliboda: Add initial input subsystemIan Moffett
This commit introduces the initial input subsystem and adds basic keyboard handling via a callback defined by the compositor. Signed-off-by: Ian Moffett <ian@osmora.org>
36 hoursdocs: liboda: Fix markdown codeblock highlightIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
36 hourslib: liboda: Add oda_plotwin() window plotterIan Moffett
Introduce the oda_plotwin() function to allow one to plot a pixel onto a window relative to the starting X/Y position of it. Plotting to (0,0) draws to the top left corner of the window. Signed-off-by: Ian Moffett <ian@osmora.org>
37 hourslibgfx: draw: Add gfx_plot_point() pixel plottingIan Moffett
Implement mechanism that allows one to plot pixels on the screen with a specific color at specific x/y coordinates. Example: -- struct gfx_point p = { .x = 150, .y = 200, .color = GFX_GREEN }; /* Draw green point at (150,200) */ gfx_plot_point(&ctx, &p); -- Signed-off-by: Ian Moffett <ian@osmora.org>
37 hourslibgfx: draw: Add gfx_pixel_bounds() helperIan Moffett
Implement helper to check if a point on the screen is within bounds of the screen. Signed-off-by: Ian Moffett <ian@osmora.org>
38 hourslib: libgfx: Move color defines to draw.hIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
38 hourslib: Introduce initial liboda sourcesIan Moffett
Please refer to 'share/docs/lib/liboda.md' for more information on the OSMORA Display Architecture (ODA). Signed-off-by: Ian Moffett <ian@osmora.org>
38 hoursbuild: lib: Remove seperator line in libgfx buildIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
39 hoursdocs: Add initial ODA documentationIan Moffett
Add initial documentation for the OSMORA Display Architecture (ODA) Signed-off-by: Ian Moffett <ian@osmora.org>
42 hourslib: libgfx: Add GFX_DARK and GFX_AQUAIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2 daysdocs: Add more docs information in READMEmainIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2 daysdocs: Fix typo in READMEIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2 daysdocs: ctlfs: Add author headerIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2 daysdocs: Add kernel documentationIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2 dayskernel: ctlfs: Keep comment up to dateIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2 daysdocs: man: Add osh(1)Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2 daysdocs: Update READMEIan Moffett
- Clean up punctation - Add libs section and more programs - Add extra project information Signed-off-by: Ian Moffett <ian@osmora.org>
3 daysproject: Bump version to 2.5Ian Moffett
- [oasm]: Add support for ADD, SUB, DIV, MUL and HLT [0 ... 4] - [oemu: cpu]: Add register dump [5] - [oasm]: Add support for '!' comments [6] - [oasm]: Implement MRO type instructions [7] - [kernel/amd64]: Keep track of online cores [8] - [kernel: accnt]: Report number of halted cores [9] - [osh]: Add banner to /etc/motd [10] - [kernel: signal]: Add SIGTERM [11] - [kernel: osh]: Add '!!' to repeat last command [12] - [kernel: termios]: Add c_oflag defines [13] - [kernel]: Introduce initial virtual system resources [14] - [kernel]: Implement POSIX uio [15, 16] - [kernel]: Add initial support for sockets [17, 18, 19, 20] - [kernel: uio]: Add iovec copyin/copyout routines [21] Commits referenced: [0]: 3ab5f07bac34bc9de5b9038407353c707f3f4c2f [1]: df9f396017f92ad4647697d461bb5475d6596cfb [2]: fa2bb7b2a5cc01c3c28c9dcd34cf65a499321b9c [3]: ea521725a7739ec568eb6961edabf71d8169ef9e [4]: 3ab5f07bac34bc9de5b9038407353c707f3f4c2f [5]: cf3b1238d3ebdf6184a9977ee6e0d3057313444c ... truncated - decoding logic added to OEMU [6]: fd0c31d4cfd6e220271e43102fb69301d7ffc664 [7]: 6bd0f17304d78e2b7e37684a672f59c9cc2444d0 ... some entries truncated [8]: cf1bb5e566ad0e346af810b399d871a74031feb2 [9]: 48587c836af7a008eff4964094e97aa1c94a34b0 [10]: 71cb1ceaaa894f642e2d294684d6ac83e965137a [11]: 87f45183e415368e3a3e67c7a632269a0375cedc [12]: 967c7daef5c4259ff0a79e91a758db335872c25e [13]: 739fc515b53dcb835dd67fb1fd8da8c9aa3b2861 [14]: 15c4ee1321be918d8fcbc8d858ea90a4dabe54a5 [15]: 0b20b44c90ec4e2de0d5d2c8da99cb915eaf4a76 [16]: b3fb473977c6bfb5294f229336a23d2071d565f8 [17]: 275108db200f6303d84d5225b80081b58866fe22 [18]: 8b599e8c8d32bdbbfe5a5ca696d4d9cdff5d5350 [19]: 037787ec82f99e3015c423c1e9a09a76017f0203 [20]: 71decb670bd84630d3639623891e46f332d58084 [21]: b3fb473977c6bfb5294f229336a23d2071d565f8 Signed-off-by: Ian Moffett <ian@osmora.org>
3 daysusr: mrow: Use 'libgfx' instead of bare fbdevIan Moffett
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>
3 dayslib: Introduce libgfxIan Moffett
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>
3 daysbuild/lib: Add Makefile to libs/Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
3 daysusr: Add 'dmidump' program for DMI infomationIan Moffett
Add dmidump utility that reports information from DMI (aka system management BIOS). Signed-off-by: Ian Moffett <ian@osmora.org>
3 dayskernel: dmi: Add '/ctl/dmi/board' ctl entryIan Moffett
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>
3 dayskernel: dmi: Add dmi_prodfam()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
3 dayskernel: dmi: Add dmi_cpu_version()Ian Moffett
Add DMI helper to grab processor version string Signed-off-by: Ian Moffett <ian@osmora.org>
4 daysusr: libc: Implement additional socket routinesIan Moffett
Implements: - sendmsg() - recvmsg() - connect() Signed-off-by: Ian Moffett <ian@osmora.org>
4 dayskernel: Add SYS_connect syscallIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
4 dayskernel: socket: Implement connect()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
4 dayskernel: socket: Improve control message logicIan Moffett
- Zero new control buffer before usage - Block if the control message queue is empty Signed-off-by: Ian Moffett <ian@osmora.org>
4 dayskernel: socket: Block is recv queue is emptyIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
4 dayskernel: socket: Block if cmsg queue is emptyIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
4 dayskernel: socket: Log socket owner PID on SCM_RIGHTSIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
4 dayskernel: socket: Create a socket file in /tmp/Ian Moffett
This commit adds logic to socket() that creates a temp file that represents it. Signed-off-by: Ian Moffett <ian@osmora.org>
4 dayskernel: socket: Keep track of socket ownerIan Moffett
Keep track of the process that created a socket. Signed-off-by: Ian Moffett <ian@osmora.org>
4 dayssys: types: Use internal typenames for typedefsIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
4 dayskernel: descrip: Add 'td' parameter to fd routinesIan Moffett
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>
5 daysetc: oemu: Add examples for LSR and LSLIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
5 daysusr: libc: Add initial ctype.hIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
5 daysoemu: cpu: Add decoding for shiftinstructionIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
5 daysoasm: Introduce logical shift operationsIan Moffett
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>
6 daysetc: oemu: Fix conflict in test-00.sIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
7 dayskernel: socket: Ensure AF_UNIX in recvmsg()Ian Moffett
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>
7 dayskernel: Add SYS_sendmsg and SYS_recvmsgIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
7 dayskernel: socket: Add initial SCM + CMSG implIan Moffett
Introduce initial implementation for out-of-band socket control messages and an SCM_RIGHTS stub. Signed-off-by: Ian Moffett <ian@osmora.org>
7 dayskernel: uio: Add iovec copyin/copyout routinesIan Moffett
Introduce copyin() and copyout() type functions made for iovec/uio operation. Signed-off-by: Ian Moffett <ian@osmora.org>