Define USB 2.0 extension descriptor as Usb20ExtDesc
[AROS.git] / rom / kernel / kernel_debug.h
blobce02aa90848929b242b04f4c210db8f506369908
1 /*
2 Copyright © 1995-2013, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc:
6 */
8 /*
9 * This file contains useful redefinition of bug() macro which uses
10 * kernel.resource's own debugging facilities. Include it if you
11 * need bug() in your code.
14 #include <aros/asmcall.h>
15 #include <aros/libcall.h>
16 #include <stdarg.h>
18 #ifdef bug
19 #undef bug
20 #endif
22 int krnPutC(int chr, struct KernelBase *KernelBase);
23 int krnBug(const char *format, va_list args, APTR kernelBase);
24 void krnDisplayAlert(const char *text, struct KernelBase *KernelBase);
25 void krnPanic(struct KernelBase *KernelBase, const char *fmt, ...);
27 static inline void _bug(APTR kernelBase, const char *format, ...)
29 va_list args;
31 va_start(args, format);
33 /*
34 * We use internal entry here. This is done because this function can be used
35 * during early boot, while KernelBase is NULL. However it's still passed,
36 * just in case.
38 krnBug(format, args, kernelBase);
40 va_end(args);
43 #define bug(...) _bug(KernelBase, __VA_ARGS__)
44 #define nbug(...) _bug(NULL, __VA_ARGS__)