print char on screen from Linux

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
belhifet
Posts: 4
Joined: Fri Oct 20, 2006 10:02 pm

print char on screen from Linux

Post by belhifet »

Linux doesn't let me access memory address 0xb8000 and therefore, I cannot implement my own putchar() function.

How would I print a char on the screen in Linux without using any system calls or glibc?

I've seen vm86, could someone give an example and explain how it works?
Also, is it possible to do it with another way (without vm86)?

edit: Could I possibly write my own system call that writes to the memory address 0xb8000 and make it work? Or would the kernel still protect that address?
User avatar
kataklinger
Member
Member
Posts: 381
Joined: Fri Nov 04, 2005 12:00 am
Location: Serbia

Post by kataklinger »

Well I'm not a Linux expert (not even a user) but I think you cannot access video memory from user code becase that it's marked as a system memory, so you must be in kernel mode to use it!
Post Reply