https://github.com/hellebenjamin/lanskern
Minimal kernel made in C
https://github.com/hellebenjamin/lanskern
c kernel x86
Last synced: about 1 year ago
JSON representation
Minimal kernel made in C
- Host: GitHub
- URL: https://github.com/hellebenjamin/lanskern
- Owner: HelleBenjamin
- License: gpl-3.0
- Created: 2024-09-23T21:02:24.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-21T11:07:10.000Z (over 1 year ago)
- Last Synced: 2025-02-02T15:56:52.735Z (over 1 year ago)
- Topics: c, kernel, x86
- Language: C
- Homepage:
- Size: 5.19 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Lanskern
Lanskern is a minimal kernel written in C. It's a hobby project. Currently it's in very early development. More features will be added in the future. The kernel comes with a fork of ManuOS.
## Requirements
- gcc
- make
- NASM
- Linux based OS
- QEMU
- grub
## How to build
1. Type `make` in the terminal. This builds the kernel to an `Lanskern.iso` file and launches it in QEMU.
## System calls
- `syswrite32(char *buf, int len)`: Write a string to the screen
- `sysread32(char *buf, int len, int echo)`: Read a string from the screen
- `sysreade32(char *buf, int len, int echo)`: Read a string from the screen until enter is pressed
- `sysrestart32()`: Restart the kernel