|
|
|
@ -135,12 +135,12 @@ bool x86_get_memory_region(uint64_t *start, uint64_t *len, unsigned long *cnt);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Prints the last instruction's address |
|
|
|
|
* |
|
|
|
|
* @todo: Not supported |
|
|
|
|
*/ |
|
|
|
|
static inline void cpu_print_last_instruction(void) |
|
|
|
|
{ |
|
|
|
|
printf("n/a"); |
|
|
|
|
void *p; |
|
|
|
|
__asm__("1: mov 1b, %0" : "=r" (p)); |
|
|
|
|
printf("%p\n", p); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus |
|
|
|
|