|
From: =?iso-8859-1?Q?ren=E9_Tournois_=3Cbetov=40free.fr=3E?<=...@fr...> - 2001-10-10 18:06:48
|
Try to insert a couple of NOP between the Label declaration and the jump instruction. If i remember well, there a little bug in NASM about this... (unsure, but no relationship with the prefetch anyway). Betov. >I am very sorry, I also had to change the .exit to exit because >otherwise nasm wouldn't build loadros. > >And still the system reboots, but I can now put the loop after next: > mov eax,cr0 > or eax,0x10001 > mov cr0,eax > jmp next >next: >break: > jmp break > ;; > ;; NOTE: This must be position independant (no references to > ;; non absolute variables) > ;; > > ;; > ;; Initalize segment registers > ;; > mov ax,KERNEL_DS > mov ds,ax > mov ss,ax > mov es,ax > mov fs,ax > mov gs,ax > > >If I put the break after mov gs, ax though, the system reboots. > > >Jurgen > >-----Original Message----- >From: Casper Hornstrup [mailto:ch...@us...] >Sent: Wednesday, October 10, 2001 15:56 >To: ros...@re... >Subject: [ros-kernel] Re: RE: Re: Old reactos > > >On Wednesday 10 October 2001 00:40, Jurgen Van Gael wrote: >> When I use the loop in loadros.asm, I get these results: >> >> If I put the break here: >> >> ;; >> ;; Enter pmode and clear prefetch queue >> ;; >> mov eax,cr0 >> or eax,0x10001 >> mov cr0,eax >> .break: >> jmp .break >> jmp .next >> .next: >> >> Then the system freezes with a blue screen >> >> When I put the loop after jmp .next, the system reboots. >> >> Am I right we are talking pmode right now. Could it be that the gdt or > >> idt is not setup properly? > >Try changing: > >jmp .next >.next: > > >to: > >jmp next >next: > >IIRC, it should be a far jump to clear the prefetch queue. > >- Casper > >==================================================== >= To remove yourself from this mailing list, go to = >= http://www.reactos.com/home/mailing.html = >==================================================== > >==================================================== >= To remove yourself from this mailing list, go to = >= http://www.reactos.com/home/mailing.html = >==================================================== > > > ==================================================== = To remove yourself from this mailing list, go to = = http://www.reactos.com/home/mailing.html = ==================================================== |