lowczarc / arm-kernel Goto Github PK
View Code? Open in Web Editor NEW๐พ An ARM kernel in Zig.
License: Other
๐พ An ARM kernel in Zig.
License: Other
=============================================================================== LancelOS arm-kernel =============================================================================== Description: ------------------------------------------------------------------------------- The goal is to write a simple ARM kernel for Raspberry (only Pi 2 for now but it won't be too hard to port) in Zig. I want to understand how my computer work and I like learning by doing. This is not and will never be intended for any kind of production environment. Features: ------------------------------------------------------------------------------- [x] Boot [x] UART Read/Write [x] Kernel/Userspace memory separation [x] "device file" model [x] open, read, write, close syscalls (on char devices only) [x] brk syscall, malloc/free in userspace [x] Framebuffer Read/Write [x] Virtual TTY with a home-made font :) [ ] Keyboard [ ] File system [x] Multiple processes running at the same time, context switching [ ] Non system-blocking syscalls [ ] Pipe [ ] Userspace shell ... Maybe more, don't know yet Usage: ------------------------------------------------------------------------------- You need to have the bare-metal ARM cross-assembly/link tools install On Archlinux it's extra/arm-none-eabi-binutils As well as the zig compiler and qemu if you want to test it on your machine. You can build the kernel with: make This will build the kernel to an ./init.bin file To launch it in qemu: make qemu-screen License: ------------------------------------------------------------------------------- This project is licensed under the "THE GAME LICENSE" Resources: ------------------------------------------------------------------------------- https://wiki.osdev.org https://developer.arm.com/documentation/ddi0595/2021-12/AArch32-Registers @AsahiLina's explanation of CVE-2022-32947 is a very entertaining way to understand page tables https://www.youtube.com/watch?v=hDek2cp0dmI BROADCOM BCM2837 ARM Peripherals datasheet https://linux-kernel-labs.github.io/refs/heads/master/index.html https://www.kernel.org/doc/html/latest/index.html
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.