(none)

(none)

Post by Grzegorz Pato? » Mon, 28 Aug 2000 04:00:00



Hi,

I have some problem with interrupt routine. I'm using below functions to install it:

 _go32_dpmi_get_protected_mode_interrupt_vector(8, &old_handler)
 _go32_dpmi_chain_protected_mode_interrupt_vector(8, &new_handler)
 _go32_dpmi_set_protected_mode_interrupt_vector(8, &old_handler)

or

__dpmi_set_real_mode_interrupt_vector(8,&new_handler)
__dpmi_get_real_mode_interrupt_vector(8,&old_handler)

next I change clock tics of system timer

outportb(0x43, 0x34);
outportb(0x40, time & 0xff);
outportb(0x40, time >> 8);

and finally I cant get more then 10000 tics per sec. Above this value my computer hanged up (AMD 350MHz)
but under a real mode in BC similar routine can reach sth about 70000.
It is possible to increse this value ???

________________________________________
Grzegorz Pato?a


ICQ# 1448779

 
 
 

(none)

Post by Eli Zaretski » Mon, 28 Aug 2000 04:00:00



> Date: Sun, 27 Aug 2000 18:15:22 -0700

> and finally I cant get more then 10000 tics per sec. Above this value my
> computer hanged up (AMD 350MHz)
> but under a real mode in BC similar routine can reach sth about 70000.
> It is possible to increse this value ???

Protected-mode interrupt handling incurs some overhead, especially if
you chain to the previous handler.  See section 18.11 in the DJGPP FAQ
for some advice how to get the highest possible interrupt rate out of
your machine.