Various function we may call assert this fact. We just want to restart
the system.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset: 21550:
cb75117829a6
xen-unstable date: Mon Jun 07 16:41:19 2010 +0100
halt();
}
+ /*
+ * We may be called from an interrupt context, and various functions we
+ * may need to call (alloc_domheap_pages, map_domain_page, ...) assert that
+ * they are not called from interrupt context. This hack keeps them happy.
+ */
+ local_irq_count(0) = 0;
+
smp_send_stop();
mdelay(delay_millisecs);
local_irq_disable();
- /* we may be called from an interrupt context, so to prevent */
- /* 'ASSERT(!in_irq());' in alloc_domheap_pages(), decrease count */
- while ( in_irq() )
- irq_exit();
-
/* Create identity map for tboot shutdown code. */
/* do before S3 integrity because mapping tboot may change xenheap */
map_base = PFN_DOWN(g_tboot_shared->tboot_base);