summaryrefslogtreecommitdiffstats
path: root/sw/z80/kernel/include/boot.h
diff options
context:
space:
mode:
authorleleraffa97@hotmail.it <leleraffa97@hotmail.it>2017-06-15 19:16:17 +0200
committerleleraffa97@hotmail.it <leleraffa97@hotmail.it>2017-06-15 19:16:17 +0200
commit2429b5fe88f7ce886b73c52168a802bff842f47f (patch)
tree9cf05169a300cb1866aa70c1e660546964347f7b /sw/z80/kernel/include/boot.h
parentKernel memory mapping setup (diff)
downloadz80uPC-2429b5fe88f7ce886b73c52168a802bff842f47f.tar.gz
z80uPC-2429b5fe88f7ce886b73c52168a802bff842f47f.zip
Boot loader structures (WORK IN PROGRESS)
Some Program manager structures, macros and functions (WORK IN PROGRESS)
Diffstat (limited to '')
-rw-r--r--sw/z80/kernel/include/boot.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/sw/z80/kernel/include/boot.h b/sw/z80/kernel/include/boot.h
new file mode 100644
index 0000000..d581687
--- /dev/null
+++ b/sw/z80/kernel/include/boot.h
@@ -0,0 +1,18 @@
+#ifndef BOOT_H
+#define BOOT_H
+
+#define LOGIN_PC // TODO find an address in ROM, to perform jumps
+
+#define EXEC_STATUS // TODO find an address in Kernel space
+
+struct exec_status {
+
+ volatile int logged_in:1; // authenticated
+ volatile int k_control:1; // no running programs
+ volatile int program_id:1; // current running program id, see "progman.h"
+ volatile int hidden_pc:13; // program counter of the paused program
+};
+
+void boot_init();
+
+#endif \ No newline at end of file