Merge branch 'nocomapi'
[syslinux/sherbszt.git] / core / kaboom.c
blob4c150e7674d851f302577dd69f2562b94acc5ff5
1 /*
2 * kaboom.c
3 */
5 #include "core.h"
7 #if defined(CORE_DEBUG) || defined(DEBUG_PORT)
9 #include <dprintf.h>
11 __export __noreturn __bad_SEG(const volatile void *p)
13 dprintf("SEG() passed an invalid pointer: %p\n", p);
14 kaboom();
17 #endif
19 #undef kaboom
21 __export __noreturn _kaboom(void)
23 extern void kaboom(void);
24 call16(kaboom, &zero_regs, NULL);
25 /* Do this if kaboom somehow returns... */
26 for (;;)
27 asm volatile("hlt");