Implement stack growth for system calls and add stack pointer tracking to thread

This commit is contained in:
EDiasAlberto
2024-11-27 19:21:43 +00:00
parent c670c29e47
commit c74a8c55aa
2 changed files with 31 additions and 3 deletions

View File

@@ -143,6 +143,10 @@ struct thread
struct hash open_files; /* Hash Table of FD -> Struct File. */
#endif
#ifdef VM
void *curr_esp;
#endif
/* Owned by thread.c. */
unsigned magic; /* Detects stack overflow. */
};