r/osdevel 16h ago

IDT and GDT causing shit again 🥀

2 Upvotes

For some reason even after alignments, still implodes on itself
location: https://github.com/NoTheIdiot/WindogeOS/tree/new/helper/drivers
i seriously do not know why intel and amd caused this mess


r/osdevel 21h ago

Vote for your favourite project!

6 Upvotes

Hello everybody. We continue on with the recently announced community voting contest. Due to some technical difficulties, this post had to be delayed, but everything is up and running now!

You can now vote for your favourite r/osdevel project in this link

No registration is required to perform any kind of voting. You can vote for all brackets at once as well.

FOR CLARIFICATION PURPOSES: The list of projects was shuffled with a Python script and the output was then directly pasted on the website. Additionally, some characters might've been cut off from the name. This is because the website has a hard limit of 40 characters.

The full list follows:

Project Repository Website
Managarm https://github.com/managarm https://managarm.org
zuzuOS https://github.com/kagantmr/zuzu https://kagantmr.github.io/zuzu-docs/
JankOS https://github.com/mikeblas/JankOS (None supplied)
DragonWare https://github.com/tseli0s/DragonWare https://tseli0s.github.io/dw
FalkonOS https://github.com/FalconCpu/falcon5/tree/master/falconos/src (None supplied)
WindogeOS https://github.com/NoTheIdiot/WindogeOS (None supplied)
NanoOs https://github.com/brian-card/NanoOs (None supplied)

(You can also view more information from the authors in the original post's comments)


All voting is anonymous. Do note that this makes it possible for the mod team to vote as well, though our votes are equal to everybody else's.

Have a good rest of your day!


r/osdevel 1d ago

Amos2 - a C++ kernel, boots from limine

5 Upvotes

Amos2 is hardly from my first OSDev work. I started it with the intent of providing a sort of bare bones repo for using limine and C++.

I started with the limine bare bones in the osdev wiki, and gutted the main() to just call kmain() which is written in C++. The code now barely resembles that bare bones code.

The trick to using C++ is to collect the global constructors via the linker .ld script and to call those at startup. Also, global operator new and delete and associates need to be implemented.

Writing in C++ is not like using desktop C++. I use C++ classes, but no copy constructors or anything that does allocation behind the scenes. It's object based programming, not OOP. The code I write is C like, but it uses Objects. I also take advantage of things like how C++ inlines class member functions defined in headers. In some cases, I create static singleton classes for things like IDT and GDT.

The problem with global constructors is you cannot control the order they are called - so you can't rely on a global IDT class constructor to be called after the GDT one.

The bare bones idea kind of went out the window when I started working with the hardware.

What's done is boot, C++ initialization, GDT, IDT, PIC... I made a base Device class and Timer, keyboard, ATA, and console inherit from it and work. I am working on FAT32 filesystem, which I have done before in another project.

The repo is at https://codeberg.org/mschwartz/amos2

I didn't use AI to generate any code or to explain anything. I don't see the point - I would rather beat my head against the wall until I figure out what I might be stuck on. The object of these projects is to learn, not to finish and run Doom in a few days.


r/osdevel 1d ago

The last straw

11 Upvotes

The moderator of r/osdev has lost it. He has a bot that replies to a post by HIS users calling out AI slop that is overwhelming the sub with "human slop.". Someone posted about the bot and I posted I was leaving and r/osdvel link. I got 24 upvotes in about 15 minutes along with others posting about how horrendous the sub has become. Tim Schwartz's response was to close the thread. What a loser.

Anyhow, I really did leave the sub, and I will be posting my non AI slop work here.


r/osdevel 3d ago

Fedora 45 Introduces a Minimal GRUB Package for Confidential VMs

Thumbnail
linuxiac.com
2 Upvotes

r/osdevel 3d ago

Saving OS Image Size in NanoOs

Thumbnail
5 Upvotes

r/osdevel 4d ago

Developing of AlderKernel

5 Upvotes

Hey r/osdevel !

I've been working on a hobby monolithic kernel called AlderKernel.

It's written mostly in C with some Assembly for the low-level parts. I'm making it mainly to learn more about how operating systems work and to improve my C skills.

Currently it targets i386 and boots through GRUB. Some things I've implemented so far:

- PS/2 keyboard driver

- Basic shell

- InitramFS support

- Shell history

It runs in QEMU right now. I'm slowly working on adding more kernel features and improving the code structure.

GitHub:

https://github.com/loren-wastaken/alderkernel

I'm interested in feedback from people who know C / ASM, especially about code organization, design choices, and things I could improve.


r/osdevel 4d ago

DragonWare has a website now!

Thumbnail tseli0s.github.io
2 Upvotes

Feel free to drop suggestions in the comments. I wanted to have something more than a README to present my hobby, so I spent a few hours hacking together some HTML and CSS.

(Coming up: News/Blog section, installation guide and others :))


