For my tiny OS i want to take keyboard input.
I have some doubts.
1.I tried to take keyboard input. If i press a key once the whole screen fills with the typed character as i have allowed to display the input fro keyboard. I want to take input fro ps2 keyboard. What shall i do?
2. I am receiving break and make codes from port 0x60 is there any better way of doing it?
3. this is not related to the title of this thread. But in my programs if i create a string longer than 17 characters, my OS kernel doesn't work at all. I am compiling my kernel to elf format. I mean in the grub when i type boot it just doesn't go any further.
taking keyboard input for my own OS
taking keyboard input for my own OS
Last edited by hegde1997 on Wed Feb 01, 2012 4:25 am, edited 3 times in total.
Walking my way in making my OS
Re: Writing keyboard driver
Hi,
For 3, we need to at least see your linker script.
Cheers,
Adam
For 3, we need to at least see your linker script.
Cheers,
Adam
Re: Writing keyboard driver
here is my linker script:
ENTRY (loader)
SECTIONS
{
. = 0x00100000;
.text ALIGN (0x1000) :
{
*(.text)
}
.rodata ALIGN (0x1000) :
{
*(.rodata*)
}
.data ALIGN (0x1000) :
{
*(.data)
}
.bss :
{
sbss = .;
*(COMMON)
*(.bss)
ebss = .;
}
}
ENTRY (loader)
SECTIONS
{
. = 0x00100000;
.text ALIGN (0x1000) :
{
*(.text)
}
.rodata ALIGN (0x1000) :
{
*(.rodata*)
}
.data ALIGN (0x1000) :
{
*(.data)
}
.bss :
{
sbss = .;
*(COMMON)
*(.bss)
ebss = .;
}
}
Walking my way in making my OS
Re: taking keyboard input for my own OS
Every good solution is obvious once you've found it.
- Combuster
- Member
- Posts: 9301
- Joined: Wed Oct 18, 2006 3:45 am
- Libera.chat IRC: [com]buster
- Location: On the balcony, where I can actually keep 1½m distance
- Contact:
Re: taking keyboard input for my own OS
Please read the forum rules and learn to follow them (use code tags, search first).