• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
      • Kestrel-books
      • X86isa
        • Program-execution
          • Dynamic-instrumentation
          • Initialize-x86-state
          • Binary-file-load-fn
          • Read-channel-into-memory
          • Setting-up-page-tables
          • Read-channel-into-byte-list
          • Init-zero-page
          • Linux-load
          • Read-file-into-memory
          • Read-file-into-byte-list
          • Init-sys-view
          • Load-elf-sections
          • Chars-to-c-str
          • String-to-c-str
          • Pack-u64
          • Pack-u32
          • Concrete-simulation-examples
          • Gdt-entry
          • Sdm-instruction-set-summary
          • Tlb
          • Running-linux
          • Introduction
          • Asmtest
          • X86isa-build-instructions
          • Publications
          • Contributors
          • Machine
          • Implemented-opcodes
          • To-do
          • Proof-utilities
          • Peripherals
          • Model-validation
          • Modelcalls
          • Concrete-simulation-examples
          • Utils
          • Debugging-code-proofs
        • Axe
        • Execloader
      • Math
      • Testing-utilities
    • Program-execution

    Gdt-entry

    Signature
    (gdt-entry flags base limit) → entry
    Returns
    entry — Type (n64p entry).

    Definitions and Theorems

    Function: gdt-entry

    (defun gdt-entry (flags base limit)
      (declare (type (unsigned-byte 16) flags)
               (type (unsigned-byte 32) base)
               (type (unsigned-byte 20) limit))
      (let ((__function__ 'gdt-entry))
        (declare (ignorable __function__))
        (logior (ash (logand base 4278190080) (- 56 24))
                (ash (logand flags 61695) 40)
                (ash (logand limit 983040) (- 48 16))
                (ash (logand base 16777215) 16)
                (logand limit 65535))))

    Theorem: n64p-of-gdt-entry

    (defthm n64p-of-gdt-entry
      (b* ((entry (gdt-entry flags base limit)))
        (n64p entry))
      :rule-classes :rewrite)