Large file bug in Stage2 ?
Posted: Tue Jun 09, 2009 7:10 am
Hello
I use Brokenthorn tutorials to devellop my os, specialy the boot (stage 1 and stage 2).
Recently, while testing my new add on my os, it hang with no reason.
With a little investigation, i found it was because my kernel was "too big".
At a certain size, if i add some function or data which are making growing up the size, the system hang.
The problem is in stage 2, Fat12-> LoadFile, and more precisely maybe in Floppy16->ReadSector
Because i have modified stage2 for my OS, i have made some other test.
- take a BrokenThorn Tutorial demo (last for example)
- build project, test it : it works
- just had some data in a source file , ex: char data[n] = { 0,0,0,0,0,0, ...n};
increase executable size untill 50-55 kb
- build project , test it : it fails
It just a size problem, i think
Have you ever had same problem ?
Bug or not ?
I investigate more to have a solution, but if you had one, you're welcome
I use Brokenthorn tutorials to devellop my os, specialy the boot (stage 1 and stage 2).
Recently, while testing my new add on my os, it hang with no reason.
With a little investigation, i found it was because my kernel was "too big".
At a certain size, if i add some function or data which are making growing up the size, the system hang.
The problem is in stage 2, Fat12-> LoadFile, and more precisely maybe in Floppy16->ReadSector
Because i have modified stage2 for my OS, i have made some other test.
- take a BrokenThorn Tutorial demo (last for example)
- build project, test it : it works
- just had some data in a source file , ex: char data[n] = { 0,0,0,0,0,0, ...n};
increase executable size untill 50-55 kb
- build project , test it : it fails
It just a size problem, i think
Have you ever had same problem ?
Bug or not ?
I investigate more to have a solution, but if you had one, you're welcome