Source-Changes-D archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/sys/arch



On 25 February 2012 17:32, Manuel Bouyer <bouyer%antioche.eu.org@localhost> 
wrote:
> On Sat, Feb 25, 2012 at 10:30:30AM +0530, Cherry G. Mathew wrote:
>> I've made a few changes to pmap.c where it looks harmless to do so,
>> but are in favour of consistency.
>> ftp://ftp.netbsd.org/pub/NetBSD/misc/cherry/tmp/xen-set-pte.diff
>
> Did you test it ? I have a vague memory that using spl() in early
> allocation routines would cause a trap (maybe because curcpu() doesn't
> work yet) but maybe your recent changes fixed it.

Yes and yes.

> Also you can change
> #ifndef XEN
>       const pd_entry_t pteflags = PG_V | PG_RW;
> #else /* XEN */
>       const pd_entry_t pteflags = PG_u | PG_V | PG_RW;
> #endif /* XEN */
>
> to:
>        const pd_entry_t pteflags = PG_k | PG_V | PG_RW;
>
> (PG_k is defined to PG_u on Xen/amd64 and 0 otherwise).
>

Ah cool, that would remove those ugly #ifdefs

Cheers,
-- 
~Cherry


Home | Main Index | Thread Index | Old Index