Commit Graph

62 Commits

Author SHA1 Message Date
Anton Lydike
c5afa93bb3 applied uncrustify to ecall source 2021-08-22 19:53:59 +02:00
Anton Lydike
74d22fb542 added uncrustify config for formatting 2021-08-22 19:47:31 +02:00
Anton Lydike
1424776f92 removed trailing whitespaces from package.py 2021-08-22 19:05:50 +02:00
Anton Lydike
f32a8a2b87 added -O3 flag to compilation 2021-08-22 19:05:31 +02:00
Anton Lydike
b5b6b3c57e removed trailing whitespaces in example programs 2021-08-22 19:05:00 +02:00
Anton Lydike
426a6508d1 removed trailing whitespaces 2021-08-22 19:04:15 +02:00
Anton Lydike
c2484838c1 kernel.(c|h) moved debugging code into if (DEBUGGING) section and cleaned up whitespace 2021-08-22 19:03:16 +02:00
Anton Lydike
887056f141 removed unused and unimplemented malloc definitions 2021-08-22 18:37:52 +02:00
Anton Lydike
c71ee1498c cleaned up comments in ktypes header 2021-08-22 18:35:19 +02:00
Anton Lydike
b5893aacab cleaned up ecall code, moved debug statements into a debug check, removed trailing spaces 2021-08-22 18:33:52 +02:00
Anton Lydike
f2e83a61ac added a debugging constant to identify absence of textIO 2021-08-22 13:19:49 +02:00
Anton Lydike
4b31bd9fda made all ecall handlers return optional_int and correctly handle erorrs 2021-08-22 12:55:40 +02:00
Anton Lydike
828ea0c2e2 made itoa and dbgln empty macros if no textIO is available to remove overhead 2021-08-22 12:22:41 +02:00
Anton Lydike
5dccd2dc80 adding comments to scheduling code 2021-08-22 12:02:11 +02:00
Anton Lydike
737a9a1cf3 cleaning up print statements and unusded variables 2021-08-22 11:12:34 +02:00
Anton Lydike
cef79a92aa added end of config comment to package.py 2021-08-21 21:27:27 +02:00
Anton Lydike
4e7a6a20f9 updated readme 2021-08-21 21:27:11 +02:00
Anton Lydike
314da51aaf added various (bad) example programs 2021-08-21 21:24:21 +02:00
Anton Lydike
3b93b864ac various imrpovements and implementations on the kernel 2021-08-21 21:18:03 +02:00
Anton Lydike
61017db51c sched.h: create_new_process - correct function to create a new process in an available spot 2021-08-21 15:29:41 +02:00
Anton Lydike
ef854fba54 made error codes positive numbers 2021-08-21 15:27:55 +02:00
Anton Lydike
409a993d77 removed lib as it was out of date and discontinued 2021-08-21 12:54:31 +02:00
Anton Lydike
efb372cb5f added .rdata and .rodata sections to packaging script 2021-08-21 12:53:36 +02:00
Anton Lydike
601b507370 switched boot.S to use csr.h constants for csr addresses 2021-08-21 12:18:20 +02:00
Anton Lydike
a25c28d661 added bundled version of kernel types in ktypes.h 2021-08-21 12:17:53 +02:00
Anton Lydike
b979ab9b04 switched kernel init to use malloc with optionals 2021-08-21 12:17:22 +02:00
Anton Lydike
c8c19f298a bundled all types into ktypes.h and added optionals 2021-08-21 12:17:04 +02:00
Anton Lydike
b6d967262a improvments to debugging symbols emitted by package.py script 2021-08-21 11:15:59 +02:00
Anton Lydike
7894808e09 removed current_process_index in scheduling in favour of pointers 2021-08-21 11:15:30 +02:00
Anton Lydike
16d0c05272 starting all available binaries as processes on kernel startup 2021-08-21 11:13:12 +02:00
Anton Lydike
a0c3a57921 added placeholder malloc_stack as malloc precursor 2021-08-21 11:12:44 +02:00
Anton Lydike
1e472d2a4a small linker.ld fixes for _start section and global pointer 2021-08-21 11:08:57 +02:00
Anton Lydike
26e70d2f60 added TextIO module for outputting text 2021-08-21 11:08:03 +02:00
Anton Lydike
ab19abe12b kernel scheduling now working better with ecalls, not resetting the time slice 2021-08-19 15:30:07 +02:00
Anton Lydike
d7b5a1b8d0 cleaned packaging script up and added debug symbols 2021-08-19 15:29:25 +02:00
Anton Lydike
b5a26ba0c7 added .img files to gitignore 2021-08-18 13:19:03 +02:00
Anton Lydike
c0f5de14ac fixed packaging script
- added more sections to the included sections list
- fixed imports
- better output
- fixed argument usage
2021-08-18 13:18:51 +02:00
Anton Lydike
33168689c6 added -Wall -Wextra -pedantic-errors to gcc flags 2021-08-18 13:07:01 +02:00
Anton Lydike
cc498154aa moved binary_table from .bss to .data section to prevent overwriting it with zeros on startup 2021-08-18 13:06:16 +02:00
Anton Lydike
ce9c6e6cfb started properly implementing syscall structure 2021-08-18 12:39:01 +02:00
Anton Lydike
962b209f30 switched to a real linker script 2021-08-17 13:15:50 +02:00
Anton Lydike
b058330a16 Revert "renamed .sdata -> .data in linker.ld"
This reverts commit f0bc98c441.
2021-08-17 11:06:50 +02:00
Anton Lydike
31339216b7 fixed missing semicolon in sched.h 2021-08-17 10:56:48 +02:00
Anton Lydike
f0bc98c441 renamed .sdata -> .data in linker.ld 2021-08-17 10:56:27 +02:00
Anton Lydike
79c93de90e changed objdump flags in makefile to only disassemble text sections 2021-08-17 09:15:42 +02:00
Anton Lydike
39a5eada2f introduced data structure to manage binaries in memory 2021-08-17 09:15:42 +02:00
Anton Lydike
1b0ee53e4e removed unused parts of boot.S and changed ordering in boot process 2021-08-17 09:15:42 +02:00
Anton Lydike
06f8cfd279 removed mutex kernel code 2021-08-17 09:15:42 +02:00
Anton Lydike
76c5c3ba3a added script for packaging binaries into image 2021-08-17 09:15:42 +02:00
Anton Lydike
20704f86ce changed binary starting location and added linker comments 2021-08-17 09:09:43 +02:00