diff options
| author | Ian McFarlane <i.mcfarlane2002@gmail.com> | 2025-04-17 14:19:40 -0400 |
|---|---|---|
| committer | Ian McFarlane <i.mcfarlane2002@gmail.com> | 2025-04-17 14:19:40 -0400 |
| commit | 7108e7c951f7cff79ce4992f1c7d8d0af0bb5af6 (patch) | |
| tree | e99684b87952bded5e51c83848a5d35ab53d9ab0 /kernel/old/include/klib.h | |
| parent | starting on ata (diff) | |
| parent | clang 18 in flake instead of zig (diff) | |
| download | comus-7108e7c951f7cff79ce4992f1c7d8d0af0bb5af6.tar.gz comus-7108e7c951f7cff79ce4992f1c7d8d0af0bb5af6.tar.bz2 comus-7108e7c951f7cff79ce4992f1c7d8d0af0bb5af6.zip | |
Merge branch 'main' into ata
Diffstat (limited to 'kernel/old/include/klib.h')
| -rw-r--r-- | kernel/old/include/klib.h | 57 |
1 files changed, 0 insertions, 57 deletions
diff --git a/kernel/old/include/klib.h b/kernel/old/include/klib.h deleted file mode 100644 index c1d270c..0000000 --- a/kernel/old/include/klib.h +++ /dev/null @@ -1,57 +0,0 @@ -/* -** @file klib.h -** -** @author Warren R. Carithers -** -** Additional support functions for the kernel. -*/ - -#ifndef KLIB_H_ -#define KLIB_H_ - -#include <common.h> - -#ifndef ASM_SRC - -#include <x86/ops.h> - -/** -** Name: put_char_or_code( ch ) -** -** Description: Prints a character on the console, unless it -** is a non-printing character, in which case its hex code -** is printed -** -** @param ch The character to be printed -*/ -void put_char_or_code( int ch ); - -/** -** Name: backtrace -** -** Perform a simple stack backtrace. Could be augmented to use the -** symbol table to print function/variable names, etc., if so desired. -** -** @param ebp Initial EBP to use -** @param args Number of function argument values to print -*/ -void backtrace( uint32_t *ebp, uint_t args ); - -/** -** Name: kpanic -** -** Kernel-level panic routine -** -** usage: kpanic( msg ) -** -** Prefix routine for panic() - can be expanded to do other things -** (e.g., printing a stack traceback) -** -** @param msg[in] String containing a relevant message to be printed, -** or NULL -*/ -void kpanic( const char *msg ); - -#endif /* !ASM_SRC */ - -#endif |