From owner-freebsd-current Fri Dec 8 17:39:20 2000 From owner-freebsd-current@FreeBSD.ORG Fri Dec 8 17:39:18 2000 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from earth.backplane.com (placeholder-dcat-1076843399.broadbandoffice.net [64.47.83.135]) by hub.freebsd.org (Postfix) with ESMTP id 956F537B400; Fri, 8 Dec 2000 17:39:18 -0800 (PST) Received: (from dillon@localhost) by earth.backplane.com (8.11.1/8.9.3) id eB91clw25657; Fri, 8 Dec 2000 17:38:47 -0800 (PST) (envelope-from dillon) Date: Fri, 8 Dec 2000 17:38:47 -0800 (PST) From: Matt Dillon Message-Id: <200012090138.eB91clw25657@earth.backplane.com> To: Julian Elischer Cc: John Baldwin , current@FreeBSD.ORG Subject: Re: __asm help.. References: <200012082129.eB8LTMM22955@earth.backplane.com> <3A31720D.9A6CFF63@elischer.org> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG : :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