problem in printf stuff

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.
Tom

Re:problem in printf stuff

Post by Tom »

the ... is for telling GCC that extra aguments supported ( the %d's )

the va_...stuff is for getting what's in those ...'s ( the %d's cur_cursorX/Y )

the out stuff I tested I know it works...(It works better than the one on the OS faw...that had a bug but I fixed it.)

you can't load your kernel at more thatn 9000h in real mode.

So that won't work.
adeelmahmood1

Re:problem in printf stuff

Post by adeelmahmood1 »

okkkk
can u tell me about any tutorial which explains how this extra arguments support works??
for the kernel i m not talking about real mode .. i m talking about Pmode.. if we are in pmode and then load it at 50000000 how we will jump to it .. ?
thanx
Tom

Re:problem in printf stuff

Post by Tom »

you can't use the bios and load the disk while in pmode ;)

Here is at tutorial....there is no tutorial...so you should just c/p my source ( I got that code from Linux 0.1...but reformatted the code to be easier )
adeelmahmood1

Re:problem in printf stuff

Post by adeelmahmood1 »

oh yes u r right i forgot that we load all this stuff while in real mode and then jmp to pmode ..
but what abt the phrase " loading the kernel at 1 meg" which is very common
well lets just keep the message posted may be some one else know any tutorial on this stuff thanx :)
Post Reply