1721 Commits

Author SHA1 Message Date
1af2cf657d
feat(kernel/driver): add CreateDeviceFile method
Signed-off-by: EnderIce2 <enderice2@protonmail.com>
2025-03-02 21:30:15 +00:00
f31d11f7ad
fix(kernel/pci): fix MapPCIAddresses when BAR size of zero
Signed-off-by: EnderIce2 <enderice2@protonmail.com>
2025-03-02 21:28:28 +00:00
851a8c140f
feat(kernel/driver): add ReloadDriver method to manage driver reloading
Signed-off-by: EnderIce2 <enderice2@protonmail.com>
2025-03-02 21:27:20 +00:00
ae2617dca2
refactor(driver/api): delegate memory allocation and deallocation to DriverManager
Signed-off-by: EnderIce2 <enderice2@protonmail.com>
2025-03-02 21:26:00 +00:00
adba9cc348
refactor(driver/api): fix formatting
Signed-off-by: EnderIce2 <enderice2@protonmail.com>
2025-03-01 23:33:55 +00:00
232e06f8f3
refactor(kernel/pci): simplify PCI device initialization by delegating to PCIManager
Signed-off-by: EnderIce2 <enderice2@protonmail.com>
2025-03-01 23:32:54 +00:00
aea8a7bb08
feat(kernel/pci): add device initialization method for PCI devices
Signed-off-by: EnderIce2 <enderice2@protonmail.com>
2025-03-01 23:32:14 +00:00
65ab83b42b
fix(kernel/pci): map BAR address using PWT and PCD flags
Signed-off-by: EnderIce2 <enderice2@protonmail.com>
2025-03-01 23:31:31 +00:00
d3f6d51ed2
build(vscode): add separated tasks for building bootloader, kernel, drivers, userspace, and image
Signed-off-by: EnderIce2 <enderice2@protonmail.com>
2025-02-28 00:41:17 +00:00
ca8dc6429b
fix(kernel): fix empty initialization of std::string (str = "")
_size is 0 which fails the memcpy checks

Signed-off-by: EnderIce2 <enderice2@protonmail.com>
2025-02-27 18:13:51 +00:00
cfb5d9a0f4
build(tools): fix gdb error 'Scripting in the "Python" language is not supported in this copy of GDB.'
Signed-off-by: EnderIce2 <enderice2@protonmail.com>
2025-02-26 23:20:10 +00:00
8dab45ecfd
build(devcontainer): improve Dev Container development
The toolchain and qemu can be built inside the container + running the qemu inside the container

Signed-off-by: EnderIce2 <enderice2@protonmail.com>
2025-02-26 23:10:17 +00:00
88a5f06325
build(tools): rewrite makefile to be more efficient and easy to understand
Signed-off-by: EnderIce2 <enderice2@protonmail.com>
2025-02-26 23:07:36 +00:00
aab84cd3ab
chore(devcontainer): rename dev container (libc_test)
Signed-off-by: EnderIce2 <enderice2@protonmail.com>
2025-02-26 23:04:57 +00:00
a3719eef3e
feat(initrd): add /etc/hosts file
Signed-off-by: EnderIce2 <enderice2@protonmail.com>
2025-02-26 15:21:54 +00:00
0769a82f4b
feat(userspace/libc): update math functions
Signed-off-by: EnderIce2 <enderice2@protonmail.com>
2025-02-26 02:10:06 +00:00
f978f2487e
feat(userspace/libc): add math stub functions
Signed-off-by: EnderIce2 <enderice2@protonmail.com>
2025-02-25 16:17:37 +00:00
8859bfc438
chore(vscode): add Dev Container
Signed-off-by: EnderIce2 <enderice2@protonmail.com>
2025-02-25 16:16:41 +00:00
5202601c4f
feat(userspace/libs/libm): add stub libm
Signed-off-by: EnderIce2 <enderice2@protonmail.com>
2025-02-25 16:13:42 +00:00
78141b28c7
feat(userspace/apps/test/libc_test): rewrite a lot of the code and improve debugging with vscode using .devcontainer
Signed-off-by: EnderIce2 <enderice2@protonmail.com>
2025-02-25 14:10:12 +00:00
3f2584ac09
chore(vscode): add 'kernel' scope to conventional commits
Signed-off-by: EnderIce2 <enderice2@protonmail.com>
2025-02-24 02:10:14 +02:00
a2ce579a61
fix(userspace/libc): update vscode stub macro with improved formatting
Signed-off-by: EnderIce2 <enderice2@protonmail.com>
2025-02-24 02:09:31 +02:00
0958cdf7f8
fix(kernel): add TZ environment variable to init process
Signed-off-by: EnderIce2 <enderice2@protonmail.com>
2025-02-24 02:08:42 +02:00
7f3b2b4dbb
fix(userspace/libc): fix tzset() function
Signed-off-by: EnderIce2 <enderice2@protonmail.com>
2025-02-22 03:26:49 +02:00
f6f46d1bbe
fix(userspace/libc): fix gmtime_r, localtime_r and mktime implementation
Signed-off-by: EnderIce2 <enderice2@protonmail.com>
2025-02-22 03:22:47 +02:00
c12ee67592
fix(userspace/libc): handle NULL input in getenv function
Signed-off-by: EnderIce2 <enderice2@protonmail.com>
2025-02-22 02:52:11 +02:00
74ff9579f3
fix(userspace/libc): fopen should set buffer_pos to -1
This change is a fix for fread() because it needs to pass the if statement: "if (stream->buffer_pos >= stream->buffer_size)"

