summaryrefslogtreecommitdiffstats
path: root/sw/z80/kernel/include/boot.h
diff options
context:
space:
mode:
authorleleraffa97@hotmail.it <leleraffa97@hotmail.it>2017-06-19 13:46:16 +0200
committerleleraffa97@hotmail.it <leleraffa97@hotmail.it>2017-06-19 13:46:16 +0200
commitf85e54f7982d5fefecddccbb11f5aabd478b91d6 (patch)
treeb94a1b06b32119e73c5722fdf97144ae3411321e /sw/z80/kernel/include/boot.h
parentBoot loader structures (WORK IN PROGRESS) (diff)
downloadz80uPC-f85e54f7982d5fefecddccbb11f5aabd478b91d6.tar.gz
z80uPC-f85e54f7982d5fefecddccbb11f5aabd478b91d6.zip
Authentication section
Programs management
Diffstat (limited to 'sw/z80/kernel/include/boot.h')
-rw-r--r--sw/z80/kernel/include/boot.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/sw/z80/kernel/include/boot.h b/sw/z80/kernel/include/boot.h
index d581687..5310e45 100644
--- a/sw/z80/kernel/include/boot.h
+++ b/sw/z80/kernel/include/boot.h
@@ -1,10 +1,15 @@
#ifndef BOOT_H
#define BOOT_H
+#include "types.h"
+
#define LOGIN_PC // TODO find an address in ROM, to perform jumps
#define EXEC_STATUS // TODO find an address in Kernel space
+#define PWD_ADDR // TODO find an address in ROM, password
+#define PWD_SIZE 8
+
struct exec_status {
volatile int logged_in:1; // authenticated
@@ -15,4 +20,16 @@ struct exec_status {
void boot_init();
+/*
+* It returns 1 if succeded, otherwise 0
+*/
+
+int8_t authenticate(const char *pwd);
+
+/*
+* It sets the password in the ROM space, maximum 8 characters
+*/
+
+void set_pwd(const char *pwd);
+
#endif \ No newline at end of file