summaryrefslogtreecommitdiff
path: root/src/kernel/main.c
diff options
context:
space:
mode:
authorBenji Dial <Benji3.141@gmail.com>2019-12-25 13:53:18 -0500
committerBenji Dial <Benji3.141@gmail.com>2019-12-25 13:53:18 -0500
commit2c542b87ff3dc2eacc036dc296a81f8fc215e6d9 (patch)
tree0dc1f733b33c45121b806343f7d00bbda03aced8 /src/kernel/main.c
parent2b7b69e1ffd00aefa60d73a5af3bacc1c803a930 (diff)
downloadportland-os-2c542b87ff3dc2eacc036dc296a81f8fc215e6d9.tar.gz
some more, tag part doesn't work
Diffstat (limited to 'src/kernel/main.c')
-rw-r--r--src/kernel/main.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/kernel/main.c b/src/kernel/main.c
index 29c0a4d..75edeec 100644
--- a/src/kernel/main.c
+++ b/src/kernel/main.c
@@ -79,12 +79,17 @@ bool have_boot_device = false;
bool have_mmap = false;
enum error_codes {
- NO_BOOT_DEVICE = 0,
- NO_MMAP = 1,
- INSUFF_MEMORY = 2
+ NO_BOOT_DEVICE = 000000000000,
+ NO_MMAP = 000000000001,
+ INSUFF_MEMORY = 000000000002
};
uint32_t main(void) {
+ for (uint32_t *i = (uint32_t *)VGA_BUFFER; i < (uint32_t *)0x000b8fa0; ++i)
+ *i = 0x70207020;
+
+ put_sz("Starting...\n");
+
uint32_t info_size = *(uint32_t *)info_pointer;
struct tag_start *tag_pointer = (struct tag_start *)(info_pointer + 2);
@@ -196,7 +201,6 @@ uint32_t main(void) {
if (!((proc_table = allocate_block(sizeof(struct proc_info) * 65536, KERNEL)) &&
(file_table = allocate_block(sizeof(struct file_info) * 65536, KERNEL))))
return INSUFF_MEMORY;
- ;
put_sz("Welcome to Portland version 0.0.9!\n");
while (1)