• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
      • Kestrel-books
      • X86isa
        • Program-execution
        • Sdm-instruction-set-summary
        • Tlb
        • Running-linux
        • Introduction
        • Asmtest
        • X86isa-build-instructions
        • Publications
        • Contributors
        • Machine
          • X86isa-state
          • Syscalls
          • Cpuid
          • Linear-memory
          • Rflag-specifications
          • Characterizing-undefined-behavior
          • Top-level-memory
          • App-view
          • X86-decoder
          • Physical-memory
          • Decoding-and-spec-utils
          • Instructions
          • Register-readers-and-writers
          • X86-modes
          • Segmentation
          • Other-non-deterministic-computations
          • Environment
          • Paging
            • Ia32e-paging
              • Paging-entry-no-page-fault-p
              • Ia32e-la-to-pa-without-tlb-internal
              • Ia32e-la-to-pa-page-directory
              • Ia32e-la-to-pa-page-dir-ptr-table
              • Ia32e-la-to-pa-page-table
              • Ia32e-la-to-pa-pml4-table
              • Ia32e-la-to-pa-without-tlb
              • Ia32e-la-to-pa
              • Same-page
              • Page-fault-exception
                • Page-dir-ptr-table-entry-addr
                • Page-directory-entry-addr
                • Page-table-entry-addr
                • La-to-pa
                • Paging-entry-no-page-fault-p-did-fault?
                • Pml4-table-entry-addr
                • Same-page-offset
                • Page-user-supervisor
                • Page-execute-disable
                • Set-dirty-bit
                • Set-accessed-bit
                • Page-read-write
                • Page-present
                • Page-fault-err-no
                • Accessed-bit
                • Page-size
                • Find-similar-paging-entries-from-page-present-equality-aux
                • Dirty-bit
                • Good-lin-addr-p
          • Implemented-opcodes
          • To-do
          • Proof-utilities
          • Peripherals
          • Model-validation
          • Modelcalls
          • Concrete-simulation-examples
          • Utils
          • Debugging-code-proofs
        • Axe
        • Execloader
      • Math
      • Testing-utilities
    • Ia32e-paging

    Page-fault-exception

    Signature
    (page-fault-exception addr err-no x86) → (mv flg zero x86)
    Returns
    x86 — Type (x86p x86), given the guard.

    Definitions and Theorems

    Function: page-fault-exception

    (defun page-fault-exception (addr err-no x86)
      (declare (xargs :stobjs (x86)))
      (declare (xargs :guard t))
      (let ((__function__ 'page-fault-exception))
        (declare (ignorable __function__))
        (b* ((old-faults (fault x86))
             (new-faults (cons (list :page-fault err-no addr)
                               old-faults))
             (x86 (!fault new-faults x86)))
          (mv t 0 x86))))

    Theorem: x86p-of-page-fault-exception.x86

    (defthm x86p-of-page-fault-exception.x86
      (implies (and (x86p x86))
               (b* (((mv ?flg acl2::?zero ?x86)
                     (page-fault-exception addr err-no x86)))
                 (x86p x86)))
      :rule-classes :rewrite)

    Theorem: mv-nth-0-page-fault-exception

    (defthm mv-nth-0-page-fault-exception
      (mv-nth 0
              (page-fault-exception addr err-no x86)))

    Theorem: mv-nth-1-page-fault-exception

    (defthm mv-nth-1-page-fault-exception
      (equal (mv-nth 1
                     (page-fault-exception addr err-no x86))
             0))

    Theorem: xr-page-fault-exception

    (defthm xr-page-fault-exception
      (implies
           (not (equal fld :fault))
           (equal (xr fld index
                      (mv-nth 2
                              (page-fault-exception addr err-no x86)))
                  (xr fld index x86))))

    Theorem: page-fault-exception-xw-values

    (defthm page-fault-exception-xw-values
     (implies
      (not (equal fld :fault))
      (and
       (equal
        (mv-nth
            0
            (page-fault-exception addr err-no (xw fld index value x86)))
        (mv-nth 0
                (page-fault-exception addr err-no x86)))
       (equal
        (mv-nth
            1
            (page-fault-exception addr err-no (xw fld index value x86)))
        0))))

    Theorem: page-fault-exception-xw-state

    (defthm page-fault-exception-xw-state
     (implies
      (not (equal fld :fault))
      (equal
       (mv-nth
            2
            (page-fault-exception addr err-no (xw fld index value x86)))
       (xw fld index value
           (mv-nth 2
                   (page-fault-exception addr err-no x86))))))

    Theorem: 64-bit-modep-of-page-fault-exception

    (defthm 64-bit-modep-of-page-fault-exception
     (equal
          (64-bit-modep (mv-nth 2
                                (page-fault-exception addr err-no x86)))
          (64-bit-modep x86)))

    Theorem: x86-operation-mode-of-page-fault-exception

    (defthm x86-operation-mode-of-page-fault-exception
      (equal (x86-operation-mode
                  (mv-nth 2
                          (page-fault-exception addr err-no x86)))
             (x86-operation-mode x86)))