Date: Fri, 8 Dec 2000 17:38:47 -0800 (PST) From: Matt Dillon <dillon@earth.backplane.com> To: Julian Elischer <julian@elischer.org> Cc: John Baldwin <jhb@FreeBSD.ORG>, current@FreeBSD.ORG Subject: Re: __asm help.. Message-ID: <200012090138.eB91clw25657@earth.backplane.com> References: <XFMail.001208104618.jhb@FreeBSD.org> <200012082129.eB8LTMM22955@earth.backplane.com> <3A31720D.9A6CFF63@elischer.org>
next in thread | previous in thread | raw e-mail | index | archive | help
:
:foo = save_intr(); disable_intr(); .. restore_intr()
:has 4 extra memory accesses.
UGh. I put my foot in it. Let me qualify my remark... memory
accesses that cause an L1 cache miss are a problem. Memory accesses
to locations written to by other cpu's are a problem. Memory accesses
that are L1 cached are NOT a problem.
Memory accesses to the first few words of the stack are almost guarenteed
to be in the L1 cache. Just don't worry about it.
-Matt
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200012090138.eB91clw25657>
