Rev 2415 | Rev 2464 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 2415 | Rev 2418 | ||
|---|---|---|---|
| Line 130... | Line 130... | ||
| 130 | /** Decides whether read or write into memory is requested. |
130 | /** Decides whether read or write into memory is requested. |
| 131 | * |
131 | * |
| 132 | * @param instr_addr Address of instruction which tries to access memory. |
132 | * @param instr_addr Address of instruction which tries to access memory. |
| 133 | * @param badvaddr Virtual address the instruction tries to access. |
133 | * @param badvaddr Virtual address the instruction tries to access. |
| 134 | * |
134 | * |
| 135 | * @return Type of access into memmory, #PF_ACCESS_EXEC if no memory access is requested. |
135 | * @return Type of access into memory, PF_ACCESS_EXEC if no memory access is requested. |
| 136 | */ |
136 | */ |
| 137 | static pf_access_t get_memory_access_type(uint32_t instr_addr, uintptr_t badvaddr) |
137 | static pf_access_t get_memory_access_type(uint32_t instr_addr, uintptr_t badvaddr) |
| 138 | { |
138 | { |
| 139 | instruction_union_t instr_union; |
139 | instruction_union_t instr_union; |
| 140 | instr_union.pc = instr_addr; |
140 | instr_union.pc = instr_addr; |