[fusion] get_mmu_context() in mpc8xx

rolf.freitag at email.de rolf.freitag at email.de
Mon Aug 29 18:17:28 CEST 2005


Hi,

i tried do compile hackbench but it failed:

hackbench.c: In function `barf':
hackbench.c:51: error: prior parameter's size depends on `num_fds'

is there a trick or is it unfinished?

Regards,

Rolf


Studencki Pawel <pawel.studencki at siemens.com> schrieb am 29.08.05 17:25:50:
> 
> hello,
> 
> have you tested your linux mpc8xx port with hackbench? running it in a
> script like this one:
> 
> while true; do dd if=/dev/null of=bigfile bs=1048000 count=1024 2>/dev/null;
> done &
> while true; do ./hackbench 1; done & 
> 
> 
> in one of patches discussed on ppc-linux mailing list you protect
> destroy_context() with preempt_disable() and preempt_enable().
> But it does nothing when working with adeos. ADEOS uses get_mmu_context(mm)
> in (include/nucleus/asm-ppc/system.h)
> and this code can preempt native linux call. 
> 
> I try to protect destroy_context() with:
> 
> #ifdef CONFIG_ADEOS_CORE
>         adeos_hw_local_irq_disable(); 
> #endif
> 
> 
> and
> 
> #ifdef CONFIG_ADEOS_CORE
>         adeos_hw_local_irq_enable(); 
> #endif
> 
> I'm testing it now, but it doesn't seems to work as I thought...could
> someone reproduce this problem with his test application + hackbench (mpc8xx
> + 2.6.10 + adeos)?
> 
> best regards
> Pawel
> 
> 
> 
>  
> 
> 






More information about the Rtai mailing list