Changeset 567807b1 in mainline for arch/amd64/include/mm/page.h


Ignore:
Timestamp:
2006-05-24T17:03:29Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8d6bc2d5
Parents:
82da5f5
Message:

Modify the hierarchy of page fault handlers to pass access mode that caused the fault.
Architectures are required to pass either PF_ACCESS_READ, PF_ACCESS_WRITE or PF_ACCESS_EXEC
to as_page_fault(), depending on the cause of the fault.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • arch/amd64/include/mm/page.h

    r82da5f5 r567807b1  
    107107#ifndef __ASM__
    108108
     109/* Page fault error codes. */
     110
     111/** When bit on this position is 0, the page fault was caused by a not-present page. */
     112#define PFERR_CODE_P            (1<<0) 
     113
     114/** When bit on this position is 1, the page fault was caused by a write. */
     115#define PFERR_CODE_RW           (1<<1)
     116
     117/** When bit on this position is 1, the page fault was caused in user mode. */
     118#define PFERR_CODE_US           (1<<2)
     119
     120/** When bit on this position is 1, a reserved bit was set in page directory. */
     121#define PFERR_CODE_RSVD         (1<<3)
     122
     123/** When bit on this position os 1, the page fault was caused during instruction fecth. */
     124#define PFERR_CODE_ID           (1<<4)
     125
    109126/** Page Table Entry. */
    110127struct page_specifier {
Note: See TracChangeset for help on using the changeset viewer.