aboutsummaryrefslogtreecommitdiff
path: root/include/apos/debug.h
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2021-12-29 23:23:36 +0200
committerKimplul <kimi.h.kuparinen@gmail.com>2021-12-29 23:53:06 +0200
commit4f4d9fdc89c27aa3346467a24b621954f4564d3b (patch)
treec4ba4fb583a43b8fb27730b4cdb9b4b1395da91c /include/apos/debug.h
parent4e5595a089c815febd7a0d42ab62940bf13f73ac (diff)
downloadkmi-4f4d9fdc89c27aa3346467a24b621954f4564d3b.tar.gz
kmi-4f4d9fdc89c27aa3346467a24b621954f4564d3b.zip
Refactoring
+ Mainly just moving stuff out or arch/riscv/ that should be handled in common/ + Prepared separate process stack/call stack for server callbacks, rest to be implemeted soon ish
Diffstat (limited to 'include/apos/debug.h')
-rw-r--r--include/apos/debug.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/include/apos/debug.h b/include/apos/debug.h
index 5830c45..1a3265f 100644
--- a/include/apos/debug.h
+++ b/include/apos/debug.h
@@ -2,26 +2,28 @@
#define APOS_DEBUG_H
#include <apos/attrs.h>
+#include <apos/pmem.h>
#ifdef DEBUG
-enum serial_dev_t {
+enum serial_dev {
/* only the NS16550A and compatible at the moment */
NS16550A,
};
-struct dbg_info_t {
- void *dbg_ptr;
- enum serial_dev_t dev;
+struct dbg_info {
+ pm_t dbg_ptr;
+ enum serial_dev dev;
};
void __fmt(1, 2) dbg(const char *fmt, ...);
-void dbg_init(void *pt, enum serial_dev_t dev);
-struct dbg_info_t dbg_from_fdt(void *fdt);
+void setup_dbg(pm_t pt, enum serial_dev dev);
+struct dbg_info dbg_from_fdt(void *fdt);
#else
#define dbg(...)
#define dbg_init(...)
+#define dbg_from_fdt(...)
#endif /* DEBUG */