PERFORCE change 112424 for review

John Baldwin jhb at freebsd.org
Tue Jan 2 09:20:23 PST 2007


On Tuesday 02 January 2007 11:53, Olivier Houchard wrote:
> http://perforce.freebsd.org/chv.cgi?CH=112424
> 
> Change 112424 by cognet at hulglah on 2007/01/02 16:52:32
> 
> 	Implement a minimalist intr_eoi_src which just calls arm_unmask_irq(),
> 	so that irq are unmasked after a filter+ithread runs.

Err, you shouldn't need to mask the IRQ unless you schedule the ithread.   Hmm,
I'd also prefer it if we didn't pass function handlers to mi_handle_intr() (which
should be intr_handle() or something, all the MI interrupt code is intr_foo(),
not mi_foo_intr()) but instead set them in the intr_event and passed them to
intr_event_create().

> Affected files ...
> 
> .. //depot/projects/soc2006/intr_filter/arm/arm/intr.c#10 edit
> 
> Differences ...
> 
> ==== //depot/projects/soc2006/intr_filter/arm/arm/intr.c#10 (text+ko) ====
> 
> @@ -122,6 +122,15 @@
>  	return (NULL);
>  }
>  
> +static void
> +intr_eoi_src(void *arg)
> +{
> +	uintptr_t nb;
> +
> +	nb = (uintptr_t)arg;
> +	arm_unmask_irq(nb);
> +}
> +
>  void
>  arm_handler_execute(struct trapframe *frame, int irqnb __unused)
>  {
> @@ -133,8 +142,8 @@
>  		arm_mask_irq(i);
>  		intrcnt[intrcnt_tab[i]]++;
>  		event = intr_events[i];
> -		res = mi_handle_intr(event, frame, intr_eoi_src_stub, 
> -				     intr_disab_eoi_src_stub, NULL);
> +		res = mi_handle_intr(event, frame, intr_eoi_src, 
> +				     intr_disab_eoi_src_stub, (void *)i);
>  		switch (res) {
>  		case 0:
>  			break;
> 

-- 
John Baldwin


More information about the p4-projects mailing list