Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/x0reaxeax/cernel
PoC kernel with stack support written completely in C
https://github.com/x0reaxeax/cernel
kernel poc stack
Last synced: 26 days ago
JSON representation
PoC kernel with stack support written completely in C
- Host: GitHub
- URL: https://github.com/x0reaxeax/cernel
- Owner: x0reaxeax
- Created: 2022-08-08T18:57:36.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-08-09T17:13:37.000Z (over 2 years ago)
- Last Synced: 2024-12-31T19:22:48.646Z (about 1 month ago)
- Topics: kernel, poc, stack
- Language: C
- Homepage:
- Size: 2.93 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CERNEL
PoC kernel with stack support written in C.**Requirements:**
`clang` (tested with version `13.0.1-3+b2`)
`ld`The point is to demonstrate that the stack can be setup and used without depending on an external assembler or inline assembly.
This is demonstrated by calling the `kmain()` function from the entry function `start()`, then hopping back to `kmain()` using the `return` statement (`ret` instruction) and landing on infinite loop `while(1);` (`jmp 0x10000c`) located in `start()`.
> Written with [StackEdit](https://stackedit.io/).