> 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();

Only in i386-specific code.  Can you be more explicit about what exactly 
it is that you're trying to do?  The x86 already has strong cache 
coherence, and mapped PCI space is typically not marked cacheable in the 
default MTRR setup so this sort of thing is typically unnecessary.
-- 
... every activity meets with opposition, everyone who acts has his
rivals and unfortunately opponents also.  But not because people want
to be opponents, rather because the tasks and relationships force
people to take different points of view.  [Dr. Fritz Todt]
           V I C T O R Y   N O T   V E N G E A N C E




To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to