VM: align frame buffer
Lack of alignment causes minix_stack_fill to produce an incorrect frame layout, subsequently resulting in a crash of the started process. For now, we assume that the other callers of minix_stack_fill do get an aligned buffer through sbrk(3), but this may have to be changed later as well. Change-Id: I1575bd62b050749d1a1aae7417310c91713462c3
This commit is contained in:
parent
5ba2e6e6e8
commit
65c4b82f02
1 changed files with 1 additions and 1 deletions
|
@ -346,7 +346,7 @@ static void exec_bootproc(struct vmproc *vmp, struct boot_image *ip)
|
|||
char *argv[] = { ip->proc_name, NULL };
|
||||
char *envp[] = { NULL };
|
||||
char *path = ip->proc_name;
|
||||
char frame[VM_PAGE_SIZE];
|
||||
char frame[VM_PAGE_SIZE] __aligned(sizeof(void *));
|
||||
|
||||
memset(&vmexeci, 0, sizeof(vmexeci));
|
||||
|
||||
|
|
Loading…
Reference in a new issue