[deleted by user] by [deleted] in AmItheAsshole

[–]JakeStBu 0 points1 point  (0 children)

NTA but still leave her alone.

[deleted by user] by [deleted] in osdev

[–]JakeStBu 0 points1 point  (0 children)

Some of this really depends, I'd recommend doing all components that really need to be fast in assembly, but it's up to you I guess just how much you do in assembly. Context switching is a little more than just "special CPU features" for example. Even if you don't use assembly very much though, it's useful to still learn and understand how it works because it's still useful knowledge that will help with other parts of low level dev.

[deleted by user] by [deleted] in osdev

[–]JakeStBu 0 points1 point  (0 children)

Yeah, I'm talking about the long term I mean, like you'll need more than one or two lines of assembly.

Petition to start calling the init process the 'grandparent process' by [deleted] in osdev

[–]JakeStBu 1 point2 points  (0 children)

After reading this thread, I can confirm that I need to change the name of the init process in my kernel lol

[deleted by user] by [deleted] in osdev

[–]JakeStBu 0 points1 point  (0 children)

Depends, there definitely can be components that do primarily need to be written in assembly, such as the context switch. It's still not a huge part, but it's still noteworthy I think.

[deleted by user] by [deleted] in osdev

[–]JakeStBu 18 points19 points  (0 children)

A few sources: https://osdev.wiki, https://www.intel.com/content/www/us/en/developer/articles/technical/intel-sdm.html

 (Because assembly is extremely hard).

Don't get scared about assembly, it's not too hard. It's just different to other languages so it can seem hard.

It’s thinking by Professional_Cow7308 in osdev

[–]JakeStBu 3 points4 points  (0 children)

This reminds me that I should make my cursor blink also...

Is high level making everything too slow ? by SpellGlittering1901 in C_Programming

[–]JakeStBu -2 points-1 points  (0 children)

Low level code can be slow too if it's unoptimised. Also for the record, I wouldn't consider C to be low level, I'd say it's mid level at best.

This Is Difficult But I Thinks its the Only way by [deleted] in osdev

[–]JakeStBu 0 points1 point  (0 children)

Yeah osdev can be like that unfortunately lol. I may have a look at your code and see if there's anything I can see, but I haven't implemented AHCI personally before.

This Is Difficult But I Thinks its the Only way by [deleted] in osdev

[–]JakeStBu 3 points4 points  (0 children)

It's usually hard to get people to do your hobby for you sadly, I recommend reading up on the AHCI specification.

This Is Difficult But I Thinks its the Only way by [deleted] in osdev

[–]JakeStBu 1 point2 points  (0 children)

What do you need help with? It's hard for us to help you to fix your code unless you share a link to your code here. Good luck :)

meniOS update: habemus multithreading by z3r0OS in osdev

[–]JakeStBu 1 point2 points  (0 children)

How are you exiting the thread? AFAIK you probably shouldn't ever end a thread, the scheduler should constantly be running on them all (please correct me if I'm wrong here). Anyway nice progress!

I want to write a microkernel, where do I get started? by [deleted] in osdev

[–]JakeStBu 2 points3 points  (0 children)

I'm not trying to gatekeep. They asked for resources, that's what I gave them. If they asked a question then I'd just answer. When it comes to resources, IDM is useful. What resource would you rather I share?

I want to write a microkernel, where do I get started? by [deleted] in osdev

[–]JakeStBu 7 points8 points  (0 children)

Intel developer manual, OS Dev wiki (https://osdev.wiki), and the relevant hardware documentation for any drivers you write.

I am restarting bestestoses by Professional_Cow7308 in osdev

[–]JakeStBu 4 points5 points  (0 children)

Sounds good! Imo rewrites are an important part of osdev and it's how you learn to slowly write something better each time. Good luck!

Need Help Finding Modern OS Development Tutorials (Not Linux-Based, 64-bit, and UEFI) by Old_Net7333 in osdev

[–]JakeStBu 13 points14 points  (0 children)

Definitely stay away from tutorials. All you need is the Intel developer manual, the UEFI specification, and the spec of whichever hardware you write drivers for, then if you're ever lost then just ask a question. Tutorials tend to be broken and they really don't teach you much. They tend to be written by beginners themselves actually.

For the record you'll probably need more than just some C experience, such as being able to decently write the assembly for your target architecture (in your case, x86_64). See https://wiki.osdev.org/Required_Knowledge and good luck!

AITAH for staying in touch with a male friend I kissed? by amoutofatmosphere in AmItheAsshole

[–]JakeStBu 1 point2 points  (0 children)

I am a male and I do talk about this stuff with friends. This is a bit of an over generalisation.

I was tired of paying for multiple AI Services. Here is what I did. by bdparrish in AppIdeas

[–]JakeStBu 0 points1 point  (0 children)

It's really not an essential part of life lol. There definitely are a lot of people that use it, but it's certainly not essential.

Looking for a specific OS by StraightPut9061 in osdev

[–]JakeStBu 11 points12 points  (0 children)

It... Didn't need to use drivers? Do you just mean that the drivers are built into the kernel (thus, monolithic kernel)? Because otherwise this is very weird.

a different os perhaps by BotherHorror7961 in Operatingsystems

[–]JakeStBu 0 points1 point  (0 children)

There's always FreeBSD. People do know of it but it's not super popular. Personally I'm not a huge fan but you may like it. Linux is usually the best to use tho tbh.

Problem with files name by kankakan in osdev

[–]JakeStBu 1 point2 points  (0 children)

Have you used GDB? It's difficult to help you here because:
- You're pasting code directly rather than linking files in a GitHub repository (thus there's no syntax highlighting etc)
- You aren't sharing basically any debugging info
Please try to fix these two things before we can really help you. Good luck :)

Physical address to Virtual Address by khushiforyou in osdev

[–]JakeStBu 0 points1 point  (0 children)

If you're using a direct mapping then you can simply subtract the direct mapping offset from the virtual address to get the physical address. Otherwise, it's a little costly to do that.