Signed-off-by: EnderIce2 <enderice2@protonmail.com>
2025-02-22 02:43:06 +02:00
d7cbeb9eba
fix(userspace/libc): modify __libc_init and crt0 to initialize "environ"
Signed-off-by: EnderIce2 <enderice2@protonmail.com>
2025-02-22 02:41:41 +02:00
4d333f94bc
feat(userspace/apps/test/utest): add TestProcess function for executing test programs
Signed-off-by: EnderIce2 <enderice2@protonmail.com>
2025-02-21 02:58:30 +02:00
e003af38ff
chore(vscode): add userspace/apps/sys/init to conventional commit scopes
Signed-off-by: EnderIce2 <enderice2@protonmail.com>
2025-02-21 02:56:09 +02:00
d1c504f9a6
feat(userspace/apps/sys/init): handle termination signals for graceful shutdown
Signed-off-by: EnderIce2 <enderice2@protonmail.com>
2025-02-21 02:55:29 +02:00
d46ed57dd7
chore(vscode): add more conventional commit scopes for userspace
Signed-off-by: EnderIce2 <enderice2@protonmail.com>
2025-02-21 02:54:45 +02:00
a6d372aaad
feat(userspace/libs/libdemo): add template library
Signed-off-by: EnderIce2 <enderice2@protonmail.com>
2025-02-21 02:53:41 +02:00
b3e0b30147
refactor(tests): remove obsolete SIMD and web test files
Signed-off-by: EnderIce2 <enderice2@protonmail.com>
2025-02-21 02:47:12 +02:00
93e57f5dbe
feat(userspace/libc): add stub termios implementation
Stub implementation! This needs a rewrite!

Signed-off-by: EnderIce2 <enderice2@protonmail.com>
2025-02-21 02:45:20 +02:00
db5a42289a
feat(userspace/libc): implement feof() and ferror() functions
Signed-off-by: EnderIce2 <enderice2@protonmail.com>
2025-02-21 02:43:00 +02:00
77136acccd
feat(userspace/libc): implement <time.h> header
Not tested enough!

Signed-off-by: EnderIce2 <enderice2@protonmail.com>
2025-02-21 02:42:33 +02:00
258ac6e2f6
chore(vscode): add recommended extensions for improved development experience
ms-vscode.cpptools maziac.asm-code-lens editorconfig.editorconfig vivaxy.vscode-conventional-commits ms-vscode.hexeditor webfreak.debug ibm.output-colorizer gruntfuggly.todo-tree naumovs.color-highlight seven1bit.vscode-ext-ansi-color-highlight jeff-hykin.better-cpp-syntax aaron-bond.better-comments

Signed-off-by: EnderIce2 <enderice2@protonmail.com>
2025-02-21 02:40:21 +02:00
fbe4b94805
chore(vscode): add conventional commit scopes for kernel
Signed-off-by: EnderIce2 <enderice2@protonmail.com>
2025-02-21 02:38:52 +02:00
2c2e7d9de3
build(userspace): update vscode launch configuration and Makefiles for utest and libc_test
Easier to debug

Signed-off-by: EnderIce2 <enderice2@protonmail.com>
2025-02-21 02:37:48 +02:00
9dfa750444
refactor(kernel/syscalls): simplify argument handling in HandleNativeSyscalls
Easier to debug

Signed-off-by: EnderIce2 <enderice2@protonmail.com>
2025-02-21 02:35:57 +02:00
4240183fa1
fix(userspace/libc): cast status to int in __check_errno for proper error handling
Signed-off-by: EnderIce2 <enderice2@protonmail.com>
2025-02-21 02:33:40 +02:00
42f26787fb
feat(userspace/libc): implement getdelim and getline functions
Signed-off-by: EnderIce2 <enderice2@protonmail.com>
2025-02-20 02:20:26 +02:00
8d08ab933a
feat(userspace/libc): implement fstatat, lstat & stat
Signed-off-by: EnderIce2 <enderice2@protonmail.com>
2025-02-20 02:17:19 +02:00
c83c542f5b
feat(userspace/libc): implement fstat()
Signed-off-by: EnderIce2 <enderice2@protonmail.com>
2025-02-20 02:12:02 +02:00
08319ef4c7
docs(syscalls): add documentation for FBIOGET_SCREEN_INFO ioctl
Signed-off-by: EnderIce2 <enderice2@protonmail.com>
2025-02-20 02:09:09 +02:00
f4168e2815
refactor(userspace/libc): implement pthread_sigmask, sigaddset, sigfillset & sigprocmask
Signed-off-by: EnderIce2 <enderice2@protonmail.com>
2025-02-20 02:07:40 +02:00
123d11e4e3
feat(userspace/libc): implement system() function
Signed-off-by: EnderIce2 <enderice2@protonmail.com>
2025-02-20 02:07:04 +02:00
b1a107fb65
refactor(userspace/libc): replace syscall2 with call_kill in kill function
Signed-off-by: EnderIce2 <enderice2@protonmail.com>
2025-02-20 02:00:26 +02:00
d375acd0ec
fix(userspace/libc): include <ctype.h> in stdlib.c
Signed-off-by: EnderIce2 <enderice2@protonmail.com>
2025-02-20 01:53:21 +02:00