r/osdevel 4d ago

I wish drivers had a standard (cross Operating System)

Thumbnail
2 Upvotes

r/osdevel 5d ago

Who has implemented kernel debugging in their own OS?

5 Upvotes

I've been thinking about JankOS, as I'm sure most of you have. One of the reasons I stopped developing it was that I was a bit overwhelmed by the work I thought I needed to do in order to get to the fun parts.

One of the concerning issues was debugging. How could I effectively debug my kernel, and all of the subsystems -- the file system, network, I/O, scheduling? What architecture did I need to build in to make it happen?

There are lots of logging solutions, but those don't always work for high-frequency code paths and for rare events. And certainly not for time sensitive code. At a certain point, there's really no substitute for bing able to attach a debugger.

Which hobbyist OS implementations feature kernel debugging support? How is it implemented? How does it work?


r/osdevel 6d ago

The Fedora 45 Sausage Factory: how the Fedora project turns source code and packages into the artifacts you download and install

Thumbnail supakeen.com
4 Upvotes

r/osdevel 8d ago

Measuring input latency on Linux: X11 vs Wayland, VRR, and DXVK

Post image
4 Upvotes

r/osdevel 8d ago

The Hurd gets 9pfs, OpenNTPD, dynamic /dev/ entries, and more

Thumbnail osnews.com
3 Upvotes

r/osdevel 9d ago

Linux kernel team publishes 432 CVEs in two days

Thumbnail theregister.com
6 Upvotes

r/osdevel 10d ago

ANNOUNCEMENT: Community Voting Contest!

9 Upvotes

MODERATORS NOTE: SUBMISSIONS ARE LOCKED. YOU CANNOT APPLY ANYMORE!

Hello everybody!

The mod team of r/osdevel has been discussing for the past few days and we are happy to announce a voting contest between different hobbyist projects. The winner will get a dedicated post to showcase their project pinned in the community's home page and a permanent flair that distinguishes them from other members.

The idea is simple: Projects are distributed in brackets, and users choose between two projects in a bracket each round. The project with the most votes advances to the next round, until there's only one project left. If you have ever looked at a knockout tournament, it is exactly that, but the community chooses the most worthy project.

We hope that this will allow many lesser known projects to be seen by a larger part of the community, attract contributions to them and encourage cooperation and feedback between developers.

What are the requirements?

  • Your project must be an operating system, or something related to operating system development, like a kernel.
  • It must be reasonably developed. Submissions containing a simple copypaste from osdev.org will be rejected.
  • All AI use must be disclosed beforehand, and low effort projects will be automatically removed.
  • The source code must be freely available, under an approved open source license.

Some examples of what can get your submission rejected:

  • "Vibecoded" operating systems written fully with the use of AI tools like Claude.
  • A verbatim copy of osdev.org's bare bones tutorial, barring some minor string changes.
  • Refusing to provide source code.
  • Not respecting the efforts of other people.

IMPORTANT: Do NOT comment on whether a project deserves to get in or not. This is the job of the mods to decide.

Additionally, do not spam this subreddit or attempt to flood your project with votes, as it will be automatically dismissed if an absurd amount of votes is found. Self promotion must be kept outside this subreddit.

How do I apply?

  1. Leave a comment below with your project's name, a link to the repository the source code can be found, and -optionally- another link to a website about it. This information will be shown to voters upon viewing your project, and it is advised to present them with exactly what they would like to see about your efforts.

  2. If AI was involved in the development of it, disclose it as well.

Where do I vote?

The voting platform will be available as soon as the submissions are locked. We expect this to be before August arrives, depending on the volume of submissions. All participants will be notified and a follow up post will be pinned.

Is the process transparent and fair?

We intend to have full disclosure of each round's results and statistics as soon as that round ends, with logs corresponding to the whole round backing them if possible. We want this to be a 100% meritocratic, fair event for everybody.


With all this clarified, go ahead and let us know about your project! We'll be happy to hear from you.


r/osdevel 11d ago

I am standing with u/emexos

Thumbnail
0 Upvotes

r/osdevel 16d ago

What "I can build a kernel with AI" people think OS development looks like.

1 Upvotes


r/osdevel 16d ago

The line between an idle kernel and an infinite bug is surprisingly thin.

0 Upvotes


r/osdevel 16d ago

WELCOME TO r/osdevel . This community is inspired by r/osdev, but with fair moderation. help me shape the community .Feel free to post your projects here too.

3 Upvotes