From owner-freebsd-hackers Wed Oct 4 9:32:14 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from h132-197-97-45.gte.com (h132-197-97-45.gte.com [132.197.97.45]) by hub.freebsd.org (Postfix) with ESMTP id 4F05E37B502 for ; Wed, 4 Oct 2000 09:32:11 -0700 (PDT) Received: (from ak03@localhost) by h132-197-97-45.gte.com (8.11.0/8.11.0) id e94GWAl32020 for freebsd-hackers@freebsd.org; Wed, 4 Oct 2000 12:32:10 -0400 (EDT) (envelope-from ak03) Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 Date: Wed, 04 Oct 2000 12:32:09 -0400 (EDT) Organization: GTE Laboratories Inc. From: "Alexander N. Kabaev" To: freebsd-hackers@freebsd.org Subject: How to allocate kernel memory with PG_NC_PCD set Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG The subject says it all :) What is the best way to allocate kernel memory with non-cacheable bit set? Or, better yet, is it possible to change caching bit on an already kmalloc'ed memory block? Will something like this work? pt_entry_t pte; pte = (pt_entry_t)vtopte(vaddr); *pte |= PG_NC_PCD; invtlb(); ---------------------------------- E-Mail: Alexander N. Kabaev Date: 04-Oct-00 Time: 12:12:22 ---------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message