include stuff

This commit is contained in:
Kevin Lange 2014-03-14 23:47:07 -07:00
parent 903f7f6524
commit 818fe2787b
3 changed files with 9 additions and 5 deletions

View File

@ -1,7 +1,8 @@
#include <fs.h>
#ifndef KERNEL_MOD_SHELL_H
#define KERNEL_MOD_SHELL_H
#include <fs.h>
/*
* We're going to have a list of shell commands.
* We'll search through it linearly because I don't

View File

@ -1,9 +1,9 @@
#include <types.h>
#include <hashmap.h>
#ifndef MODULE_H
#define MODULE_H
#include <types.h>
#include <hashmap.h>
typedef struct {
char * name;
int (* initialize)(void);

View File

@ -99,10 +99,13 @@ int kmain(struct multiboot *mboot, uint32_t mboot_mag, uintptr_t esp) {
syscalls_install(); /* Install the system calls */
shm_install(); /* Install shared memory */
modules_install(); /* Modules! */
/* This stuff can probably be made modules once we have better interfaces */
keyboard_install(); /* Keyboard interrupt handler */
mouse_install(); /* Mouse driver */
keyboard_reset_ps2();
/* This stuff NEEDS to become modules... */
serial_mount_devices();
vfs_mount("/dev/null", null_device_create());
vfs_mount("/dev/zero", zero_device_create());