1
0
mirror of https://github.com/sgmarz/osblog.git synced 2024-11-23 18:06:20 +04:00
Commit Graph

347 Commits

Author SHA1 Message Date
Stephen Marz
13b35ff096 Added keyboard event gather. Fixed bug where we didn't replace the event queues. 2020-05-28 16:06:23 -04:00
Stephen Marz
8132b63f9c Added keyboard event gather. Fixed bug where we didn't replace the event queues. 2020-05-28 16:06:05 -04:00
Stephen Marz
f9f93ada71 Try to improve speed of userspace program. 2020-05-28 14:32:56 -04:00
Stephen Marz
74e44fab5d Change the way events are handled. Now, get a full list of events, not just one per system call. 2020-05-28 14:25:30 -04:00
Stephen Marz
98de4555ed Fix fuzzing for abs pointer 2020-05-28 13:29:04 -04:00
Stephen Marz
6e4fecbb9d Added input driver for keyboard and mouse. 2020-05-27 13:04:48 -04:00
Stephen Marz
04cc2ecf12 Added input handler..still verbose. 2020-05-26 19:57:23 -04:00
Stephen Marz
7fb9b0525a Added upper feature bits. 2020-05-26 19:56:59 -04:00
Stephen Marz
8df4eab869 Spacing 2020-05-26 19:56:42 -04:00
Stephen Marz
a26b67cf01 Add comments about why we page allocate instead of use kmalloc for the framebuffer. 2020-05-25 10:32:44 -04:00
Stephen Marz
d3554b14c8 Make new() methods constant since they just build the structure. 2020-05-25 10:29:24 -04:00
Stephen Marz
edffdbdb5a Fixed mistake on stroke_rect 2020-05-25 10:28:02 -04:00
Stephen Marz
a5b5098191 Use different comment style 2020-05-25 10:27:28 -04:00
Stephen Marz
f31a8c1860 Remove public structures where this isn't necessary 2020-05-25 10:25:46 -04:00
Stephen Marz
7c9f014ada Animation? 2020-05-24 13:34:54 -04:00
Stephen Marz
f5e647de0d Add gettime to syscalls 2020-05-24 13:34:39 -04:00
Stephen Marz
4535739f00 Fix overflows on available ring. 2020-05-24 13:34:26 -04:00
Stephen Marz
e680196095 Update toolchain to reflect riscv-gnu-toolchain 2020-05-24 12:42:04 -04:00
Stephen Marz
a42328955d Ignore framebuffer binaries 2020-05-24 12:41:37 -04:00
Stephen Marz
ffcd84dc22 Added code for drawing to GPU 2020-05-24 12:41:11 -04:00
Stephen Marz
b29ab98088 Move code into userspace 2020-05-24 12:40:26 -04:00
Stephen Marz
3cf0ef6fba Add userspace system calls for running framebuffer 2020-05-24 12:05:35 -04:00
Stephen Marz
43abdd358f Use a series expansion for cosine 2020-05-24 10:06:15 -04:00
Stephen Marz
56ae6230dd Fixed cosine. It's backwards from how pixels work. 2020-05-23 11:53:48 -04:00
Stephen Marz
c6b4d3c7ca Added cosine function 2020-05-23 11:24:36 -04:00
Stephen Marz
c8dc4ff350 Turn on the FPU for OS math. 2020-05-23 11:24:25 -04:00
Stephen Marz
a0c0134fb5 White background 2020-05-23 09:13:12 -04:00
Stephen Marz
b7880be6ac Disambiguate r from red to rect from Rectangle 2020-05-23 08:52:56 -04:00
Stephen Marz
9ddb77a270 Added width and height fields to Device. 2020-05-23 08:51:58 -04:00
Stephen Marz
af3527b081 Calculate using usize. Didn't do the math, but this seems a safer option. 2020-05-23 08:48:29 -04:00
Stephen Marz
1ee1250b9d Add guest_errors and unimp 2020-05-23 08:46:04 -04:00
Stephen Marz
6852de1e55 Added new for Pixel. Made rectangle copyable 2020-05-23 08:43:14 -04:00
Stephen Marz
bfd3ee66f4 Added rectangle drawer for testing. 2020-05-23 08:37:46 -04:00
Stephen Marz
907372dd48 GPU is initializing with Vol Orange 2020-05-23 08:24:50 -04:00
Stephen Marz
36207992a0 Added configuration and init. 2020-05-23 07:36:38 -04:00
Stephen Marz
5bc745931b Add GPU init 2020-05-23 06:23:32 -04:00
Stephen Marz
37cc8b7fae Add kmem for framebuffer allocation 2020-05-23 06:23:21 -04:00
Stephen Marz
b9111aa88a Added GPU to virtio, added interrupt handler, and removed nographic switch to QEMU 2020-05-22 22:34:03 -04:00
Stephen Marz
5cac50aa74 Add feature bits 2020-05-22 22:22:51 -04:00
Stephen Marz
a95afaff71 made constants public 2020-05-22 22:10:23 -04:00
Stephen Marz
9028044ced Added structures for GPU 2020-05-22 22:00:33 -04:00
Stephen Marz
b5b6556a6c Added handler for 7 Store access fault. 2020-05-22 22:00:16 -04:00
Stephen Marz
af8066cf84 Added comments and made the formula for program pages clearer. 2020-05-22 21:59:55 -04:00
Stephen Marz
5b89cd891a See if our new floating point works 2020-05-22 16:29:44 -04:00
Stephen Marz
b78c7aef42 Remove inode.size as a parameter to load_proc. 2020-05-22 16:29:22 -04:00
Stephen Marz
d8ca63b780 Get size of program in memory from ELF not from inode. 2020-05-22 16:28:38 -04:00
Stephen Marz
3653160781 Remove NUM_INDIRECT_POINTERS and replace with global constant. 2020-05-21 09:45:14 -04:00
Stephen Marz
0b83a3629a Get set up to support file descriptors in user space. 2020-05-19 09:27:57 -04:00
Stephen Marz
7db18179a6 Remove unnecessary code. 2020-05-18 12:22:04 -04:00
Stephen Marz
55ccc812e6 Add comments. 2020-05-18 09:11:41 -04:00