DEV Community

Cover image for Writing My Own Keyboard Driver

Writing My Own Keyboard Driver

Frank Rosner on November 15, 2020

Introduction In the previous post we implemented a video driver so that we are able to print text on the screen. For an operating system...
Collapse
 
shrihankp profile image
Shrihan

Writing a keyboard driver using the keyboard 😁

Collapse
 
frosnerd profile image
Frank Rosner • Edited

Keyboardception. Not as impressive as writing the C compiler in C, though :D

Collapse
 
shrihankp profile image
Shrihan • Edited

Oh, you mean Compilerception 😂

Thread Thread
 
frosnerd profile image
Frank Rosner

Collapse
 
max_steel_dffc326da898fdd profile image
Max Steel

I don't know if this tutorial is still being maintained, but I have a problem where when I call asm volatile("sti"); the kernel boots but keeps restarting. I am using windows 11, any help would be appreciated.

Collapse
 
simoes profile image
Guilherme Giácomo Simões

Well, afeter i implement this step , my screen of the qemu is blink:

Collapse
 
anshu123code profile image
Anshu123code

no able to understand irq_handler code

Collapse
 
kaktuzneo profile image
Hydrogen

Please get a source code.

Collapse
 
anshu123code profile image
Anshu123code

typedef void (*isr_t)(registers_t *);
wht do this line mean

Collapse
 
hilcon222 profile image
hilcon222

it means that if i say
isr_t huh;
i mean
void (*huh)(registers_t *);

Collapse
 
wangxy01 profile image
jjboy

if (r->int_no < 40) {
port_byte_out(0xA0, 0x20); // secondary EOI
}

maybe be >=40