Skip to contentSkip to conversation

writing to the videoram

DISCUSSION icepic 2 participants 2 messages Jun 15, 2003 – Jun 16, 2003

lore
Share & tools
lore

icepic

author
#0 lore raw

Hi!

I have a problem.
I want to write directly to the videoram under linux. Because of the realmode i have some problems.. can someone explain how it works?

#1 lore raw
Quoted 8 lines · icepic

Hi!

I have a problem.
I want to write directly to the videoram under linux. Because of the realmode i have some problems.. can someone explain how it works?

Quoted 7 lines

-
To unsubscribe from this list: send the line "unsubscribe linux-assembly" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

realmode ?!?
Hey, on which cpu are you??? ;-)
I guess you are on x86 architecture, so, some explainations:
- x86 have 3 main modes of use: real, virtual and protected (plus a usefull hybrid: flat)
- Linux is on protected mode
- the bootloader (lilo, grub) make the switch from real mode (when you switch on your PC, it is in real-mode, for 8086 compatibility!) to the protected mode.

If you want to write to the video memory, one basic thing would be to write it from the kernel (who have the right to read/write everywhere). From the user-space, you'll have to ask the write access to the kernel.

Could you please ask a more precise question?!?

Fred