Mail Archives: djgpp/2010/03/04/14:07:59
I don't know why, but there are som bios task wich interrupts processor =
and
I can not disable too.
Try this code at the begining of your code:
temporal=3Dllegeix_registre_pci(0x44,0,31,0,1);
//temporal=3Dtemporal&(~0x10);
temporal=3Dtemporal&(0x00);
escriu_registre_pci(0x44,0,31,0,temporal,1); //ACPI
temporal=3Dllegeix_registre_pci(0x5c,0,31,0,1);
//temporal=3Dtemporal&(~0x10);
temporal=3Dtemporal&(0x00);
escriu_registre_pci(0x5c,0,31,0,temporal,1); //GPIO
unsigned long llegeix_registre_pci(int reg,int func,int dev,int bus,int
n_bytes)
{
int reg2;
long unsigned data=3D0;
reg2=3D(reg%4)*8;
adress_data_852(reg,func,dev,bus,n_bytes);
data=3Dinportl(0xcfc);
data=3Ddata>>reg2;
if(n_bytes=3D=3D4)return data;
if(n_bytes=3D=3D2)return data&0xffff;
if(n_bytes=3D=3D1)return data&0xff;
}
unsigned long escriu_registre_pci(int reg,int func,int dev,int =
bus,unsigned
long val,int n_bytes)
{
int reg2;
long unsigned data,mask;
reg2=3D(reg%4)*8;
adress_data_852(reg,func,dev,bus,n_bytes);
data=3Dinportl(0xcfc);
if(n_bytes=3D=3D4)mask=3D0xffffffff;
if(n_bytes=3D=3D2)mask=3D0xffff;
if(n_bytes=3D=3D1)mask=3D0xff;
mask=3Dmask<<reg2;
mask=3D~mask;
val=3Dval<<reg2;
data=3Ddata&mask;
data=3Ddata&val;
outportl(0xcfc,val);
}
-----Mensaje original-----
De: philippe [mailto:philippe DOT meynard AT vendeeconcept DOT com]=20
Enviado el: dijous, 4 / mar=E7 / 2010 18:42
Para: djgpp AT delorie DOT com
Asunto: Re: jitter between 2 hardware interrupt
On Mar 4, 4:07=A0pm, "Josep M." <josepma DOT DOT DOT AT turomas DOT com> wrote:
> I have the same problem, it is caused by bios processes. I could solve
this
> trouble doing that:
>
> 1. I had to disable USB in bios.
>
> 2. Disable HDD IDE block mode.
>
> 3. In some cards the problem persist, in this case you have to put =
some
code
> to reprogram chipset.
>
> Test if you can solve your problem with 2 first points
>
> -----Mensaje original-----
> De: philippe [mailto:philippe DOT meyn DOT DOT DOT AT vendeeconcept DOT com]
> Enviado el: dimecres, 3 / mar=E7 / 2010 11:26
> Para: dj DOT DOT DOT AT delorie DOT com
> Asunto: jitter between 2 hardware interrupt
>
it's better , Now I have 618us to 1334us fluctuation. But I don't
understand : I have all disabled hardware and software interrupt
except int 08, how BIOS can be priority of my program ? What I forget
disable?
__________ Informaci=F3n de NOD32, revisi=F3n 4916 (20100304) __________
Este mensaje ha sido analizado con NOD32 antivirus system
http://www.nod32.com
- Raw text -