Skip to content

Rewrite#14

Merged
Poprdi merged 7 commits into
masterfrom
rewrite
Feb 22, 2026
Merged

Rewrite#14
Poprdi merged 7 commits into
masterfrom
rewrite

Conversation

@Poprdi
Copy link
Copy Markdown
Owner

@Poprdi Poprdi commented Feb 22, 2026

No description provided.

adrerl added 7 commits February 21, 2026 16:21
- Added serial output messages in `enter_baremetal` and `efi_main` to aid debugging during boot.
- Expanded the PS/2 keyboard driver with full ASCII support and scan code handling, including initialization and state management.
- Implemented assembly routines for PS/2 port I/O operations, including reading status, writing commands, and flushing the output buffer.
- Updated embedded relocation data for the bootloader to reflect changes in the binary layout.
- Improved error handling in memory allocation and exit boot services calls.
- Introduced `SpawnProcess` variant in `CommandResult` enum.
- Implemented `exec` and `run` commands in the `execute` function to handle process spawning.
- Updated help text to include usage instructions for the new command.

feat(shell): update ShellAction enum for process spawning

- Added `SpawnProcess` variant to `ShellAction` enum.
- Updated command handling in the `Shell` struct to accommodate the new action.

feat(device): implement in-memory block device

- Created `MemBlockDevice` struct for zero-copy reads/writes.
- Implemented `BlockIo` trait for `MemBlockDevice` to handle block operations.

feat(vfs): initialize root filesystem on memory-backed block device

- Added `FsGlobal` struct to manage filesystem state.
- Implemented `init_root_fs` function to format and mount the filesystem.

feat(hwinit): add ELF64 parser and user-process loader

- Implemented ELF64 parsing and loading functionality for x86-64 architecture.
- Added functions to validate ELF headers, read program headers, and load segments into memory.

feat(hwinit): create kernel stdin buffer for keyboard input

- Implemented a lock-free SPSC ring buffer for handling keyboard input.
- Added functions for pushing bytes into the buffer and reading from it.

feat(libmorpheus): create userspace library for syscall wrappers

- Established `libmorpheus` crate for userspace applications to interact with kernel services.
- Implemented basic syscall wrappers for file operations, process management, and I/O.

feat(libmorpheus): add entry point and panic handler for user processes

- Defined `_start` entry point for user binaries and a minimal panic handler.

feat(libmorpheus): implement filesystem operations in userspace library

- Added high-level wrappers for filesystem syscalls including open, read, write, and delete operations.

feat(libmorpheus): add raw syscall wrappers for inline assembly

- Created thin wrappers around the `syscall` instruction for various system calls.

chore: add target configuration for x86_64 architecture

- Created `x86_64-morpheus.json` for LLVM target configuration.
@Poprdi Poprdi merged commit 8804c22 into master Feb 22, 2026
1 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant