Changeset 60d931d in mainline


Ignore:
Timestamp:
2012-09-07T15:00:02Z (12 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
1dbd189, 3451129
Parents:
23c1fae
Message:

arm32: Print instruction code instead of pc.

The text says it is instruction code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/arm32/src/mm/page_fault.c

    r23c1fae r60d931d  
    8383 *
    8484 * @return Type of access into memory, PF_ACCESS_EXEC if no memory access is
    85  *         requested.
     85 *         requested.
    8686 */
    8787static pf_access_t get_memory_access_type(uint32_t instr_addr,
     
    125125                { 0x0fb00000, 0x01000000, PF_ACCESS_WRITE },
    126126        };
    127         uint32_t inst = *(uint32_t*)instr_addr;
     127        const uint32_t inst = *(uint32_t*)instr_addr;
    128128        for (unsigned i = 0; i < sizeof(ls_inst) / sizeof(ls_inst[0]); ++i) {
    129129                if ((inst & ls_inst[i].mask) == ls_inst[i].value) {
     
    134134        panic("page_fault - instruction doesn't access memory "
    135135            "(instr_code: %#0" PRIx32 ", badvaddr:%p).",
    136             instr_union.pc, (void *) badvaddr);
     136            inst, (void *) badvaddr);
    137137}
    138138
Note: See TracChangeset for help on using the changeset viewer.