comparison cos/kernel/kernel.c @ 41:35cc54e078dd

Added memory functions
author windel
date Fri, 03 Feb 2012 17:56:41 +0100
parents 5c20bd53cccd
children
comparison
equal deleted inserted replaced
40:24ce177e01e8 41:35cc54e078dd
11 read_multiboot_info(); // Parse the GRUB multiboot header. 11 read_multiboot_info(); // Parse the GRUB multiboot header.
12 init_memory(available_memory); // Setup a new paging scheme and memory manager 12 init_memory(available_memory); // Setup a new paging scheme and memory manager
13 // From here kmalloc can be used. 13 // From here kmalloc can be used.
14 keyboard_init(); 14 keyboard_init();
15 timer_init(); 15 timer_init();
16 printf("Ramdisk location: %p\n", ramdisk_location); 16 load_ramdisk();
17
18 /*
19 fs_node_t *fs_root = 0;
20
21 fs_root = initialize_initrd(ramdisk_location);
22
23 if (fs_root != 0)
24 {
25 fs_dirent_t *node = 0;
26 int i = 0;
27 while ( (node = readdir_fs(fs_root, i)) != 0)
28 {
29
30 }
31 }
32 */
33 17
34 // TODO: make shell a user space program! 18 // TODO: make shell a user space program!
35 shell(); // Start user shell 19 shell(); // Start user shell
36 } 20 }
37 21