5 libbasetype struct KernelBase
9 #include <aros/kernel.h>
10 #include <exec/memory.h>
11 #include <utility/tagitem.h>
16 static inline void __inline_KrnPrintf(APTR __KernelBase, const char *format, ...)
20 va_start(args, format);
23 AROS_LCA(const char *, format, A0),
24 AROS_LCA(va_list, args, A1),
25 APTR, __KernelBase, 12, Kernel);
30 #define KrnPrintf(...) __inline_KrnPrintf(KernelBase, __VA_ARGS__)
34 #include <aros/kernel.h>
35 #include <kernel_base.h>
38 KRN_SchedType KrnGetScheduler() ()
39 void KrnSetScheduler(KRN_SchedType sched) (D0)
44 void * KrnAddIRQHandler(uint8_t irq, void *handler, void *handlerData, void *handlerData2) (D0, A0, A1, A2)
45 void KrnRemIRQHandler(void * handle) (A0)
48 struct TagItem *KrnGetBootInfo() ()
49 int KrnBug(const char *format, va_list args) (A0, A1)
51 void * KrnAddExceptionHandler(uint8_t irq, void *handler, void *handlerData, void *handlerData2) (D0, A0, A1, A2)
52 void KrnRemExceptionHandler(void * handle) (A0)
53 int KrnMapGlobal(void *virtual, void *physical, uint32_t length, KRN_MapAttr flags) (A0, A1, D0, D1)
54 int KrnUnmapGlobal(void *virtual, uint32_t length) (A0, D0)
55 void *KrnCreateContext() ()
56 void KrnDeleteContext(void *context) (A0)
57 void *KrnVirtualToPhysical(void *virt) (A0)
58 void KrnSetProtection(void *address, uint32_t length, KRN_MapAttr flags) (A0, D0, D1)
59 .skip 3 # These were debug info functions, moved to debug.library
60 void KrnPutChar(char c) (D0)
61 int KrnMayGetChar() ()
62 void *KrnAllocPages(void *addr, uintptr_t length, uint32_t flags) (A0, D0, D1)
63 void KrnFreePages(void *phy_addr, uintptr_t length) (A0, D0)
64 intptr_t KrnGetSystemAttr(uint32_t id) (D0)
65 int KrnFormatStr(void *putch, const char *format, va_list args) (A0, A1, A2)
66 void KrnInitMemory(struct MemHeader *mh) (A0)
67 ULONG KrnStatMemoryA(uint32_t flags, struct TagItem *query) (D0, A0)
68 int KrnObtainInput() ()
69 void KrnReleaseInput() ()
70 void KrnDisplayAlert(uint32_t code, const char *text) (D0, A0)
71 unsigned int KrnGetCPUCount() ()
72 unsigned int KrnGetCPUNumber() ()
73 void KrnModifyIRQHandler(void *handle, void *handlerData, void *handlerData2) (A0, A1, A2)
74 # One LVO is reserved here for IPI