Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 May 1999 08:09:43 +1000
From:      Bruce Evans <bde@zeta.org.au>
To:        cvs-all@FreeBSD.org, cvs-committers@FreeBSD.org, peter@FreeBSD.org
Subject:   Re: cvs commit: src/sys/isa sio.c
Message-ID:  <199905092209.IAA24862@godzilla.zeta.org.au>

next in thread | raw e-mail | index | archive | help
>  Modified files:
>    sys/isa              sio.c 
>  Log:
>  Optimize out a couple of places where com_addr() is used twice in a row,
>  although this is pretty trivial.  devclass_get_softc() is a tad more
>  expensive than the old com_addr() implementation.  If Bruce is really
>  worried about the cost of this, it could always be changed so that the
>  softc pointer is stored in a local array again.

I'm not very worried about the cost.  I'm worried about the invalid
implementation.  It is invalid to access data not managed by the driver
from a fast interrupt handler.

Bruce


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199905092209.IAA24862>