hi
my printf function was only able to handle th strings and characters uptill now .. so now i needed it to upgrade it so that it could also show me integer values and hex values ...but i m having a strange problem in that
i m adding the usual vsprintf function to do the work for me but when i just write that into my stdio.c ...
NOTE: i just put the function in stdio.c and havent called it yet from my kernel to show hex values on the screen
on running it gives me a tripple fault with
fetch raw descriptor LDTR.valid=0
bochs error now isnt this strange that i havent called the function yet and still i get this error and what is the relation between that vsprintf and LDT
and when i remove the code from stdio.c it start working fine again
so wat do u think wats causing the problem
thanx for ur help
printf causing problems
- Pype.Clicker
- Member
- Posts: 5964
- Joined: Wed Oct 18, 2006 2:31 am
- Location: In a galaxy, far, far away
- Contact:
Re:printf causing problems
variable things like
- wrong size information for the kernel loader (the most common one)
- kernel loader can't access your kernel's _start () function anymore (for instance, you decided _start() will be at offset 0 and by adding a component to your kernel, the stdio.c is now at offset 0 instead of the kernel's bootstrap)
- some mis-initialized pointer pointed to some void locations earlier and now they're pointing to code/sensible data, causing kernel corruptions ... check your pointers, replace every void *p; by void *p=NULL; and make sure you don't follow NULL pointers ...
- Microsoft has embedded a spy-feature in your CPU that recognized you were trying to develop an OS and it is trying to prevent you from doing this -- what ? -- you're under BoCHS -- ::)
-
- Member
- Posts: 1600
- Joined: Wed Oct 18, 2006 11:59 am
- Location: Vienna/Austria
- Contact:
Re:printf causing problems
beeing boxed in isn't that bad, isn't it? coming out again in about 10 seconds is cool after beeing dropped into the cave of tiple fault.
*ggg*
Even winzigweich windows can't compete with that.
stay safe
ps: winzigweich=microsoft
*ggg*
Even winzigweich windows can't compete with that.
stay safe
ps: winzigweich=microsoft
... the osdever formerly known as beyond infinity ...
BlueillusionOS iso image
BlueillusionOS iso image