taking keyboard input for my own OS

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
User avatar
hegde1997
Member
Member
Posts: 40
Joined: Mon Jan 30, 2012 7:36 am
Location: Bangalore, India
Contact:

taking keyboard input for my own OS

Post 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< :( :(
Last edited by hegde1997 on Wed Feb 01, 2012 4:25 am, edited 3 times in total.
Walking my way in making my OS
User avatar
AJ
Member
Member
Posts: 2646
Joined: Sun Oct 22, 2006 7:01 am
Location: Devon, UK
Contact:

Re: Writing keyboard driver

Post by AJ »

Hi,

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

Cheers,
Adam
User avatar
hegde1997
Member
Member
Posts: 40
Joined: Mon Jan 30, 2012 7:36 am
Location: Bangalore, India
Contact:

Re: Writing keyboard driver

Post 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 = .;
}
}
Walking my way in making my OS
User avatar
Solar
Member
Member
Posts: 7615
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Re: taking keyboard input for my own OS

Post by Solar »

Every good solution is obvious once you've found it.
User avatar
Combuster
Member
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

Post by Combuster »

Please read the forum rules and learn to follow them (use code tags, search first).
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
Post Reply