Wichtige Error Codes etc.


  • Mod

    Wichtige Meldungen:

    #PF error code:

    bit 0       0 = no page found,       1 = protection fault
    bit 1       0 = read access,         1 = write access
    bit 2       0 = kernel-mode access,  1 = user mode access
    bit 3       0 = n/a,                 1 = use of reserved bit detected
    bit 4       0 = n/a,                 1 = fault was an instruction fetch
    

  • Mod

    Sonstiger Error code bei Exceptions:

    Intel Manual 3A, 6.13 ERROR CODE:

    When an exception condition is related to a specific segment, the processor pushes an error code onto the stack of the exception handler (whether it is a procedure or task). The error code has the format shown in Figure 6-6. The error code resembles a segment selector; however, instead of a TI flag and RPL field, the error code contains 3 flags:
    EXT External event (bit 0) — When set, indicates that an event external
    to the program, such as a hardware interrupt, caused the exception.
    IDT Descriptor location (bit 1) — When set, indicates that the index portion of the error code refers to a gate descriptor in the IDT; when clear, indicates that the index refers to a descriptor in the GDT or the current LDT.
    TI GDT/LDT (bit 2) — Only used when the IDT flag is clear. When set, the TI flag indicates that the index portion of the error code refers to a segment or gate descriptor in the LDT; when clear, it indicates that the index refers to a descriptor in the current GDT.

    The segment selector index field provides an index into the IDT, GDT, or current LDT to the segment or gate selector being referenced by the error code. In some cases the error code is null (that is, all bits in the lower word are clear). A null error code indicates that the error was not caused by a reference to a specific segment or that a null segment descriptor was referenced in an operation.


Anmelden zum Antworten