Fix confusing comments about default PAT entries.

This commit is contained in:
Jung-uk Kim 2009-09-02 16:47:10 +00:00
parent c9e8817902
commit c8e648e167
2 changed files with 4 additions and 4 deletions

View File

@ -628,9 +628,9 @@ pmap_init_pat(void)
if (pat_works) {
/*
* Leave the indices 0-3 at the default of WB, WT, UC, and UC-.
* Leave the indices 0-3 at the default of WB, WT, UC-, and UC.
* Program 4 and 5 as WP and WC.
* Leave 6 and 7 as UC and UC-.
* Leave 6 and 7 as UC- and UC.
*/
pat_msr &= ~(PAT_MASK(4) | PAT_MASK(5));
pat_msr |= PAT_VALUE(4, PAT_WRITE_PROTECTED) |

View File

@ -528,9 +528,9 @@ pmap_init_pat(void)
if (pat_works) {
/*
* Leave the indices 0-3 at the default of WB, WT, UC, and UC-.
* Leave the indices 0-3 at the default of WB, WT, UC-, and UC.
* Program 4 and 5 as WP and WC.
* Leave 6 and 7 as UC and UC-.
* Leave 6 and 7 as UC- and UC.
*/
pat_msr &= ~(PAT_MASK(4) | PAT_MASK(5));
pat_msr |= PAT_VALUE(4, PAT_WRITE_PROTECTED) |