/osg/ - Operating Systems General

This thread is for the discussion of operating systems and their design, development, and usage.
Basic questions about mainstream operating systems (Windows, macOS, Linux) are not allowed; there are other generals for them.

>Interesting Projects
Singularity/Midori, Managed microkernel OS in C# with software-isolated processes.
en.wikipedia.org/wiki/Singularity_(operating_system)
joeduffyblog.com/2015/11/03/blogging-about-midori/
Mezzano, an OS in Common Lisp.
github.com/froggey/Mezzano
TempleOS, ring-0-only JIT-compiled C64-style OS for x64.
templeos.org/
en.wikipedia.org/wiki/TempleOS
Theusus, an OS using a novel concept of biological cells in Rust
github.com/theseus-os/Theseus
Barrelfish, a distributed multikernel OS
barrelfish.org/
CollapseOS, an OS for bootstrapping computers after societal collapse, using Forth.
collapseos.org/

>Operating System Development
Intel Software Developer Manual
intel.com/content/www/us/en/developer/articles/technical/intel-sdm.html
AMD64 Programmer's Manual
amd.com/system/files/TechDocs/40332.pdf
The original OSDev Wiki: has a lot of information but it is mostly outdated and rather opinionated. Read with a grain of salt.
wiki.osdev.org/
Modern OSDev wiki, espousing up-to-date info but lacking a lot of content.
osdev.wiki/

>Kernel design
monolithic (The industry standard, See Linux)
microkernel
en.wikipedia.org/wiki/L4_microkernel_family
exokernel (TempleOS had an exokernel as a side-effect of its primary design)
en.wikipedia.org/wiki/Exokernel
unikernel
unikernel.org/
github.com/cloudius-systems/osv
unikraft.org/
multikernel
microsoft.com/en-us/research/wp-content/uploads/2009/10/paper.pdf
zero-kernel
ieeexplore.ieee.org/document/6480455

>Misc.
In-depth articles about components of mainstream operating systems.
osnews.com/

Attached: Intel rings.jpg (700x700, 60.31K)

Other urls found in this thread:

github.com/riscv-non-isa/riscv-asm-manual/blob/master/riscv-asm.md
discuss.haiku-os.org/t/vm-s-on-haiku/2631
discuss.haiku-os.org/t/aqemu-qemu-virtualizing-on-haiku-as-host/10419
discuss.haiku-os.org/t/inkscape-now-available-in-package-repositories/11850
youtu.be/gBE6glZNJuU?t=117
twitter.com/SFWRedditImages

>Ring -3
*laughs in libreboot*

Attached: 1534370162639.jpg (1024x683, 145.16K)

>no mention of fuchsia
This is a pretty fucking shitty "OS general".

Will add in next thread. Thanks.

Libreboot doesn't change the chipset built-in ROM that still starts and potentially can do damage. The hardware is backdoored, no amount of software will mitigate it.
Did any OS apart from OS/2 actually use rings 1 and 2 for anything?

Not operating systems, but I vaguely recall there was a DOS extender that used rings 1 and/or 2.

By handbook do you mean a guide or the ISA manual itself? The closest I could find was this: github.com/riscv-non-isa/riscv-asm-manual/blob/master/riscv-asm.md
Then there's the manual itself. RISC-V is still pretty new, I don't think many people have written full-on guides for it yet.

ring 4 - jabbascript, bydlon

Interpreters are a dead end.
OSes that run the JVM/CLR or something similar in ring 0 are the future.

i wouldnt mind ACPI if it wasnt for the godawful fucking terrible niggerlicious documentation
>force everyone to use ACPI via Wintel's 30 year monopoly
>shove all functionality into an OOP bytecode that you invented
>document the bytecode in highly autistic recursive pseudocode
>refuse to elaborate further
picrel goes on for 8 pages. the entirety of the documentation for AML is 8 pages.

Attached: uefi.png (867x585, 83.68K)

What do you think about Haiku? Is it ever going to have a modern web browser? It'd be more user-friendly than Windows if they did.

>Haiku
its user API seems a little bit too "out there" to port a browser to

It has Qt5 port and they're working on GTK. Many programs in Depot are Qt5. I don't think it's a problem.
Their default browser is unstable, I guess it would be good otherwise.

I agree. ACPI is actually terrible. Probably the worst subsystem in modern hardware, only AVX/VEX encoding comes close. The concept is nice but execution is terrible. Linus commented on it, pic related

Attached: file.png (713x371, 68.65K)

Haiku is probably the closest to being a real alternative to mainstream OSes. If they can get their native browser some more functionality and improve their graphics drivers I think people will actually start using it. Another thing that is sorely missing is virtualization capabilities.

How is QEMU on it? I couldn't get it to work.

>virtualization capabilities
what specifically? VT-d autism?

I don't think the OS supports host virtualization at all. discuss.haiku-os.org/t/vm-s-on-haiku/2631
>Haiku’s kernel doesn’t provide any virtualisation services at all.
The thread is from 2011 but I don't think anything has changed.
>VT-d autism?
Yes, AMD-V/Intel VT-d. There's no VMM support.

Qemu seems to work according to this thread, but there are caveats.
discuss.haiku-os.org/t/aqemu-qemu-virtualizing-on-haiku-as-host/10419

I was running Haiku on a Sandy bridge machine natively last year, all the hardware worked, with Integrated Graphics, browser could even run Discord, albeit really ugly.

Why do we need a operating system that dictates Ownership and Permissions of files?
Do we really need Copyright in our binary systems?
And is this maybe a security leak?

Attached: 1651805854067.png (800x800, 47.55K)

I see some GTK3 apps are running on it already since January. Inkscape is on HaikuDepot. Wonder when Firefox or at least Palememe.
discuss.haiku-os.org/t/inkscape-now-available-in-package-repositories/11850

>VMM
sweet baby jesus thats a lot of pages of documentation. yeah no, if i was a haiku user i'd just port QEMU and have it emulate every instruction.

For a single-user/consumer OS, file permissions are unnecessary. Terry Davis commented on it. It comes from mainframe/server OSes.
youtu.be/gBE6glZNJuU?t=117
1:57

Yes, emulating instructions would be simpler, the only thing that suffers is performance. Considering the purpose of haiku is to be a end-user Desktop OS first and foremost I don't think VMM is necessary. Which is probably why they never worked on it. There are more important things to put development focus on.

>The original OSDev Wiki: has a lot of information but it is mostly outdated and rather opinionated. Read with a grain of salt.
idk, it seems pretty fair and true to me
all the information is factual and technical
i'm not even sure how you'd opinionate a technical article
also
>not putting Serenity in the OP
other than that I feel like this will be a very comfy set of generals

It's good for security. Not all attacks require psychical access.

>Modern OSDev wiki, espousing up-to-date info
what info? its fucking empty!
>i'm not even sure how you'd opinionate a technical article
giving actual advice and tips instead of copy-pasting dry documentation from Intel. OP is a faggot as usual

>giving actual advice and tips instead of copy-pasting dry documentation from Intel
a lot of the pages are advice/tips, and the wiki and forum users normally recommend looking at the intel/amd docs when you get to a certain level, since it'll just become infinitely more useful
i think one of the most useful things the osdev wiki has to offer is the osdev forums

nvm just understood what you were saying lel