bitkeeper revision 1.1041.6.4 (40e53583BjAVOWv5pUOm61mHPjnztg)

Fix 'halt' in xenolinux.
This commit is contained in:
kaf24@scramble.cl.cam.ac.uk committed 2004-07-02 10:14:27 +00:00
1 parent 63415e21f7
commit 293ffba5e1
1 file changed
+6 -2
@@ -115,7 +115,7 @@ void cpu_idle (void)
}
}
void machine_restart(char * __unused)
void machine_restart(char *__unused)
{
/* We really want to get pending console data out before we die. */
extern void xencons_force_flush(void);
@@ -128,7 +128,11 @@ void machine_halt(void)
/* We really want to get pending console data out before we die. */
extern void xencons_force_flush(void);
xencons_force_flush();
HYPERVISOR_shutdown();
for ( ; ; ) /* loop without wasting cpu cycles */
{
HYPERVISOR_shared_info->vcpu_data[0].evtchn_upcall_pending = 0;
HYPERVISOR_block();
}
}
void machine_power_off(void)
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.