Pip
Architecture-dependent parts of Pip: MAL, IAL and boot
|
Benchmarking and serial line output. More...
#include "debug.h"
#include "serial.h"
#include <stdint.h>
#include "libc.h"
#include <stdarg.h>
#include "segment_selectors.h"
#include "hdef.h"
Functions | |
void | krn_puts (char *c) |
Writes a string to the serial output. More... | |
void | panic (int_ctx_t *is) |
Just a loop acting like a kernel panic. More... | |
void | dumpRegs (int_ctx_t *is, uint32_t outputLevel) |
Dumps the registers of a saved interrupt context onto the serial output. More... | |
void | puthex (int n) |
Writes an hexadecimal number to the serial output. More... | |
void | putdec (int n) |
Writes a decimal number to the serial output. More... | |
void | counterUpdate (uint32_t begin) |
void | displayTime () |
void | kprintf (char *fmt,...) |
Variables | |
uint32_t | perfHighBegin |
uint32_t | perfLowBegin |
uint32_t | perfHighEnd |
uint32_t | perfLowEnd |
static char * | bf |
static char | buf [12] |
static unsigned int | num |
static char | uc |
static char | zs |
Benchmarking and serial line output.
void counterUpdate | ( | uint32_t | begin | ) |
void displayTime | ( | ) |
dumpRegs | ( | int_ctx_t * | is, |
uint32_t | outputLevel | ||
) |
Dumps the registers of a saved interrupt context onto the serial output.
is | Interrupted state |
outputLevel | Serial log debugging output level |
void kprintf | ( | char * | fmt, |
... | |||
) |
krn_puts | ( | char * | c | ) |
Writes a string to the serial output.
c | The string to write |
void panic | ( | int_ctx_t * | is | ) |
Just a loop acting like a kernel panic.
void putdec | ( | int | n | ) |
Writes a decimal number to the serial output.
n | The number to write |
void puthex | ( | int | n | ) |
Writes an hexadecimal number to the serial output.
n | The number to write |
|
static |
|
static |
|
static |
uint32_t perfHighBegin |
uint32_t perfHighEnd |
uint32_t perfLowBegin |
uint32_t perfLowEnd |
|
static |
|
static |