fix elf stack issues and interrupt gsbase stuff

This commit is contained in:
Matheus
2022-08-16 19:12:16 -03:00
parent 432e85b837
commit 7a540ca1e1
9 changed files with 37 additions and 13 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ __attribute((noreturn)) void _panic(char* reason, arch_regs *reg){
printf("Panic location: %p\n", reg->rip);
if(reg->rbp != 0){
if(reg->rbp != 0 && reg->cs == 0x28){
printf("Stack trace:\n");
tracestack((uint64_t**)reg->rbp);
}