panic: fix stack traces

This commit is contained in:
Matheus
2022-10-17 20:43:04 -03:00
parent 64636a7fc0
commit bfabb9f2dc
+1 -1
View File
@@ -9,8 +9,8 @@
static void tracestack(uint64_t** addr){
for(size_t depth = 0; depth < TRACE_MAXDEPTH; ++depth){
if(addr < (uint64_t)0xFFFFFFFF80000000) return;
uint64_t *calleeaddr = *(addr + 1);
if(calleeaddr < (uint64_t)0xFFFFFFFF80000000) return;
addr = (uint64_t**)*addr;
printf("%lu: %p\n", depth, calleeaddr);