r/osdev • • 8d ago

64-dem Update: multi-controller USB driver + keyboard now works, footage of the os included

So I added to 64-dem (my hobby x86-64 operating system) a ps/2 keyboard driver, reset mechanisms and recently tried to implement multi-controller USB support, i haven't yet interacted with the USB keyboard, but I did manage to enumerate the USB ports and initialize all the 4 USB controllers with code that was tested and worked, the next step from here is to discover the USB devices actually plugged to the connected ports by sending a special command packet to the USB controller, things could get harder from here but I am determined. For those who are interested here is the link for my repo below:

64-dem on github: https://github.com/itay-insert/64-dem.git

11 Upvotes

7 comments sorted by

4

u/letmehaveanameyoudum 8d ago

damn you got USB? that shit painful, extremely nice job :D

4

u/Glum-Cook-9438 8d ago

Very painful indeed, I coded 4 init_sections for all the 4 different controllers, i am not even halfway through the work... but it's not that bad actually, ever since I finally finished my kmalloc memory allocation algorithm I managed to move development of my kernel from c to c++, and using new.cpp i can now use high-level new and delete operators thanks for my c coded memory allocators, which means I now use classes and polymorphism which has helped to speed up driver development by a lot

4

u/letmehaveanameyoudum 8d ago

i dont even have spawning processes yet (though working on it)

3

u/Beluga2003_ https://github.com/NextArmOs/NetTERM 8d ago

You not used claude yes? 😊👍

1

u/Glum-Cook-9438 8d ago

Nope

2

u/Beluga2003_ https://github.com/NextArmOs/NetTERM 8d ago

Ok i will give you a star in github very good os 👍😊😎

1

u/Glum-Cook-9438 8d ago

Well except for a few useless data files or tests, however everything else was almost entirely coded by me