Page 1 of 1

taking keyboard input for my own OS

Posted: Mon Jan 30, 2012 8:18 am
by hegde1997
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.
:( :!: :?: [-o< :( :(

Re: Writing keyboard driver

Posted: Mon Jan 30, 2012 1:33 pm
by AJ
Hi,

For 3, we need to at least see your linker script.

Cheers,
Adam

Re: Writing keyboard driver

Posted: Wed Feb 01, 2012 4:16 am
by hegde1997
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 = .;
}
}

Re: taking keyboard input for my own OS

Posted: Wed Feb 01, 2012 4:49 am
by Solar

Re: taking keyboard input for my own OS

Posted: Wed Feb 01, 2012 4:54 am
by Combuster
Please read the forum rules and learn to follow them (use code tags, search first).