Search found 12 matches
- Tue Feb 16, 2010 2:30 pm
- Forum: Beginning OS Development
- Topic: GCC/Binutils, I want to help
- Replies: 5
- Views: 28912
Re: GCC/Binutils, I want to help
If you want help on gcc/binutils you can visit wiki.osdev.org, there you will have all the answers.
- Tue Jun 30, 2009 1:54 pm
- Forum: Beginning OS Development
- Topic: compailing tutorials in linux
- Replies: 5
- Views: 28371
Re: compailing tutorials in linux
// Second you need gcc, makefile, ld, ld script and asm competences The native Linux gcc/binutils can't produce PE executables, you'll need MinGW and you'll have to rewrite the whole inline assembly code. It was implicit For my part it was in binary format under cygwin. Binary format is less compli...
- Wed Jun 24, 2009 1:53 pm
- Forum: Beginning OS Development
- Topic: compailing tutorials in linux
- Replies: 5
- Views: 28371
Re: compailing tutorials in linux
First tutorials are made for windows compiler
So you must change some code (few) to do it
Second you need gcc, makefile, ld, ld script and asm competences
Ready, go
So you must change some code (few) to do it
Second you need gcc, makefile, ld, ld script and asm competences
Ready, go
- Wed Jun 24, 2009 6:59 am
- Forum: Beginning OS Development
- Topic: Questions about the future of the tutorial.
- Replies: 11
- Views: 54928
Re: Questions about the future of the tutorial.
This requires you to write a function that retrieves the list of modes and examines them one by one, searching for the one with specifications matching yours. It's exactly what i do and what i mean by "- get mode info " It work fine , thanks ! http://dnaworkstation.codeplex.com For bank switch, may...
- Mon Jun 22, 2009 6:47 am
- Forum: Beginning OS Development
- Topic: Questions about the future of the tutorial.
- Replies: 11
- Views: 54928
Re: Questions about the future of the tutorial.
I was using Eclipse/cygwin/gcc before using Visual studio. At this time i have adapted the brokenthorn tutorial serie. Thing you have to do is - build a cross compiler (elf) : cywin build win32 executable format and ld is unable to do some opération on this format (under cywin) - change binary ouput...
- Sat Jun 13, 2009 1:12 pm
- Forum: Beginning OS Development
- Topic: Large file bug in Stage2 ?
- Replies: 8
- Views: 43021
Re: Large file bug in Stage2 ?
Ok when int 13 function 02 (read sector ) is called, it need ES:BX point to a buffer
At first sector read the value is 0x0000:0x3000, and when your kernel file is more 51 kb (0xFFFF - 0x3000)
you write memory at 0x0000:0x0000
Solution is to add BX/16 to ES and reset BX before continue
At first sector read the value is 0x0000:0x3000, and when your kernel file is more 51 kb (0xFFFF - 0x3000)
you write memory at 0x0000:0x0000
Solution is to add BX/16 to ES and reset BX before continue
- Thu Jun 11, 2009 2:23 pm
- Forum: Beginning OS Development
- Topic: Large file bug in Stage2 ?
- Replies: 8
- Views: 43021
Re: Large file bug in Stage2 ?
seems to be a segment overflow
ES: 0x0000 | BX: 0xFE00
before call int 13h
0xFE00 + 0x200 > 0xFFFF
ES: 0x0000 | BX: 0xFE00
before call int 13h
0xFE00 + 0x200 > 0xFFFF
- Thu Jun 11, 2009 1:07 pm
- Forum: Beginning OS Development
- Topic: Large file bug in Stage2 ?
- Replies: 8
- Views: 43021
Re: Large file bug in Stage2 ?
Sorry, bad COPY/PASTE 2 lines up here ... int 0x13 ; invoke BIOS jnc .SUCCESS ; test for read error xor ax, ax ; BIOS reset disk int 0x13 ; invoke BIOS ... But i think the error comme before in LoadFile I try a solution and give you the result
- Thu Jun 11, 2009 8:49 am
- Forum: Beginning OS Development
- Topic: Large file bug in Stage2 ?
- Replies: 8
- Views: 43021
Re: Large file bug in Stage2 ?
I have made some test whatever the size (after critical size limit), the ReadSectors function fail at the same place and same parameters ...... jnc .SUCCESS ; test for read error xor ax, ax ; BIOS reset disk int 0x13 ; invoke BIOS dec di ; decrement error counter ..... with this parameters LBA : 0x8...
- Wed Jun 10, 2009 4:54 pm
- Forum: Beginning OS Development
- Topic: Doubt in indexing FAT Code
- Replies: 1
- Views: 14274
Re: Doubt in indexing FAT Code
Take dx = 0xABCD
with : and dx, 0000111111111111b
then dx = 0x0BCD --> low 12 bits of 0xABCD
with : shr dx, 0x0004
then dx =0x0ABC --> hight 12 bit of 0xABCD
You have two entry of FAT 12 in three byte
three byte 0x01 0x23 0x45 --> 012345
Entry one
Entry two
with : and dx, 0000111111111111b
then dx = 0x0BCD --> low 12 bits of 0xABCD
with : shr dx, 0x0004
then dx =0x0ABC --> hight 12 bit of 0xABCD
You have two entry of FAT 12 in three byte
three byte 0x01 0x23 0x45 --> 012345
Entry one
Entry two
- Wed Jun 10, 2009 6:35 am
- Forum: Beginning OS Development
- Topic: Large file bug in Stage2 ?
- Replies: 8
- Views: 43021
Re: Large file bug in Stage2 ?
All right , what is your kernel size ?Wolf wrote:but it has never happened to me
Done, have your made test with step decribed in my first post ?Wolf wrote:Post any of your findings here, would you?
- Tue Jun 09, 2009 7:10 am
- Forum: Beginning OS Development
- Topic: Large file bug in Stage2 ?
- Replies: 8
- Views: 43021
Large file bug in Stage2 ?
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 ar...