rsp should point to the top of the stack

This commit is contained in:
Jozef Nagy 2025-03-10 17:16:29 +01:00
parent 1f0c5049be
commit 67f719c73f
Signed by untrusted user who does not match committer: crz
GPG key ID: 459A4811CEAC7068

View file

@ -60,7 +60,7 @@ void aurix_load(char *kernel)
debug("aurix_load(): Handoff state: pm=0x%llx, stack=0x%llx, kernel_entry=0x%llx\n", pm, stack, kernel_entry); debug("aurix_load(): Handoff state: pm=0x%llx, stack=0x%llx, kernel_entry=0x%llx\n", pm, stack, kernel_entry);
aurix_handoff(pm, (void *)((uint8_t)stack - 16*1024), (uint64_t)kernel_entry, (void *)parameters); aurix_handoff(pm, (void *)((uint8_t)stack + 16*1024), (uint64_t)kernel_entry, (void *)parameters);
// __asm__ volatile("movq %[pml4], %%cr3\n" :: [pml4]"r"(pm) : "memory"); // __asm__ volatile("movq %[pml4], %%cr3\n" :: [pml4]"r"(pm) : "memory");
// __asm__ volatile("callq *%[entry]\n" // __asm__ volatile("callq *%[entry]\n"