festival-developpers Mailing List for festival
Status: Pre-Alpha
Brought to you by:
jtlb
You can subscribe to this list here.
2007 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(28) |
---|
From: <gre...@fr...> - 2007-12-27 11:16:04
|
Oops, I miss to add the getDiskInfo function in the storagecontroller class : DiskInfo storagecontroller::getDiskInfo(uint diskId) It returns some information on the disk specified by diskId. NOTE : If diskId is invalid (the disk doesn't exist), DiskInfo::diskId must be equal to 0. Of course, this is a pure virtual function. Greg |
From: <gre...@fr...> - 2007-12-26 16:39:56
|
Merry christmas and happy new year ! I fixed some bugs in tree class :) Greg |
From: seba f. <seb...@gm...> - 2007-12-22 03:52:20
|
Ok, i will do it, merry christmas and happy new year to everyone. I ll be absent on January because im going on holidays. Seba |
From: jt.lb <jt...@la...> - 2007-12-21 21:59:27
|
i suggest seba to make a login on our website, i'll aske the webmaster to g= ive him editing rights. One of the festival goal is to learn about operatin= g system ans to explain to our visitors how an operating system and specifi= cally festival works. =20 Note that i wont be here during the holydays. so merry christmass! if i do = not see you again jtlb Cr=C3=A9ez votre adresse =C3=A9lectronique pr=C3=A9n...@la...=20 1 Go d'espace de stockage, anti-spam et anti-virus int=C3=A9gr=C3=A9s. |
From: <jt...@la...> - 2007-12-20 08:56:29
|
we will have to reorganize the sources this WE, i'll phone you. I found eno= ugh documentation to start coding an ata/atapi controller jtlb Cr=C3=A9ez votre adresse =C3=A9lectronique pr=C3=A9n...@la...=20 1 Go d'espace de stockage, anti-spam et anti-virus int=C3=A9gr=C3=A9s. |
From: <gre...@fr...> - 2007-12-18 18:00:37
|
So I commited some modfication. I fixed a bug in tree class rotation functions. I added storagecontroller.h, this is the current version. I hesitate to make a subdirectory controller in include directory, what do you think about it ? Greg |
From: seba f. <seb...@gm...> - 2007-12-17 17:53:26
|
I dont know any "trick" but i check memsetX functions and i recommend to write them in asm code unsigned long *memsetl(unsigned long *dest,unsigned long val,size_t count){ unsigned long ret; _asm_ ("cld\n\t" "rep\n\t" "stosl" : "=D" (ret) : "c" (count), "a" (val), "D" (dest) : "%ecx", "%edi" ); return ret; } In order to change the other memsetX functions change stosl to stosw(memsetw) or stosb(memsetb). I think that dest may be an unsigned long because it is a dir(32bits) so change prototype please. |
From: <jt...@la...> - 2007-12-17 13:05:34
|
good! to set mem to 0, use memsetl() which uses a long integer instead of a= single byte. Seba, do you know any other "trick" to do it? jtlb Cr=C3=A9ez votre adresse =C3=A9lectronique pr=C3=A9n...@la...=20 1 Go d'espace de stockage, anti-spam et anti-virus int=C3=A9gr=C3=A9s. |
From: <gre...@fr...> - 2007-12-16 20:48:17
|
Hello, I have found and fix some bug in the tree class. I will do a commit in trunk in next days. I will also add filehandle.h header. I have a question. What function could I use to set a memory region to zero ? I think there is a better way than using a loop and do it byte by byte. Greg |
From: <jt...@la...> - 2007-12-13 09:04:22
|
please do not keep all the previous messages in you answer: when they are t= oo big i get a message to ask me if i agree to leave this message!! jtlb Cr=C3=A9ez votre adresse =C3=A9lectronique pr=C3=A9n...@la...=20 1 Go d'espace de stockage, anti-spam et anti-virus int=C3=A9gr=C3=A9s. |
From: <jt...@la...> - 2007-12-12 17:10:44
|
I definitively agree wth your idea with cygwin greg. Could you check my doc= s please? To every one, attention please: we will keep using the current start.asm NO= T the start.s. Start.s is now schedule for festival 0.2 for information, 0.1 will: -load and execute statically linked elf programs -provide a simple kernel api -provide the build gnu tools if possible -read floppies in 0.2, we wil port our buil envirronement to festival and start adding som= e codecs in festival(multimedia operating system!!!) jtlb > Message du 11/12/07 19:16 > De : "Gr=C3=A9goire" > A : fes...@li... > Copie =C3=A0 : > Objet : Re: [Festival-developpers] rewrite asm code > > Hello, I have search for stack problem when using start.s In my search, I= have remove the start of start.s (start, multiboot header and stublet) and= the end of start.asm I have compile and link the two to the kernel. And It= fix the problem of the stack, so the problem is at the start of start.s, I= think that there is a problem in the multiboot header (size, alignement ..= .) and so Grub don't load the kernel correctly, but I am not able to say wh= at. But with this manipulation, the stack problem is fix and functions can = return but when interruption are enable in src/kernel.cpp:27, the interrupt= ion isr14 (page fault I think) is call, and it made an infinity loop (isr14= then isr_common_stub and isr14 and isr_common_stub...). Another possible = cause of the problem could be that the linker script scripts/link.ld doesn'= t work correctly with start.s, see it ! jt, I have reinstall Windows Vist= a, do you want that I try to install Cygwin, compile gcc to cross-compile e= lf on Windows, and compile gdb for elf support on Windows. And then, I will= write some docs on compiling and debugging Festival on Windows to help use= rs who have made the mistake to use Windows ... Greg Le lundi 10 d=C3= =A9cembre 2007 =C3=A0 17:55 -0500, seba fernandez a =C3=A9crit : > Thank yo= u, i ll try to find the error. I develop on Debian with Gnu > binutils and = Gcc, i ve never used qemu to debug a program but this is > a good moment to= learn. > > On Dec 10, 2007 4:08 AM, < jt...@la...> wrote: > = hello, i will make a doc on debugging festival on our website, > b= ut for the moment, load it into qemu with "-s" on the command > lin= e. this starts the internal gdbserver. open a new terminel > and op= en gdb. > type "file /path/to/your/binary/festival.os" then "targe= t > remote localhost:1234" and finaly type c + return in gdb; It >= is only possible to do it in command line. > I ca not expl= ain you in detail this method since you did not > tell us what is y= our devellopment environnement(OS, GCC > version, ...) > = > For the moment it is much more important for us to get a > = working floppy driver than the gnu/am syntax! > > jtlb >= > > Message du 10/12/07 04:56 > = > > De : "seba fernandez" > > A : festival= -de...@li... > > Copie =C3=A0 : > = > Objet : Re: [Festival-developpers] rewrite asm code > = > > > > > that= looks as the ret adress is bad so i ll check > the push/po= p instructions, can you tell me how to > debug the kernel c= ode or can give me a link from where > i can read?, thank y= ou > > > > > > = > On Dec 8, 2007 1:48 PM, Gr=C3=A9goire < > = gre...@fr...> wrote: > > > = > I compile start.s sucessful, but the = kernel > crashes at runtime : > = > I have a strange behaviour when it calls > = function : > > In function mem_install in memory.cp= p, the > function get_mem_size is > = > called : > > (gdb) disassemble mem_insta= ll > > Dump of assembler code for function > = _Z11mem_installP14multiboot_info: > = > 0x00102196 <_Z11mem_installP14multiboot_info > = +0>: push %ebp > > 0x00102197 <_Z11mem_i= nstallP14multiboot_info > +1>: mov %esp,%= ebp > > 0x00102199 <_Z11mem_installP14multiboot_in= fo > +3>: sub $0x38,% > = > esp > > 0x0010219c <_Z11mem_installP14mul= tiboot_info > +6>: movb > = > $0x1,0xffffffd7(%ebp) > > 0x001021a0 <_Z11m= em_installP14multiboot_info > +10>: mov 0x= 10b1e8, > > %eax > > 0x001= 021a5 <_Z11mem_installP14multiboot_info > +15>: = shl $0xa,%eax > > 0x001021a8 <_Z11mem_install= P14multiboot_info > +18>: mov % > = > eax,0x10b1e8 > > 0x001021ad <_Z11= mem_installP14multiboot_info > +23>: pushl 0= x8(%ebp) > > 0x001021b0 <_Z11mem_installP14multibo= ot_info > +26>: call 0x10210c > = > <_Z12get_mem_sizeP14multiboot_info> > = > 0x001021b5 <_Z11mem_installP14multiboot_info > = +31>: add $0x4,%esp > > > = > Just before the call at address 0x001021ad, > = I have : > > (gdb) x/4 $esp > = > 0xfffffd60: 0x0000c66c 0x00000000 > = 0x00000000 > > 0x3030ff00 > = > (gdb) x/4 $esp-4 > > 0xfffffd5c: = 0x38100078 0x0000c66c > 0x00000000 > = > 0x00000000 > > (gdb) x/4 $e= sp-8 > > 0xfffffd58: 0x18181818 0x38100078= > 0x0000c66c > > 0x0= 0000000 > > And after > > (= gdb) next > > get_mem_size (info=3D0x38100078) at >= src/memory.cpp:509 > > 50= 9 unsigned long size =3D 0; > > (gdb) x= /4 $esp > > 0xfffffd58: 0x18181818 0x38100= 078 > 0x0000c66c > > 0= x00000000 > > > > the call= add 8 to the stack pointer (the > size of the retu= rn address and > > the size of the pointer to the = > multiboot_info_t structure. > = > But it have any effect to the values in the > = stack : > > It must be 0x001021b5 not 0x18181818,= and > 0x6060f060 (the value of the > = > pointer info) not 0x38100078 > > So = at the end of the function it try to > execute some= code at > > 0x18181818 . > = > > > When I use start.asm and not start.s, it > = works fine and I have : > >= > > (gdb) > > 49 = mem_amont =3D get_mem_size(info); > > (gdb) x/5xw= $esp > > > 0x10ad60 : = 0x00000000 0x00000000 > 0x00000000 > = > 0x01000000 > > 0x10ad70 : 0x= 00000000 > > > (gdb) info = register sp > > (gdb) info register esp > = > esp 0x10ad60 0x10ad60 > = > (gdb) stepi > > 0x00102218 49 me= m_amont =3D > get_mem_size(info); > = > (gdb) > > get_mem_size (info=3D0x2e240) = at > src/memory.cpp:509 > >= 509 unsigned long size =3D 0; > > (gd= b) x/5xw $esp > > > 0x10ad= 58 : 0x0010221d 0x0002e240 > 0x00000000 = > > 0x00000000 > > 0x10ad6= 8 : 0x00000000 > > > = > (gdb) > > > = > Greg > > > = > Le vendredi 07 d=C3=A9cembre 2007 =C3=A0 17:09 -0500, > = seba fernandez a =C3=A9crit : > > > = > > you have to change extensi= on to .s and you > can compile without linking > = > > with "as start.s" or with "gcc -c start.s" > = > > > > > On Dec 7, 2007 1:00 = PM, Gr=C3=A9goire > wrote: > = > > How could I compile start.asm with > = gcc asm syntax using gcc ? > > > Greg >= > > > > > Le vendr= edi 07 d=C3=A9cembre 2007 =C3=A0 > 10:08 +0100, jt.= lb...@la... > > > a =C3=A9crit : > = > > > > > > well, i see= , you've done it... > very good! but we can not > = > > check it > > > = > since we do not understand this > syntax! = > > > > greg, can you test it and edit > = the makefile please? > > > = > > > > > > = > > > > > > > > = > > > > Message du 07/12/07 > = 08:47 > > > > > De : "seba fernan= dez" > > > > > A : > = fes...@li... > = > > > > Copie =C3=A0 : > > > = > > Objet : Re: > [Festival-developpe= rs] rewrite asm > > > code > = > > > > > > > > = > > > > > > I ve rewritten= all the > start.asm to gnu syntax, id > = > > like > > > > = someone to check the > code(it compiles but who= > > > knows). > = > > > > About the sotrage > control= ler interface i'd like > > > to know if > = > > > that is the driver > = interface or the kernel > > > = interface, i didnt > > > > unde= rstand > > > > > > = > > > > > > > On De= c 6, 2007 1:01 PM, > Gr=C3=A9goire > = > > wrote: > > > > = > > > > > > > > = > I think that it > is a go= od idea, > > > > > but I ha= te the > GNU syntax, > > >= > > what does jtlb > think= about that ? > > > > > = greg > > > > > > = > > > > Le mercredi 05 > = d=C3=A9cembre 2007 =C3=A0 14:58 > > = > -0500, seba > > > > = fernandez a > =C3=A9crit : > = > > > > > > > = > > > > > > In order to > = facilitate the porting of the > = > > code, i > > > > = suggest to > rewrite > = > > > > > the asm code > = to Gnu syntax. > > > > > = > Another > reason is that gcc only > = > > "understand" > > > = > inline gnu asm. > > > > = > > > > > > = > > > > > > > = > > > > > ------------= ------------------------------------------------------------- > = > > > > > SF.Net email > = is sponsored by: The Future > > > = of Linux > > > > Busines= s White > Paper > > > = > > > from > Novell. From the d= esktop to the > > > data center, > = > > > Linux is going > = > > > > > mainstream. > = Let it simplify your IT > > > f= uture. > > > > > > > = > > > > > > > = http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 > = > > > > > > = > > > _________________________________________= ______ > > > > > F= estival-developpers mailing list > > > > >= Fes...@li... > = > > > > > > > = https://lists.sourceforge.net/lists/listinfo/festival-develo= ppers > > > > > > = > > > > > > = > > > > > > > = > > > > > > = > > > ----------------------------------------= --------------------------------- > > > > = > SF.Net email > is sponsored by: >= > > > > Check out the > = new SourceForge.net > > > = Marketplace. > > > > >= It's the best > place to buy or sell > = > > services for > > > = > > just about > anything Open So= urce. > > > > > > = > > > http://sourceforge.net/servic= es/buy/index.php > > > > > = > > > > __________________= _____________________________ > > > > = > > Festival-developpers mailing list >= > > > > > = Fes...@li... > = > > > > > > > > >= > > > https://lists.source= forge.net/lists/listinfo/festival-developpers > > >= > > > > > > > = > > > > > > > = > > > > > > > [ start.asm (= 13.5 > Ko) ] > > > = > > [ (pas de nom de > fichier) (0.3 Ko) ] = > > > > > [ (pas de nom de > = fichier) ( 0.2 Ko) ] > > > = > > > > > > > > = > > > > > > = > > > > > > > > = > > > > > > > > = > > > Cr=C3=A9ez votre adresse =C3=A9lectronique > = pr=C3=A9nom.nom @laposte.net > >= > > 1 Go d'espace de stockage, > anti-spam= et anti-virus > > > int=C3=A9gr=C3=A9s. > = > > > > > > > = --------------------------------------------------------= ----------------- > > > > SF.Net email is = sponsored by: > > > > Check out the new > = SourceForge.net Marketplace. > = > > > It's the best place to buy or > se= ll services for > > > > just about anything= Open > Source. > > > = > > http://sourceforge.net/services/buy/index.p= hp > > > > > ______= _________________________________________ > > > = Festival-developpers mailing list > > > > = Fes...@li... > = > > > https://lists.sourceforge.net= /lists/listinfo/festival-developpers > > > > = > > > > > > = > > > ------------------------------------------= ------------------------------- > > > SF.N= et email is sponsored by: > > > Check out = the new SourceForge.net > Marketplace. > = > > It's the best place to buy or sell > = services for > > > just about a= nything Open Source. > > > > = http://sourceforge.net/services/buy/index.php > = > > > _____________________________________________= __ > > > Festival-developpers mailing list = > > > > Festival-developpe= rs...@li... > > > > = https://lists.sourceforge.net/lists/listinfo/festival-developpers > = > > > > > > = > > > ------------------------------------= ------------------------------------- > > > SF.Net = email is sponsored by: > > > Check out the new Sou= rceForge.net > Marketplace. > = > > It's the best place to buy or sell > service= s for > > > just about anything Open Source. > = > > > http://sourceforge.net/s= ervices/buy/index.php > > > > = _______________________________________________ Festival-developpers mai= ling list Fes...@li... https://lists.sourcefo= rge.net/lists/listinfo/festival-developpers > > >= > > = > > -------------------------------------------= ------------------------------ > > SF.Net email is = sponsored by: > > Check out the new SourceForge.net= > Marketplace. > > It's th= e best place to buy or sell services > for > = > just about anything Open Source. > = > > http://sourceforge.net/services/buy/index.= php > > > _________________= ______________________________ > > Festival-develo= ppers mailing list > > Festival-developpers@lists.= sourceforge.net > > > https= ://lists.sourceforge.net/lists/listinfo/festival-developpers > = > > > > > = > > > > > [ (pas de nom de fichier)= (0.3 Ko) ] > > [ (pas de nom de fichier) ( 0.2 Ko) ] > = > > > > > > > = > > Cr=C3=A9ez votre adresse =C3=A9lectronique pr= =C3=A9n...@la... > 1 Go d'espace de stockage, anti-spam e= t anti-virus int=C3=A9gr=C3=A9s. > > > ----------= --------------------------------------------------------------- > S= F.Net email is sponsored by: > Check out the new SourceForge.net Ma= rketplace. > It's the best place to buy or sell services for > = just about anything Open Source. > http://sourceforge.net/serv= ices/buy/index.php > ______________________________________________= _ > Festival-developpers mailing list > Festival-developpe= rs...@li... > https://lists.sourceforge.net/lists/list= info/festival-developpers > > > ---------------------------------= ---------------------------------------- > SF.Net email is sponsored by: > = Check out the new SourceForge.net Marketplace. > It's the best place to buy= or sell services for > just about anything Open Source. > http://sourcefor= ge.net/services/buy/index.php > ___________________________________________= ____ Festival-developpers mailing list Fes...@li...urcefor= ge.net https://lists.sourceforge.net/lists/listinfo/festival-developpers = ------------------------------------------------------------------------- = SF.Net email is sponsored by: Check out the new SourceForge.net Marketplace= . It's the best place to buy or sell services for just about anything Open = Source. http://sourceforge.net/services/buy/index.php _____________________= __________________________ Festival-developpers mailing list Festival-devel= op...@li... https://lists.sourceforge.net/lists/listinfo/f= estival-developpers=20 Cr=C3=A9ez votre adresse =C3=A9lectronique pr=C3=A9n...@la...=20 1 Go d'espace de stockage, anti-spam et anti-virus int=C3=A9gr=C3=A9s. |
From: <gre...@fr...> - 2007-12-11 18:16:35
|
Hello, I have search for stack problem when using start.s In my search, I have remove the start of start.s (start, multiboot header and stublet) and the end of start.asm I have compile and link the two to the kernel. And It fix the problem of the stack, so the problem is at the start of start.s, I think that there is a problem in the multiboot header (size, alignement ...) and so Grub don't load the kernel correctly, but I am not able to say what. But with this manipulation, the stack problem is fix and functions can return but when interruption are enable in src/kernel.cpp:27, the interruption isr14 (page fault I think) is call, and it made an infinity loop (isr14 then isr_common_stub and isr14 and isr_common_stub...). Another possible cause of the problem could be that the linker script scripts/link.ld doesn't work correctly with start.s, see it ! jt, I have reinstall Windows Vista, do you want that I try to install Cygwin, compile gcc to cross-compile elf on Windows, and compile gdb for elf support on Windows. And then, I will write some docs on compiling and debugging Festival on Windows to help users who have made the mistake to use Windows ... Greg Le lundi 10 décembre 2007 à 17:55 -0500, seba fernandez a écrit : > Thank you, i ll try to find the error. I develop on Debian with Gnu > binutils and Gcc, i ve never used qemu to debug a program but this is > a good moment to learn. > > On Dec 10, 2007 4:08 AM, < jt...@la...> wrote: > hello, i will make a doc on debugging festival on our website, > but for the moment, load it into qemu with "-s" on the command > line. this starts the internal gdbserver. open a new terminel > and open gdb. > type "file /path/to/your/binary/festival.os" then "target > remote localhost:1234" and finaly type c + return in gdb; It > is only possible to do it in command line. > I ca not explain you in detail this method since you did not > tell us what is your devellopment environnement(OS, GCC > version, ...) > > For the moment it is much more important for us to get a > working floppy driver than the gnu/am syntax! > > jtlb > > > Message du 10/12/07 04:56 > > > De : "seba fernandez" > > A : fes...@li... > > Copie à : > > Objet : Re: [Festival-developpers] rewrite asm code > > > > > > that looks as the ret adress is bad so i ll check > the push/pop instructions, can you tell me how to > debug the kernel code or can give me a link from where > i can read?, thank you > > > > > > > On Dec 8, 2007 1:48 PM, Grégoire < > gre...@fr...> wrote: > > > > I compile start.s sucessful, but the kernel > crashes at runtime : > > I have a strange behaviour when it calls > function : > > In function mem_install in memory.cpp, the > function get_mem_size is > > called : > > (gdb) disassemble mem_install > > Dump of assembler code for function > _Z11mem_installP14multiboot_info: > > 0x00102196 <_Z11mem_installP14multiboot_info > +0>: push %ebp > > 0x00102197 <_Z11mem_installP14multiboot_info > +1>: mov %esp,%ebp > > 0x00102199 <_Z11mem_installP14multiboot_info > +3>: sub $0x38,% > > esp > > 0x0010219c <_Z11mem_installP14multiboot_info > +6>: movb > > $0x1,0xffffffd7(%ebp) > > 0x001021a0 <_Z11mem_installP14multiboot_info > +10>: mov 0x10b1e8, > > %eax > > 0x001021a5 <_Z11mem_installP14multiboot_info > +15>: shl $0xa,%eax > > 0x001021a8 <_Z11mem_installP14multiboot_info > +18>: mov % > > eax,0x10b1e8 > > 0x001021ad <_Z11mem_installP14multiboot_info > +23>: pushl 0x8(%ebp) > > 0x001021b0 <_Z11mem_installP14multiboot_info > +26>: call 0x10210c > > <_Z12get_mem_sizeP14multiboot_info> > > 0x001021b5 <_Z11mem_installP14multiboot_info > +31>: add $0x4,%esp > > > > Just before the call at address 0x001021ad, > I have : > > (gdb) x/4 $esp > > 0xfffffd60: 0x0000c66c 0x00000000 > 0x00000000 > > 0x3030ff00 > > (gdb) x/4 $esp-4 > > 0xfffffd5c: 0x38100078 0x0000c66c > 0x00000000 > > 0x00000000 > > (gdb) x/4 $esp-8 > > 0xfffffd58: 0x18181818 0x38100078 > 0x0000c66c > > 0x00000000 > > And after > > (gdb) next > > get_mem_size (info=0x38100078) at > src/memory.cpp:509 > > 509 unsigned long size = 0; > > (gdb) x/4 $esp > > 0xfffffd58: 0x18181818 0x38100078 > 0x0000c66c > > 0x00000000 > > > > the call add 8 to the stack pointer (the > size of the return address and > > the size of the pointer to the > multiboot_info_t structure. > > But it have any effect to the values in the > stack : > > It must be 0x001021b5 not 0x18181818, and > 0x6060f060 (the value of the > > pointer info) not 0x38100078 > > So at the end of the function it try to > execute some code at > > 0x18181818 . > > > > When I use start.asm and not start.s, it > works fine and I have : > > > > (gdb) > > 49 mem_amont = get_mem_size(info); > > (gdb) x/5xw $esp > > > 0x10ad60 : 0x00000000 0x00000000 > 0x00000000 > > 0x01000000 > > 0x10ad70 : 0x00000000 > > > (gdb) info register sp > > (gdb) info register esp > > esp 0x10ad60 0x10ad60 > > (gdb) stepi > > 0x00102218 49 mem_amont = > get_mem_size(info); > > (gdb) > > get_mem_size (info=0x2e240) at > src/memory.cpp:509 > > 509 unsigned long size = 0; > > (gdb) x/5xw $esp > > > 0x10ad58 : 0x0010221d 0x0002e240 > 0x00000000 > > 0x00000000 > > 0x10ad68 : 0x00000000 > > > > (gdb) > > > > Greg > > > > Le vendredi 07 décembre 2007 à 17:09 -0500, > seba fernandez a écrit : > > > > > you have to change extension to .s and you > can compile without linking > > > with "as start.s" or with "gcc -c start.s" > > > > > > On Dec 7, 2007 1:00 PM, Grégoire > <gre...@fr...> wrote: > > > How could I compile start.asm with > gcc asm syntax using gcc ? > > > Greg > > > > > > Le vendredi 07 décembre 2007 à > 10:08 +0100, jt...@la... > > > a écrit : > > > > > > > well, i see, you've done it... > very good! but we can not > > > check it > > > > since we do not understand this > syntax! > > > > greg, can you test it and edit > the makefile please? > > > > > > > > > > > > > > > > > > > > > Message du 07/12/07 > 08:47 > > > > > De : "seba fernandez" > > > > > A : > fes...@li... > > > > > Copie à : > > > > > Objet : Re: > [Festival-developpers] rewrite asm > > > code > > > > > > > > > > > > > > > I ve rewritten all the > start.asm to gnu syntax, id > > > like > > > > someone to check the > code(it compiles but who > > > knows). > > > > > About the sotrage > controller interface i'd like > > > to know if > > > > that is the driver > interface or the kernel > > > interface, i didnt > > > > understand > > > > > > > > > > > > > On Dec 6, 2007 1:01 PM, > Grégoire > > > <gre...@fr... > wrote: > > > > > > > > > > > > > I think that it > is a good idea, > > > > > but I hate the > GNU syntax, > > > > > what does jtlb > think about that ? > > > > > greg > > > > > > > > > > Le mercredi 05 > décembre 2007 à 14:58 > > > -0500, seba > > > > fernandez a > écrit : > > > > > > > > > > > > > > In order to > facilitate the porting of the > > > code, i > > > > suggest to > rewrite > > > > > > the asm code > to Gnu syntax. > > > > > > Another > reason is that gcc only > > > "understand" > > > > inline gnu asm. > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------- > > > > > > SF.Net email > is sponsored by: The Future > > > of Linux > > > > Business White > Paper > > > > > > from > Novell. From the desktop to the > > > data center, > > > > Linux is going > > > > > > mainstream. > Let it simplify your IT > > > future. > > > > > > > > > > > > > > http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 > > > > > > > > > > _______________________________________________ > > > > > Festival-developpers mailing list > > > > > Fes...@li... > > > > > > > > https://lists.sourceforge.net/lists/listinfo/festival-developpers > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------- > > > > > SF.Net email > is sponsored by: > > > > > Check out the > new SourceForge.net > > > Marketplace. > > > > > It's the best > place to buy or sell > > > services for > > > > > just about > anything Open Source. > > > > > > > > > http://sourceforge.net/services/buy/index.php > > > > > > > > > _______________________________________________ > > > > > > Festival-developpers mailing list > > > > > > Fes...@li... > > > > > > > > > > > > > https://lists.sourceforge.net/lists/listinfo/festival-developpers > > > > > > > > > > > > > > > > > > > > > > > > [ start.asm (13.5 > Ko) ] > > > > > [ (pas de nom de > fichier) (0.3 Ko) ] > > > > > [ (pas de nom de > fichier) ( 0.2 Ko) ] > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Créez votre adresse électronique > prénom.nom @laposte.net > > > > 1 Go d'espace de stockage, > anti-spam et anti-virus > > > intégrés. > > > > > > > > ------------------------------------------------------------------------- > > > > SF.Net email is sponsored by: > > > > Check out the new > SourceForge.net Marketplace. > > > > It's the best place to buy or > sell services for > > > > just about anything Open > Source. > > > > > http://sourceforge.net/services/buy/index.php > > > > > _______________________________________________ > > > Festival-developpers mailing list > > > > Fes...@li... > > > > https://lists.sourceforge.net/lists/listinfo/festival-developpers > > > > > > > > > > > > > ------------------------------------------------------------------------- > > > SF.Net email is sponsored by: > > > Check out the new SourceForge.net > Marketplace. > > > It's the best place to buy or sell > services for > > > just about anything Open Source. > > > > http://sourceforge.net/services/buy/index.php > > > > _______________________________________________ > > > Festival-developpers mailing list > > > > Fes...@li... > > > > https://lists.sourceforge.net/lists/listinfo/festival-developpers > > > > > > > > > > ------------------------------------------------------------------------- > > > SF.Net email is sponsored by: > > > Check out the new SourceForge.net > Marketplace. > > > It's the best place to buy or sell > services for > > > just about anything Open Source. > > > > http://sourceforge.net/services/buy/index.php > > > > _______________________________________________ Festival-developpers mailing list Fes...@li... https://lists.sourceforge.net/lists/listinfo/festival-developpers > > > > > > > ------------------------------------------------------------------------- > > SF.Net email is sponsored by: > > Check out the new SourceForge.net > Marketplace. > > It's the best place to buy or sell services > for > > just about anything Open Source. > > > http://sourceforge.net/services/buy/index.php > > > _______________________________________________ > > Festival-developpers mailing list > > Fes...@li... > > > https://lists.sourceforge.net/lists/listinfo/festival-developpers > > > > > > > > > > > [ (pas de nom de fichier) (0.3 Ko) ] > > [ (pas de nom de fichier) ( 0.2 Ko) ] > > > > > > > > > > Créez votre adresse électronique préno...@la... > 1 Go d'espace de stockage, anti-spam et anti-virus intégrés. > > > ------------------------------------------------------------------------- > SF.Net email is sponsored by: > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > Festival-developpers mailing list > Fes...@li... > https://lists.sourceforge.net/lists/listinfo/festival-developpers > > > ------------------------------------------------------------------------- > SF.Net email is sponsored by: > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ Festival-developpers mailing list Fes...@li... https://lists.sourceforge.net/lists/listinfo/festival-developpers |
From: seba f. <seb...@gm...> - 2007-12-10 22:55:11
|
Thank you, i ll try to find the error. I develop on Debian with Gnu binutil= s and Gcc, i ve never used qemu to debug a program but this is a good moment to learn. On Dec 10, 2007 4:08 AM, <jt...@la...> wrote: > hello, i will make a doc on debugging festival on our website, but for th= e > moment, load it into qemu with "-s" on the command line. this starts the > internal gdbserver. open a new terminel and open gdb. > type "file /path/to/your/binary/festival.os" then "target remote > localhost:1234" and finaly type c + return in gdb; It is only possible t= o > do it in command line. > I ca not explain you in detail this method since you did not tell us what > is your devellopment environnement(OS, GCC version, ...) > > For the moment it is much more important for us to get a working floppy > driver than the gnu/am syntax! > > jtlb > > > Message du 10/12/07 04:56 > > De : "seba fernandez" > > A : fes...@li... > > Copie =E0 : > > Objet : Re: [Festival-developpers] rewrite asm code > > > > that looks as the ret adress is bad so i ll check the push/pop > instructions, can you tell me how to debug the kernel code or can give me= a > link from where i can read?, thank you > > > > > > On Dec 8, 2007 1:48 PM, Gr=E9goire < gre...@fr...> wrote: > > > > I compile start.s sucessful, but the kernel crashes at runtime : > > I have a strange behaviour when it calls function : > > In function mem_install in memory.cpp, the function get_mem_size is > > called : > > (gdb) disassemble mem_install > > Dump of assembler code for function _Z11mem_installP14multiboot_info: > > 0x00102196 <_Z11mem_installP14multiboot_info+0>: push %ebp > > 0x00102197 <_Z11mem_installP14multiboot_info+1>: mov %esp,%eb= p > > > 0x00102199 <_Z11mem_installP14multiboot_info+3>: sub $0x38,% > > esp > > 0x0010219c <_Z11mem_installP14multiboot_info+6>: movb > > $0x1,0xffffffd7(%ebp) > > 0x001021a0 <_Z11mem_installP14multiboot_info+10>: mov 0x10b1e8= , > > > %eax > > 0x001021a5 <_Z11mem_installP14multiboot_info+15>: shl $0xa,%ea= x > > 0x001021a8 <_Z11mem_installP14multiboot_info+18>: mov % > > eax,0x10b1e8 > > 0x001021ad <_Z11mem_installP14multiboot_info+23>: pushl 0x8(%ebp= ) > > > 0x001021b0 <_Z11mem_installP14multiboot_info+26>: call 0x10210c > > <_Z12get_mem_sizeP14multiboot_info> > > 0x001021b5 <_Z11mem_installP14multiboot_info+31>: add $0x4,%es= p > > > > Just before the call at address 0x001021ad, I have : > > (gdb) x/4 $esp > > 0xfffffd60: 0x0000c66c 0x00000000 0x00000000 > > 0x3030ff00 > > (gdb) x/4 $esp-4 > > 0xfffffd5c: 0x38100078 0x0000c66c 0x00000000 > > 0x00000000 > > (gdb) x/4 $esp-8 > > 0xfffffd58: 0x18181818 0x38100078 0x0000c66c > > 0x00000000 > > And after > > (gdb) next > > get_mem_size (info=3D0x38100078) at src/memory.cpp:509 > > 509 unsigned long size =3D 0; > > (gdb) x/4 $esp > > 0xfffffd58: 0x18181818 0x38100078 0x0000c66c > > 0x00000000 > > > > the call add 8 to the stack pointer (the size of the return address and > > the size of the pointer to the multiboot_info_t structure. > > But it have any effect to the values in the stack : > > It must be 0x001021b5 not 0x18181818, and 0x6060f060 (the value of the > > pointer info) not 0x38100078 > > So at the end of the function it try to execute some code at > > 0x18181818 . > > > > When I use start.asm and not start.s, it works fine and I have : > > > > (gdb) > > 49 mem_amont =3D get_mem_size(info); > > (gdb) x/5xw $esp > > 0x10ad60 : 0x00000000 0x00000000 0x00000000 > > 0x01000000 > > 0x10ad70 : 0x00000000 > > (gdb) info register sp > > (gdb) info register esp > > esp 0x10ad60 0x10ad60 > > (gdb) stepi > > 0x00102218 49 mem_amont =3D get_mem_size(info); > > (gdb) > > get_mem_size (info=3D0x2e240) at src/memory.cpp:509 > > 509 unsigned long size =3D 0; > > (gdb) x/5xw $esp > > 0x10ad58 : 0x0010221d 0x0002e240 0x00000000 > > 0x00000000 > > 0x10ad68 : 0x00000000 > > > (gdb) > > > > Greg > > > > Le vendredi 07 d=E9cembre 2007 =E0 17:09 -0500, seba fernandez a =E9cri= t : > > > > > you have to change extension to .s and you can compile without linking > > > with "as start.s" or with "gcc -c start.s" > > > > > > On Dec 7, 2007 1:00 PM, Gr=E9goire <gre...@fr...> wrote: > > > How could I compile start.asm with gcc asm syntax using gcc ? > > > Greg > > > > > > Le vendredi 07 d=E9cembre 2007 =E0 10:08 +0100, jt.lb@laposte= .net > > > a =E9crit : > > > > > > > well, i see, you've done it... very good! but we can not > > > check it > > > > since we do not understand this syntax! > > > > greg, can you test it and edit the makefile please? > > > > > > > > > > > > > > > > > > > > > Message du 07/12/07 08:47 > > > > > De : "seba fernandez" > > > > > A : fes...@li... > > > > > Copie =E0 : > > > > > Objet : Re: [Festival-developpers] rewrite asm > > > code > > > > > > > > > > > > > > > I ve rewritten all the start.asm to gnu syntax, i= d > > > like > > > > someone to check the code(it compiles but who > > > knows). > > > > > About the sotrage controller interface i'd like > > > to know if > > > > that is the driver interface or the kernel > > > interface, i didnt > > > > understand > > > > > > > > > > > > > On Dec 6, 2007 1:01 PM, Gr=E9goire > > > <gre...@fr... > wrote: > > > > > > > > > > > > > I think that it is a good idea, > > > > > but I hate the GNU syntax, > > > > > what does jtlb think about that ? > > > > > greg > > > > > > > > > > Le mercredi 05 d=E9cembre 2007 =E0 14:58 > > > -0500, seba > > > > fernandez a =E9crit : > > > > > > > > > > > > > > In order to facilitate the porting of the > > > code, i > > > > suggest to rewrite > > > > > > the asm code to Gnu syntax. > > > > > > Another reason is that gcc only > > > "understand" > > > > inline gnu asm. > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------- > > > > > > SF.Net email is sponsored by: The Futur= e > > > of Linux > > > > Business White Paper > > > > > > from Novell. From the desktop to the > > > data center, > > > > Linux is going > > > > > > mainstream. Let it simplify your IT > > > future. > > > > > > > > > > > > > http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 > > > > > > > > > _______________________________________________ > > > > Festival-developpers mailing list > > > > Fes...@li... > > > > > > > > https://lists.sourceforge.net/lists/listinfo/festival-developpers > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------- > > > > > SF.Net email is sponsored by: > > > > > Check out the new SourceForge.net > > > Marketplace. > > > > > It's the best place to buy or sell > > > services for > > > > > just about anything Open Source. > > > > > > > > http://sourceforge.net/services/buy/index.php > > > > > > > > _______________________________________________ > > > > > Festival-developpers mailing list > > > > > Fes...@li...= t > > > > > > > > > > > > > https://lists.sourceforge.net/lists/listinfo/festival-developpers > > > > > > > > > > > > > > > > > > > > > > > > [ start.asm (13.5 Ko) ] > > > > > [ (pas de nom de fichier) (0.3 Ko) ] > > > > > [ (pas de nom de fichier) ( 0.2 Ko) ] > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Cr=E9ez votre adresse =E9lectronique pr=E9nom.nom@laposte.n= et > > > > 1 Go d'espace de stockage, anti-spam et anti-virus > > > int=E9gr=E9s. > > > > > > > > ------------------------------------------------------------------------- > > > > SF.Net email is sponsored by: > > > > Check out the new SourceForge.net Marketplace. > > > > It's the best place to buy or sell services for > > > > just about anything Open Source. > > > > http://sourceforge.net/services/buy/index.php > > > > _______________________________________________ > > > Festival-developpers mailing list > > > Fes...@li... > > > > https://lists.sourceforge.net/lists/listinfo/festival-developpers > > > > > > > > > > > > > ------------------------------------------------------------------------- > > > SF.Net email is sponsored by: > > > Check out the new SourceForge.net Marketplace. > > > It's the best place to buy or sell services for > > > just about anything Open Source. > > > http://sourceforge.net/services/buy/index.php > > > _______________________________________________ > > > Festival-developpers mailing list > > > Fes...@li... > > > > https://lists.sourceforge.net/lists/listinfo/festival-developpers > > > > > > > > > > ------------------------------------------------------------------------- > > > SF.Net email is sponsored by: > > > Check out the new SourceForge.net Marketplace. > > > It's the best place to buy or sell services for > > > just about anything Open Source. > > > http://sourceforge.net/services/buy/index.php > > > _______________________________________________ Festival-developpers > mailing list Fes...@li... https://lists.sou= rceforge.net/lists/listinfo/festival-developpers > > > > > > > ------------------------------------------------------------------------- > > SF.Net email is sponsored by: > > Check out the new SourceForge.net Marketplace. > > It's the best place to buy or sell services for > > just about anything Open Source. > > http://sourceforge.net/services/buy/index.php > > _______________________________________________ > > Festival-developpers mailing list > > Fes...@li... > > https://lists.sourceforge.net/lists/listinfo/festival-developpers > > > > > > > > > > > [ (pas de nom de fichier) (0.3 Ko) ] > > [ (pas de nom de fichier) (0.2 Ko) ] > > > > > > > > > > *Cr=E9ez votre adresse =E9lectronique pr=E9n...@la...<http://www= .laposte.net> > 1 Go d'espace de stockage, anti-spam et anti-virus int=E9gr=E9s.* > > ------------------------------------------------------------------------- > SF.Net email is sponsored by: > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > Festival-developpers mailing list > Fes...@li... > https://lists.sourceforge.net/lists/listinfo/festival-developpers > > |
From: <jt...@la...> - 2007-12-10 09:08:14
|
hello, i will make a doc on debugging festival on our website, but for the = moment, load it into qemu with "-s" on the command line. this starts the in= ternal gdbserver. open a new terminel and open gdb. type "file /path/to/your/binary/festival.os" then "target remote localhost:= 1234" and finaly type c + return=C2=A0 in gdb; It is only possible to do it= in command line. I ca not explain you in detail this method since you did not tell us what i= s your devellopment environnement(OS, GCC version, ...) For the moment it is much more important for us to get a working floppy dri= ver than the gnu/am syntax! jtlb > Message du 10/12/07 04:56 > De : "seba fernandez" > A : fes...@li... > Copie =C3=A0 : > Objet : Re: [Festival-developpers] rewrite asm code > > that looks as the ret adress is bad so i ll check the push/pop instructio= ns, can you tell me how to debug the kernel code or can give me a link from= where i can read?, thank you > > On Dec 8, 2007 1:48 PM, Gr=C3=A9goire < gre...@fr...> wrote: > I compile start.s sucessful, but the kernel crashes at runtime : > I have a strange behaviour when it calls function : > In function mem_install in memory.cpp, the function get_mem_size is > called : > (gdb) disassemble mem_install > Dump of assembler code for function _Z11mem_installP14multiboot_info: > 0x00102196 <_Z11mem_installP14multiboot_info+0>: =C2=A0 =C2=A0 =C2=A0 =C2= =A0push =C2=A0 %ebp > 0x00102197 <_Z11mem_installP14multiboot_info+1>: =C2=A0 =C2=A0 =C2=A0 =C2= =A0mov =C2=A0 =C2=A0%esp,%ebp > 0x00102199 <_Z11mem_installP14multiboot_info+3>: =C2=A0 =C2=A0 =C2=A0 =C2= =A0sub =C2=A0 =C2=A0$0x38,% > esp > 0x0010219c <_Z11mem_installP14multiboot_info+6>: =C2=A0 =C2=A0 =C2=A0 =C2= =A0movb > $0x1,0xffffffd7(%ebp) > 0x001021a0 <_Z11mem_installP14multiboot_info+10>: =C2=A0 =C2=A0 =C2=A0 mo= v =C2=A0 =C2=A00x10b1e8, > %eax > 0x001021a5 <_Z11mem_installP14multiboot_info+15>: =C2=A0 =C2=A0 =C2=A0 sh= l =C2=A0 =C2=A0$0xa,%eax > 0x001021a8 <_Z11mem_installP14multiboot_info+18>: =C2=A0 =C2=A0 =C2=A0 mo= v =C2=A0 =C2=A0% > eax,0x10b1e8 > 0x001021ad <_Z11mem_installP14multiboot_info+23>: =C2=A0 =C2=A0 =C2=A0 pu= shl =C2=A00x8(%ebp) > 0x001021b0 <_Z11mem_installP14multiboot_info+26>: =C2=A0 =C2=A0 =C2=A0 ca= ll =C2=A0 0x10210c > <_Z12get_mem_sizeP14multiboot_info> > 0x001021b5 <_Z11mem_installP14multiboot_info+31>: =C2=A0 =C2=A0 =C2=A0 ad= d =C2=A0 =C2=A0$0x4,%esp > > Just before the call at address 0x001021ad, I have : > (gdb) x/4 $esp > 0xfffffd60: =C2=A0 =C2=A0 0x0000c66c =C2=A0 =C2=A0 =C2=A00x00000000 =C2= =A0 =C2=A0 =C2=A00x00000000 > 0x3030ff00 > (gdb) x/4 $esp-4 > 0xfffffd5c: =C2=A0 =C2=A0 0x38100078 =C2=A0 =C2=A0 =C2=A00x0000c66c =C2= =A0 =C2=A0 =C2=A00x00000000 > 0x00000000 > (gdb) x/4 $esp-8 > 0xfffffd58: =C2=A0 =C2=A0 0x18181818 =C2=A0 =C2=A0 =C2=A00x38100078 =C2= =A0 =C2=A0 =C2=A00x0000c66c > 0x00000000 > And after > (gdb) next > get_mem_size (info=3D0x38100078) at src/memory.cpp:509 > 509 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 unsigned long size =3D 0; > (gdb) x/4 $esp > 0xfffffd58: =C2=A0 =C2=A0 0x18181818 =C2=A0 =C2=A0 =C2=A00x38100078 =C2= =A0 =C2=A0 =C2=A00x0000c66c > 0x00000000 > > the call add 8 to the stack pointer (the size of the return address and > the size of the pointer to the multiboot_info_t structure. > But it have any effect to the values in the stack : > It must be 0x001021b5 not 0x18181818, and 0x6060f060 (the value of the > pointer info) not 0x38100078 > So at the end of the function it try to execute some code at > 0x18181818 . > > When I use start.asm and not start.s, it works fine and I have : > > (gdb) > 49 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0mem_amont =3D get_mem_size(info); > (gdb) x/5xw $esp > 0x10ad60 : =C2=A0 =C2=A00x00000000 =C2=A0 =C2=A0 =C2=A00x00000000 =C2=A0 = =C2=A0 =C2=A00x00000000 > 0x01000000 > 0x10ad70 : =C2=A0 =C2=A00x00000000 > (gdb) info register sp > (gdb) info register esp > esp =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A00x10ad60 0x10ad60 > (gdb) stepi > 0x00102218 =C2=A0 =C2=A0 =C2=A049 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0mem_a= mont =3D get_mem_size(info); > (gdb) > get_mem_size (info=3D0x2e240) at src/memory.cpp:509 > 509 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 unsigned long size =3D 0; > (gdb) x/5xw $esp > 0x10ad58 : =C2=A0 =C2=A00x0010221d =C2=A0 =C2=A0 =C2=A00x0002e240 =C2=A0 = =C2=A0 =C2=A00x00000000 > 0x00000000 > 0x10ad68 : =C2=A0 =C2=A00x00000000 > (gdb) > > =C2=A0 =C2=A0 Greg > > Le vendredi 07 d=C3=A9cembre 2007 =C3=A0 17:09 -0500, seba fernandez a = =C3=A9crit : > > you have to change extension to .s and you can compile without linking > > with "as start.s" or with "gcc -c start.s" > > > > On Dec 7, 2007 1:00 PM, Gr=C3=A9goire <gre...@fr...> wrote: > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 How could I compile start.asm with gcc asm= syntax using gcc ? > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Greg > > > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 Le vendredi 07 d=C3=A9cembre 2007 =C3=A0 10= :08 +0100, jt...@la... > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 a =C3=A9crit : > > > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 > well, i see, you've done it... very good!= but we can not > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 check it > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 > since we do not understand this syntax! > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 > greg, can you test it and edit the makefi= le please? > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 > > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 > > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 > > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 > > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 > Message du = 07/12/07 08:47 > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 > De : "seba = fernandez" > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 > A : festiv= al-...@li... > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 > Copie =C3= =A0 : > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 > Objet : Re:= [Festival-developpers] rewrite asm > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 code > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 > > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 > > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 > I ve rewrit= ten all the start.asm to gnu syntax, id > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 like > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 someone to ch= eck the code(it compiles but who > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 knows). > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 > About the s= otrage controller interface i'd =C2=A0like > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 to know if > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 that is the d= river interface or the kernel > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 interface, i didnt > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 understand > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 > > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 > > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 On Dec 6, 200= 7 1:01 PM, Gr=C3=A9goire > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 <gre...@fr... > wrote: > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 > > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 > > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 I think that it is a good idea, > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 > but I hate the GNU syntax, > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 > what does jtlb think about that ? > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 > =C2=A0 =C2=A0 greg > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 > > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 > Le mercredi 05 d=C3=A9cembre 2007 =C3=A0 14:58 > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 -0500, seba > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 fernandez a =C3=A9crit : > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 > > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 > > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 > In order to facilitate the porting of the > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 code, i > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 suggest to rewrite > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 > > the asm code to Gnu syntax. > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 > > Another reason is that gcc only > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 "understand" > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 inline gnu asm. > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 > > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 > > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 > > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 > > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 -------------------------------------------= ------------------------------ > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 > > SF.Net email is sponsored by: The Future > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 of Linux > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 Business White Paper > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 > > from Novell. =C2=A0From the desktop to the > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 data center, > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 Linux is going > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 > > mainstream. =C2=A0Let it simplify your IT > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 future. > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 > > > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 > > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 http://altfarm.mediaplex.com/ad/ck/8857-503= 07-18918-4 > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 > > > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 ___________________________________________= ____ > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 Festival-developpers mailing list > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 Fes...@li... > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 > > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 https://lists.sourceforge.net/lists/listinf= o/festival-developpers > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 > > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 > > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 > > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 > > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 > > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 -------------------------------------------= ------------------------------ > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 > SF.Net email is sponsored by: > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 > Check out the new SourceForge.net > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 Marketplace. > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 > It's the best place to buy or sell > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 services for > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 > just about anything Open Source. > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 > > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 http://sourceforge.net/services/buy/index.= php > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 > > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 ___________________________________________= ____ > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 > Festival-developpers mailing list > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 > Fes...@li... > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 > > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 > > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 https://lists.sourceforge.net/lists/listin= fo/festival-developpers > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 > > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 > > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 > > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 > > > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 > [ start.asm= (13.5 Ko) ] > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 > [ (pas de n= om de fichier) (0.3 Ko) ] > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 > [ (pas de n= om de fichier) ( 0.2 Ko) ] > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 > > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 > > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 > > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 > > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 > > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 > > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 > > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 > > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 > Cr=C3=A9ez votre adresse =C3=A9lectroniqu= e pr=C3=A9n...@la... > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 > 1 Go d'espace de stockage, anti-spam et a= nti-virus > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 int=C3=A9gr=C3=A9s. > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 > > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 -------------------------------------------= ------------------------------ > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 > SF.Net email is sponsored by: > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 > Check out the new SourceForge.net Marketp= lace. > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 > It's the best place to buy or sell servic= es for > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 > just about anything Open Source. > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 > http://sourceforge.net/services/buy/index= .php > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 > _________________________________________= ______ > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 Festival-developpers mailing list > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 Fes...@li... > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 https://lists.sourceforge.net/lists/listin= fo/festival-developpers > > > > > > > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 -------------------------------------------= ------------------------------ > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 SF.Net email is sponsored by: > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 Check out the new SourceForge.net Marketpla= ce. > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 It's the best place to buy or sell services= for > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 just about anything Open Source. > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 http://sourceforge.net/services/buy/index.= php > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 ___________________________________________= ____ > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 Festival-developpers mailing list > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 Fes...@li... > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 https://lists.sourceforge.net/lists/listinf= o/festival-developpers > > > > > > -----------------------------------------------------------------------= -- > > SF.Net email is sponsored by: > > Check out the new SourceForge.net Marketplace. > > It's the best place to buy or sell services for > > just about anything Open Source. > > http://sourceforge.net/services/buy/index.php > > _______________________________________________ Festival-developpers ma= iling list Fes...@li... https://lists.source= forge.net/lists/listinfo/festival-developpers=20 >=20 > ------------------------------------------------------------------------- > SF.Net email is sponsored by: > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > Festival-developpers mailing list > Fes...@li... > https://lists.sourceforge.net/lists/listinfo/festival-developpers=20 > >=20 > > > [ (pas de nom de fichier) (0.3 Ko) ] > [ (pas de nom de fichier) (0.2 Ko) ] Cr=C3=A9ez votre adresse =C3=A9lectronique pr=C3=A9n...@la...=20 1 Go d'espace de stockage, anti-spam et anti-virus int=C3=A9gr=C3=A9s. |
From: seba f. <seb...@gm...> - 2007-12-10 03:56:43
|
that looks as the ret adress is bad so i ll check the push/pop instructions= , can you tell me how to debug the kernel code or can give me a link from where i can read?, thank you On Dec 8, 2007 1:48 PM, Gr=E9goire <gre...@fr...> wrote: > I compile start.s sucessful, but the kernel crashes at runtime : > I have a strange behaviour when it calls function : > In function mem_install in memory.cpp, the function get_mem_size is > called : > (gdb) disassemble mem_install > Dump of assembler code for function _Z11mem_installP14multiboot_info: > 0x00102196 <_Z11mem_installP14multiboot_info+0>: push %ebp > 0x00102197 <_Z11mem_installP14multiboot_info+1>: mov %esp,%ebp > 0x00102199 <_Z11mem_installP14multiboot_info+3>: sub $0x38,% > esp > 0x0010219c <_Z11mem_installP14multiboot_info+6>: movb > $0x1,0xffffffd7(%ebp) > 0x001021a0 <_Z11mem_installP14multiboot_info+10>: mov 0x10b1e8, > %eax > 0x001021a5 <_Z11mem_installP14multiboot_info+15>: shl $0xa,%eax > 0x001021a8 <_Z11mem_installP14multiboot_info+18>: mov % > eax,0x10b1e8 > 0x001021ad <_Z11mem_installP14multiboot_info+23>: pushl 0x8(%ebp) > 0x001021b0 <_Z11mem_installP14multiboot_info+26>: call 0x10210c > <_Z12get_mem_sizeP14multiboot_info> > 0x001021b5 <_Z11mem_installP14multiboot_info+31>: add $0x4,%esp > > Just before the call at address 0x001021ad, I have : > (gdb) x/4 $esp > 0xfffffd60: 0x0000c66c 0x00000000 0x00000000 > 0x3030ff00 > (gdb) x/4 $esp-4 > 0xfffffd5c: 0x38100078 0x0000c66c 0x00000000 > 0x00000000 > (gdb) x/4 $esp-8 > 0xfffffd58: 0x18181818 0x38100078 0x0000c66c > 0x00000000 > And after > (gdb) next > get_mem_size (info=3D0x38100078) at src/memory.cpp:509 > 509 unsigned long size =3D 0; > (gdb) x/4 $esp > 0xfffffd58: 0x18181818 0x38100078 0x0000c66c > 0x00000000 > > the call add 8 to the stack pointer (the size of the return address and > the size of the pointer to the multiboot_info_t structure. > But it have any effect to the values in the stack : > It must be 0x001021b5 not 0x18181818, and 0x6060f060 (the value of the > pointer info) not 0x38100078 > So at the end of the function it try to execute some code at > 0x18181818 . > > When I use start.asm and not start.s, it works fine and I have : > > (gdb) > 49 mem_amont =3D get_mem_size(info); > (gdb) x/5xw $esp > 0x10ad60 <bss+7520>: 0x00000000 0x00000000 0x00000000 > 0x01000000 > 0x10ad70 <bss+7536>: 0x00000000 > (gdb) info register sp > (gdb) info register esp > esp 0x10ad60 0x10ad60 > (gdb) stepi > 0x00102218 49 mem_amont =3D get_mem_size(info); > (gdb) > get_mem_size (info=3D0x2e240) at src/memory.cpp:509 > 509 unsigned long size =3D 0; > (gdb) x/5xw $esp > 0x10ad58 <bss+7512>: 0x0010221d 0x0002e240 0x00000000 > 0x00000000 > 0x10ad68 <bss+7528>: 0x00000000 > (gdb) > > Greg > > Le vendredi 07 d=E9cembre 2007 =E0 17:09 -0500, seba fernandez a =E9crit = : > > you have to change extension to .s and you can compile without linking > > with "as start.s" or with "gcc -c start.s" > > > > On Dec 7, 2007 1:00 PM, Gr=E9goire <gre...@fr...> wrote: > > How could I compile start.asm with gcc asm syntax using gcc ? > > Greg > > > > Le vendredi 07 d=E9cembre 2007 =E0 10:08 +0100, jt.lb@laposte.n= et > > a =E9crit : > > > > > well, i see, you've done it... very good! but we can not > > check it > > > since we do not understand this syntax! > > > greg, can you test it and edit the makefile please? > > > > > > > > > > > > > > > > Message du 07/12/07 08:47 > > > > De : "seba fernandez" > > > > A : fes...@li... > > > > Copie =E0 : > > > > Objet : Re: [Festival-developpers] rewrite asm > > code > > > > > > > > > > > > I ve rewritten all the start.asm to gnu syntax, id > > like > > > someone to check the code(it compiles but who > > knows). > > > > About the sotrage controller interface i'd like > > to know if > > > that is the driver interface or the kernel > > interface, i didnt > > > understand > > > > > > > > > > On Dec 6, 2007 1:01 PM, Gr=E9goire > > <gre...@fr...> wrote: > > > > > > > > > > I think that it is a good idea, > > > > but I hate the GNU syntax, > > > > what does jtlb think about that ? > > > > greg > > > > > > > > Le mercredi 05 d=E9cembre 2007 =E0 14:58 > > -0500, seba > > > fernandez a =E9crit : > > > > > > > > > > > In order to facilitate the porting of the > > code, i > > > suggest to rewrite > > > > > the asm code to Gnu syntax. > > > > > Another reason is that gcc only > > "understand" > > > inline gnu asm. > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------- > > > > > SF.Net email is sponsored by: The Future > > of Linux > > > Business White Paper > > > > > from Novell. From the desktop to the > > data center, > > > Linux is going > > > > > mainstream. Let it simplify your IT > > future. > > > > > > > > > > http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 > > > > > > > _______________________________________________ > > > Festival-developpers mailing list > > > Fes...@li... > > > > > > https://lists.sourceforge.net/lists/listinfo/festival-developpers > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------- > > > > SF.Net email is sponsored by: > > > > Check out the new SourceForge.net > > Marketplace. > > > > It's the best place to buy or sell > > services for > > > > just about anything Open Source. > > > > > > http://sourceforge.net/services/buy/index.php > > > > > > _______________________________________________ > > > > Festival-developpers mailing list > > > > Fes...@li... > > > > > > > > > > https://lists.sourceforge.net/lists/listinfo/festival-developpers > > > > > > > > > > > > > > > > > > > [ start.asm (13.5 Ko) ] > > > > [ (pas de nom de fichier) (0.3 Ko) ] > > > > [ (pas de nom de fichier) (0.2 Ko) ] > > > > > > > > > > > > > > > > > > > > > > > > > > > Cr=E9ez votre adresse =E9lectronique pr=E9n...@la... > > > 1 Go d'espace de stockage, anti-spam et anti-virus > > int=E9gr=E9s. > > > > > > ------------------------------------------------------------------------- > > > SF.Net email is sponsored by: > > > Check out the new SourceForge.net Marketplace. > > > It's the best place to buy or sell services for > > > just about anything Open Source. > > > http://sourceforge.net/services/buy/index.php > > > _______________________________________________ > > Festival-developpers mailing list > > Fes...@li... > > > https://lists.sourceforge.net/lists/listinfo/festival-developpers > > > > > > > > > ------------------------------------------------------------------------- > > SF.Net email is sponsored by: > > Check out the new SourceForge.net Marketplace. > > It's the best place to buy or sell services for > > just about anything Open Source. > > http://sourceforge.net/services/buy/index.php > > _______________________________________________ > > Festival-developpers mailing list > > Fes...@li... > > > https://lists.sourceforge.net/lists/listinfo/festival-developpers > > > > > > > ------------------------------------------------------------------------- > > SF.Net email is sponsored by: > > Check out the new SourceForge.net Marketplace. > > It's the best place to buy or sell services for > > just about anything Open Source. > > http://sourceforge.net/services/buy/index.php > > _______________________________________________ Festival-developpers > mailing list Fes...@li... > https://lists.sourceforge.net/lists/listinfo/festival-developpers > > ------------------------------------------------------------------------- > SF.Net email is sponsored by: > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > Festival-developpers mailing list > Fes...@li... > https://lists.sourceforge.net/lists/listinfo/festival-developpers > > |
From: <gre...@fr...> - 2007-12-08 18:48:36
|
I compile start.s sucessful, but the kernel crashes at runtime : I have a strange behaviour when it calls function : In function mem_install in memory.cpp, the function get_mem_size is called : (gdb) disassemble mem_install Dump of assembler code for function _Z11mem_installP14multiboot_info: 0x00102196 <_Z11mem_installP14multiboot_info+0>: push %ebp 0x00102197 <_Z11mem_installP14multiboot_info+1>: mov %esp,%ebp 0x00102199 <_Z11mem_installP14multiboot_info+3>: sub $0x38,% esp 0x0010219c <_Z11mem_installP14multiboot_info+6>: movb $0x1,0xffffffd7(%ebp) 0x001021a0 <_Z11mem_installP14multiboot_info+10>: mov 0x10b1e8, %eax 0x001021a5 <_Z11mem_installP14multiboot_info+15>: shl $0xa,%eax 0x001021a8 <_Z11mem_installP14multiboot_info+18>: mov % eax,0x10b1e8 0x001021ad <_Z11mem_installP14multiboot_info+23>: pushl 0x8(%ebp) 0x001021b0 <_Z11mem_installP14multiboot_info+26>: call 0x10210c <_Z12get_mem_sizeP14multiboot_info> 0x001021b5 <_Z11mem_installP14multiboot_info+31>: add $0x4,%esp Just before the call at address 0x001021ad, I have : (gdb) x/4 $esp 0xfffffd60: 0x0000c66c 0x00000000 0x00000000 0x3030ff00 (gdb) x/4 $esp-4 0xfffffd5c: 0x38100078 0x0000c66c 0x00000000 0x00000000 (gdb) x/4 $esp-8 0xfffffd58: 0x18181818 0x38100078 0x0000c66c 0x00000000 And after (gdb) next get_mem_size (info=0x38100078) at src/memory.cpp:509 509 unsigned long size = 0; (gdb) x/4 $esp 0xfffffd58: 0x18181818 0x38100078 0x0000c66c 0x00000000 the call add 8 to the stack pointer (the size of the return address and the size of the pointer to the multiboot_info_t structure. But it have any effect to the values in the stack : It must be 0x001021b5 not 0x18181818, and 0x6060f060 (the value of the pointer info) not 0x38100078 So at the end of the function it try to execute some code at 0x18181818 . When I use start.asm and not start.s, it works fine and I have : (gdb) 49 mem_amont = get_mem_size(info); (gdb) x/5xw $esp 0x10ad60 <bss+7520>: 0x00000000 0x00000000 0x00000000 0x01000000 0x10ad70 <bss+7536>: 0x00000000 (gdb) info register sp (gdb) info register esp esp 0x10ad60 0x10ad60 (gdb) stepi 0x00102218 49 mem_amont = get_mem_size(info); (gdb) get_mem_size (info=0x2e240) at src/memory.cpp:509 509 unsigned long size = 0; (gdb) x/5xw $esp 0x10ad58 <bss+7512>: 0x0010221d 0x0002e240 0x00000000 0x00000000 0x10ad68 <bss+7528>: 0x00000000 (gdb) Greg Le vendredi 07 décembre 2007 à 17:09 -0500, seba fernandez a écrit : > you have to change extension to .s and you can compile without linking > with "as start.s" or with "gcc -c start.s" > > On Dec 7, 2007 1:00 PM, Grégoire <gre...@fr...> wrote: > How could I compile start.asm with gcc asm syntax using gcc ? > Greg > > Le vendredi 07 décembre 2007 à 10:08 +0100, jt...@la... > a écrit : > > > well, i see, you've done it... very good! but we can not > check it > > since we do not understand this syntax! > > greg, can you test it and edit the makefile please? > > > > > > > > > > > Message du 07/12/07 08:47 > > > De : "seba fernandez" > > > A : fes...@li... > > > Copie à : > > > Objet : Re: [Festival-developpers] rewrite asm > code > > > > > > > > > I ve rewritten all the start.asm to gnu syntax, id > like > > someone to check the code(it compiles but who > knows). > > > About the sotrage controller interface i'd like > to know if > > that is the driver interface or the kernel > interface, i didnt > > understand > > > > > > > On Dec 6, 2007 1:01 PM, Grégoire > <gre...@fr...> wrote: > > > > > > > I think that it is a good idea, > > > but I hate the GNU syntax, > > > what does jtlb think about that ? > > > greg > > > > > > Le mercredi 05 décembre 2007 à 14:58 > -0500, seba > > fernandez a écrit : > > > > > > > > In order to facilitate the porting of the > code, i > > suggest to rewrite > > > > the asm code to Gnu syntax. > > > > Another reason is that gcc only > "understand" > > inline gnu asm. > > > > > > > > > > > ------------------------------------------------------------------------- > > > > SF.Net email is sponsored by: The Future > of Linux > > Business White Paper > > > > from Novell. From the desktop to the > data center, > > Linux is going > > > > mainstream. Let it simplify your IT > future. > > > > > > > http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 > > > > > _______________________________________________ > > Festival-developpers mailing list > > Fes...@li... > > > https://lists.sourceforge.net/lists/listinfo/festival-developpers > > > > > > > > > > > > > > > ------------------------------------------------------------------------- > > > SF.Net email is sponsored by: > > > Check out the new SourceForge.net > Marketplace. > > > It's the best place to buy or sell > services for > > > just about anything Open Source. > > > > http://sourceforge.net/services/buy/index.php > > > > _______________________________________________ > > > Festival-developpers mailing list > > > Fes...@li... > > > > > > https://lists.sourceforge.net/lists/listinfo/festival-developpers > > > > > > > > > > > > > > [ start.asm (13.5 Ko) ] > > > [ (pas de nom de fichier) (0.3 Ko) ] > > > [ (pas de nom de fichier) (0.2 Ko) ] > > > > > > > > > > > > > > > > > > Créez votre adresse électronique préno...@la... > > 1 Go d'espace de stockage, anti-spam et anti-virus > intégrés. > > > ------------------------------------------------------------------------- > > SF.Net email is sponsored by: > > Check out the new SourceForge.net Marketplace. > > It's the best place to buy or sell services for > > just about anything Open Source. > > http://sourceforge.net/services/buy/index.php > > _______________________________________________ > Festival-developpers mailing list > Fes...@li... > https://lists.sourceforge.net/lists/listinfo/festival-developpers > > > > ------------------------------------------------------------------------- > SF.Net email is sponsored by: > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > Festival-developpers mailing list > Fes...@li... > https://lists.sourceforge.net/lists/listinfo/festival-developpers > > > ------------------------------------------------------------------------- > SF.Net email is sponsored by: > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ Festival-developpers mailing list Fes...@li... https://lists.sourceforge.net/lists/listinfo/festival-developpers |
From: seba f. <seb...@gm...> - 2007-12-07 22:09:47
|
you have to change extension to .s and you can compile without linking with "as start.s" or with "gcc -c start.s" On Dec 7, 2007 1:00 PM, Gr=E9goire <gre...@fr...> wrote: > How could I compile start.asm with gcc asm syntax using gcc ? > Greg > > Le vendredi 07 d=E9cembre 2007 =E0 10:08 +0100, jt...@la... a =E9cr= it : > > well, i see, you've done it... very good! but we can not check it > > since we do not understand this syntax! > > greg, can you test it and edit the makefile please? > > > > > > > > > > > Message du 07/12/07 08:47 > > > De : "seba fernandez" > > > A : fes...@li... > > > Copie =E0 : > > > Objet : Re: [Festival-developpers] rewrite asm code > > > > > > > > > I ve rewritten all the start.asm to gnu syntax, id like > > someone to check the code(it compiles but who knows). > > > About the sotrage controller interface i'd like to know if > > that is the driver interface or the kernel interface, i didnt > > understand > > > > > > > On Dec 6, 2007 1:01 PM, Gr=E9goire <gre...@fr...> wrote= : > > > > > > > I think that it is a good idea, > > > but I hate the GNU syntax, > > > what does jtlb think about that ? > > > greg > > > > > > Le mercredi 05 d=E9cembre 2007 =E0 14:58 -0500, seba > > fernandez a =E9crit : > > > > > > > > In order to facilitate the porting of the code, i > > suggest to rewrite > > > > the asm code to Gnu syntax. > > > > Another reason is that gcc only "understand" > > inline gnu asm. > > > > > > > > > > > ------------------------------------------------------------------------- > > > > SF.Net email is sponsored by: The Future of Linux > > Business White Paper > > > > from Novell. From the desktop to the data center, > > Linux is going > > > > mainstream. Let it simplify your IT future. > > > > > > http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 > > > > _______________________________________________ > > Festival-developpers mailing list > > Fes...@li... > > > https://lists.sourceforge.net/lists/listinfo/festival-developpers > > > > > > > > > > > > > > > ------------------------------------------------------------------------- > > > SF.Net email is sponsored by: > > > Check out the new SourceForge.net Marketplace. > > > It's the best place to buy or sell services for > > > just about anything Open Source. > > > http://sourceforge.net/services/buy/index.php > > > _______________________________________________ > > > Festival-developpers mailing list > > > Fes...@li... > > > > > > https://lists.sourceforge.net/lists/listinfo/festival-developpers > > > > > > > > > > > > > > [ start.asm (13.5 Ko) ] > > > [ (pas de nom de fichier) (0.3 Ko) ] > > > [ (pas de nom de fichier) (0.2 Ko) ] > > > > > > > > > > > > > > > > > > Cr=E9ez votre adresse =E9lectronique pr=E9n...@la... > > 1 Go d'espace de stockage, anti-spam et anti-virus int=E9gr=E9s. > > > ------------------------------------------------------------------------- > > SF.Net email is sponsored by: > > Check out the new SourceForge.net Marketplace. > > It's the best place to buy or sell services for > > just about anything Open Source. > > http://sourceforge.net/services/buy/index.php > > _______________________________________________ Festival-developpers > mailing list Fes...@li... > https://lists.sourceforge.net/lists/listinfo/festival-developpers > > > > ------------------------------------------------------------------------- > SF.Net email is sponsored by: > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > Festival-developpers mailing list > Fes...@li... > https://lists.sourceforge.net/lists/listinfo/festival-developpers > |
From: <gre...@fr...> - 2007-12-07 18:01:23
|
How could I compile start.asm with gcc asm syntax using gcc ? Greg Le vendredi 07 décembre 2007 à 10:08 +0100, jt...@la... a écrit : > well, i see, you've done it... very good! but we can not check it > since we do not understand this syntax! > greg, can you test it and edit the makefile please? > > > > > > Message du 07/12/07 08:47 > > De : "seba fernandez" > > A : fes...@li... > > Copie à : > > Objet : Re: [Festival-developpers] rewrite asm code > > > > > > I ve rewritten all the start.asm to gnu syntax, id like > someone to check the code(it compiles but who knows). > > About the sotrage controller interface i'd like to know if > that is the driver interface or the kernel interface, i didnt > understand > > > > On Dec 6, 2007 1:01 PM, Grégoire <gre...@fr...> wrote: > > > > I think that it is a good idea, > > but I hate the GNU syntax, > > what does jtlb think about that ? > > greg > > > > Le mercredi 05 décembre 2007 à 14:58 -0500, seba > fernandez a écrit : > > > > > In order to facilitate the porting of the code, i > suggest to rewrite > > > the asm code to Gnu syntax. > > > Another reason is that gcc only "understand" > inline gnu asm. > > > > > > ------------------------------------------------------------------------- > > > SF.Net email is sponsored by: The Future of Linux > Business White Paper > > > from Novell. From the desktop to the data center, > Linux is going > > > mainstream. Let it simplify your IT future. > > > > http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 > > > _______________________________________________ > Festival-developpers mailing list > Fes...@li... > https://lists.sourceforge.net/lists/listinfo/festival-developpers > > > > > > > > > ------------------------------------------------------------------------- > > SF.Net email is sponsored by: > > Check out the new SourceForge.net Marketplace. > > It's the best place to buy or sell services for > > just about anything Open Source. > > http://sourceforge.net/services/buy/index.php > > _______________________________________________ > > Festival-developpers mailing list > > Fes...@li... > > > https://lists.sourceforge.net/lists/listinfo/festival-developpers > > > > > > > > > [ start.asm (13.5 Ko) ] > > [ (pas de nom de fichier) (0.3 Ko) ] > > [ (pas de nom de fichier) (0.2 Ko) ] > > > > > > > > > Créez votre adresse électronique préno...@la... > 1 Go d'espace de stockage, anti-spam et anti-virus intégrés. > ------------------------------------------------------------------------- > SF.Net email is sponsored by: > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ Festival-developpers mailing list Fes...@li... https://lists.sourceforge.net/lists/listinfo/festival-developpers |
From: jt.lb <jt...@la...> - 2007-12-07 10:29:09
|
hello, i started to rewrite the documentation on the website.=C2=A0 started= with thestorage controller: http://festival.sourceforge.net/home/doc-15,en= -view.html greg, i corrected some english errors even in vars or functions declaration= . seba, it mignt help you! I did not include anything about multitasking or priority handling for the = moment, only the minimal stuffs jtlb Cr=C3=A9ez votre adresse =C3=A9lectronique pr=C3=A9n...@la...=20 1 Go d'espace de stockage, anti-spam et anti-virus int=C3=A9gr=C3=A9s. |
From: <jt...@la...> - 2007-12-07 09:08:41
|
well, i see, you've done it... very good! but we can not check it since we = do not understand this syntax! greg, can you test it and edit the makefile please? > Message du 07/12/07 08:47 > De : "seba fernandez" > A : fes...@li... > Copie =C3=A0 : > Objet : Re: [Festival-developpers] rewrite asm code > > > I ve rewritten all the start.asm to gnu syntax, id like someone to check = the code(it compiles but who knows). > About the sotrage controller interface i'd=C2=A0 like to know if that is = the driver interface or the kernel interface, i didnt understand > On Dec 6, 2007 1:01 PM, Gr=C3=A9goire <gre...@fr...> wrote: > I think that it is a good idea, > but I hate the GNU syntax, > what does jtlb think about that ? > =C2=A0 =C2=A0 greg > > Le mercredi 05 d=C3=A9cembre 2007 =C3=A0 14:58 -0500, seba fernandez a = =C3=A9crit : > > In order to facilitate the porting of the code, i suggest to rewrite > > the asm code to Gnu syntax. > > Another reason is that gcc only "understand" inline gnu asm. > > -----------------------------------------------------------------------= -- > > SF.Net email is sponsored by: The Future of Linux Business White Paper > > from Novell. =C2=A0From the desktop to the data center, Linux is going > > mainstream. =C2=A0Let it simplify your IT future. > > http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4=20 > > _______________________________________________ Festival-developpers ma= iling list Fes...@li... https://lists.source= forge.net/lists/listinfo/festival-developpers > > > > ------------------------------------------------------------------------- > SF.Net email is sponsored by: > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php=20 > _______________________________________________ > Festival-developpers mailing list > Fes...@li... > https://lists.sourceforge.net/lists/listinfo/festival-developpers >=20 > > > [ start.asm (13.5 Ko) ] > [ (pas de nom de fichier) (0.3 Ko) ] > [ (pas de nom de fichier) (0.2 Ko) ] Cr=C3=A9ez votre adresse =C3=A9lectronique pr=C3=A9n...@la...=20 1 Go d'espace de stockage, anti-spam et anti-virus int=C3=A9gr=C3=A9s. |
From: <jt...@la...> - 2007-12-07 09:05:38
|
I think it is not the most import, yes it is a good idea and we will have t= o do it but it is much more important to handle the floppy controller and t= he ide controller. We already have some inline asm, seba, and it works perf= ectly! > I think that it is a good idea, but I hate the GNU syntax, what does jtlb= think about that ? greg Le mercredi 05 d=C3=A9cembre 2007 =C3=A0 14:= 58 -0500, seba fernandez a =C3=A9crit : > In order to facilitate the porting of the code, i suggest to rewrite > the asm code to Gnu syntax. > Another reason is that gcc only "understand" inline gnu asm. Cr=C3=A9ez votre adresse =C3=A9lectronique pr=C3=A9n...@la...=20 1 Go d'espace de stockage, anti-spam et anti-virus int=C3=A9gr=C3=A9s. |
From: <gre...@fr...> - 2007-12-06 21:12:59
|
I think that it is a good idea, but I hate the GNU syntax, what does jtlb think about that ? greg Le mercredi 05 décembre 2007 à 14:58 -0500, seba fernandez a écrit : > In order to facilitate the porting of the code, i suggest to rewrite > the asm code to Gnu syntax. > Another reason is that gcc only "understand" inline gnu asm. > ------------------------------------------------------------------------- > SF.Net email is sponsored by: The Future of Linux Business White Paper > from Novell. From the desktop to the data center, Linux is going > mainstream. Let it simplify your IT future. > http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 > _______________________________________________ Festival-developpers mailing list Fes...@li... https://lists.sourceforge.net/lists/listinfo/festival-developpers |
From: <jt...@la...> - 2007-12-06 09:05:42
|
thank you greg! sorry i turned on you moderated flag, it was an error, now you can send mai= ls freely! The website is now working so you can write documentations! jtlb Cr=C3=A9ez votre adresse =C3=A9lectronique pr=C3=A9n...@la...=20 1 Go d'espace de stockage, anti-spam et anti-virus int=C3=A9gr=C3=A9s. |
From: seba f. <seb...@gm...> - 2007-12-05 19:58:35
|
In order to facilitate the porting of the code, i suggest to rewrite the asm code to Gnu syntax. Another reason is that gcc only "understand" inline gnu asm. |
From: <gre...@fr...> - 2007-12-05 17:44:40
|
Hello, This is the StoragesController class. All disks controllers must derived from this class. Now, there are only few functions in this class. These function are a minimum for disk read/write operation. Feel free to modify it, add new functions and correct my english, but if you do it, please send me the new version. Greg |