devvmx: call vmxshutdown from reboot() function manually
This commit is contained in:
parent
6ed716eab6
commit
bd4513fe87
5 changed files with 6 additions and 2 deletions
|
@ -1844,7 +1844,7 @@ vmxnew(void)
|
|||
return vmx;
|
||||
}
|
||||
|
||||
static void
|
||||
void
|
||||
vmxshutdown(void)
|
||||
{
|
||||
int i;
|
||||
|
@ -2203,7 +2203,7 @@ Dev vmxdevtab = {
|
|||
|
||||
vmxreset,
|
||||
devinit,
|
||||
vmxshutdown,
|
||||
devshutdown,
|
||||
vmxattach,
|
||||
vmxwalk,
|
||||
vmxstat,
|
||||
|
|
|
@ -198,6 +198,7 @@ void vectortable(void);
|
|||
void* vmap(ulong, int);
|
||||
int vmapsync(ulong);
|
||||
void vmxprocrestore(Proc *);
|
||||
void vmxshutdown(void);
|
||||
void vunmap(void*, int);
|
||||
void wbinvd(void);
|
||||
void writeconf(void);
|
||||
|
|
|
@ -735,6 +735,7 @@ reboot(void *entry, void *code, ulong size)
|
|||
ulong *pdb;
|
||||
|
||||
writeconf();
|
||||
vmxshutdown();
|
||||
|
||||
/*
|
||||
* the boot processor is cpu0. execute this function on it
|
||||
|
|
|
@ -190,6 +190,7 @@ void upafree(uintptr, int);
|
|||
void upareserve(uintptr, int);
|
||||
void vectortable(void);
|
||||
void vmxprocrestore(Proc *);
|
||||
void vmxshutdown(void);
|
||||
void* vmap(uintptr, int);
|
||||
void vunmap(void*, int);
|
||||
void wbinvd(void);
|
||||
|
|
|
@ -350,6 +350,7 @@ reboot(void *entry, void *code, ulong size)
|
|||
void (*f)(uintptr, uintptr, ulong);
|
||||
|
||||
writeconf();
|
||||
vmxshutdown();
|
||||
|
||||
/*
|
||||
* the boot processor is cpu0. execute this function on it
|
||||
|
|
Loading…
Reference in a new issue