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.
gdt:
dw 0, 0, 0, 0
db 0xFF
db 0xFF
db 0x00
db 0x00
db 0x00
db 10011010b
db 0xCF
db 0x00
db 0xFF
db 0xFF
db 0x00
db 0x00
db 0x00
db 10010010b
db 0xCF
db 0x00
db 0xFF
db 0xFF
db 0x00
db 0x00
db 0x00
db 11111010b
db 0xCF
db 0x00
db 0xFF
db 0xFF
db 0x00
db 0x00
db 0x00
db 11110010b
db 0xCF
db 0x00
db 0x00
db 0x00
db 0x00
db 0x00
db 0x00
db 0; 10001001b
db 0; 01000000b
db 0x00
;; code segment for realmode
db 0xFF, 0xFF
db 0, 0, 0
db 0x9A
db 0x8F, 0
;; data segment for realmode
db 0xFF, 0xFF
db 0, 0, 0
db 0x92
db 0x8F, 0
gd_reg:
dw 8192 ;<-- (with paging, should this be 4096?)
dd gdt
I figured out what I should do. I will just enable 0x115 mode, enable paging, and map the LFB address to an address accessible to my kernel. I have a pretty good idea of what needs to be done and I already converted my loader to do the VESA mode switching part, so I am hoping that I can pull this off and start working with some prettier colors real soon. thanks anyway for looking at my code.
This is all like
"lets build the skyscraper because I couldn't be bothered to fix the fundament supporting it"
in other words: Bad Idea(tm)
"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 ]
Combuster wrote:This is all like "lets build the skyscraper because I couldn't be bothered to fix the fundament supporting it"
I thought it was more like "let's build a skyscraper because I failed to build a hut", but yeah, that is a bad idea. Somehow, however, I think the OP cannot be bothered, and will start the thread "VESA in Pmode Not Working".
Actually smart mouth, I could start a thread with "Vesa in Pmode is working!!" And, all I asked for was some help, and I didn't get it because your moderator was too focused on my posting technique rather than my question and no one else offered up any suggestions, so I researched my own way, found it, implemented it, and now I don't need any help; case closed. Have a nice day.
In every post I have posted suggestions as to what might be causing the problem. I am also trying to make your posting be more productive in the ability to get a response (which includes stripping emotional sentences, including source code - full source code - leaving out details is exactly what makes us miss the problem).
What you decided to post afterwards is not helpful to anybody and only constitutes a fight, so be careful with that in the future.
@jal:
There are sometimes when your freudian skills are better left unspoken for the greater good (i.e. not to offend people).
Thread locked
"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 ]