From owner-freebsd-hackers Fri Dec 4 06:14:04 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id GAA04470 for freebsd-hackers-outgoing; Fri, 4 Dec 1998 06:14:04 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from numeri.campus.luth.se (numeri.campus.luth.se [130.240.197.103]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id GAA04423 for ; Fri, 4 Dec 1998 06:14:01 -0800 (PST) (envelope-from k@numeri.campus.luth.se) Received: from numeri.campus.luth.se (localhost [127.0.0.1]) by numeri.campus.luth.se (8.8.8/8.8.8) with ESMTP id PAA26753 for ; Fri, 4 Dec 1998 15:18:22 +0100 (CET) (envelope-from k@numeri.campus.luth.se) Message-Id: <199812041418.PAA26753@numeri.campus.luth.se> X-Mailer: exmh version 2.0.2 2/24/98 To: freebsd-hackers@FreeBSD.ORG Subject: Cache disabling Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 04 Dec 1998 15:18:22 +0100 From: Johan Karlsson Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi I'm using 2.2-Stable and want to disable caching for some memory. Will the page with the physical address phys have caching disabled if the function (see patch below) pmap_page_noncacheable is used? Is there another (better) way to do it? If not, could this patch make it into the src tree (when I submit a PR)? ==== patch ===== *** i386/i386/pmap.c.orig Fri Dec 4 11:32:21 1998 --- i386/i386/pmap.c Fri Dec 4 11:44:59 1998 *************** *** 2771,2776 **** --- 2771,2789 ---- } /* + * pmap_page_noncacheable: + * + * Set/Clear Non-cacheable option (i.e. PG_N) for page + */ + void + pmap_page_noncacheable(phys, noncacheable) + vm_offset_t phys; + boolean_t noncacheable; + { + pmap_changebit(phys, PG_N, noncacheable); + } + + /* * pmap_page_protect: * * Lower the permission for all mappings to a given page. =============== /K -- Johan Karlsson mailto:k@numeri.campus.luth.se SWEDEN To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message