Project

General

Profile

Submit #1742

Updated by tuxillo almost 3 years ago

Here's a patch for Page Attribute Table support I ported from FreeBSD 
 
 quite a while back. I'm sending it to submit@ in case someone will get 
 
 interested and deal w/ the cpu identification part (probably integrating 
 
 the FreeBSD code for that too) so we can integrate it. It will get used 
 
 more and more in new code and will significantly help porting. 

 

 As you'll notice in pmap_init_pat() 

 

 +#ifdef notyet 
 
 +         if (cpu_vendor_id != CPU_VENDOR_INTEL || 
 
 +             (I386_CPU_FAMILY(cpu_id) == 6 && I386_CPU_MODEL(cpu_id) >= 
 
 0xe)) { 
 
 +#else 
 
 +         if (!0) { 
 
 +#endif 

 

 so we need at least I386_CPU_{FAMILY,MODEL} (to be found in 
 
 i386/include/specialreg.h) and having the companion code would be nice 
 
 too (ISTR it was straightforward but not trivial, not sure if I remember 
 
 correctly now. Looks trivial enough :/) 

 

 I *have* tried using the PMAP in mxge(4) so I don't think you'll get any 
 
 panics ;) 

 

 Aggelos

Back