Skip to content

Commit

Permalink
Major fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
captain-n3m0 committed May 9, 2023
1 parent fb7cb2b commit 051b6d4
Show file tree
Hide file tree
Showing 8 changed files with 32 additions and 22 deletions.
4 changes: 2 additions & 2 deletions Kernel16F.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ void main()

void panic(char *message)
{
print("!!!KERNEL PANIC!!!: ");
print(message);
printf("!!!KERNEL PANIC!!!: ");
printf(message);
while (1)
{
}
Expand Down
6 changes: 3 additions & 3 deletions disk_operations/disk.c
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#include "../headers/stdio.h"
#include "disk.h"
#include "config.h"
#include "memory_manager.h"
#include "kernel.h"
#include "memory/kheap.h"
#include "../memory_manager/mem_manager.h"
#include "Kernel16F.h"

static struct disk disks[Kernel16F_MAX_DISKS];
static int num_disks = 0;
Expand Down
2 changes: 1 addition & 1 deletion display/display.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <stdio.h>
#include "../headers/stdio.h"
#include "display.h"

void display_init() {
Expand Down
9 changes: 5 additions & 4 deletions fat16/fat16fs.c
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
#include "fat16fs.h"
#include "../headers/stdio.h"
#include "../fat16/fat16fs.h"
#include "memory_manager/mem_manager.h"
#include "string_manipulation/string_utils.h"
#include "status.h"
#include "config.h"
#include "disk_operations/disk.h"
#include "../Kernel16F/status.h"
#include "../Kernel16F/config.h"
#include "../disk_operations/disk.h"

struct fat_header_extended
{
Expand Down
4 changes: 2 additions & 2 deletions fat16/fat16fs.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include "filesystem/filesystem.h"
#include "types.h"
#include "../filesystem/filesystem.h"
#include "../types.h"

#define Kernel16F_FAT16_SIGNATURE 0x29

Expand Down
17 changes: 9 additions & 8 deletions filesystem/filesystem.c
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
#include "file.h"
#include "config.h"
#include "kernel.h"
#include "memory/memory.h"
#include "fat16/fat16.h"
#include "disk_operations/disk.h"
#include "string_manipulation/string.h"
#include "status.h"
#include "filesystem.h"
#include "../config.h"
#include "../Kernel16F.h"
#include "../memory_manager/mem_manager.h"
#include "../fat16/fat16fs.h"
#include "../disk_operations/disk.h"
#include "../string_manipulation/string_utils.h"
#include "../status.h"
#include "../headers/stdlib.h"

#define MAX_FILESYSTEMS 10
struct filesystem *filesystems[MAX_FILESYSTEMS];
Expand Down
4 changes: 2 additions & 2 deletions filesystem/filesystem.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#ifndef FILESYSTEM_H
#define FILESYSTEM_H

#include <stdio.h>
#include "/disk_operations/disk.h"
#include "../headers/stdio.h"
#include "../disk_operations/disk.h"

typedef void* (*FS_OPEN_FUNCTION)(struct disk* disk, char* filename, char mode);
typedef int (*FS_RESOLVE_FUNCTION)(struct disk* disk);
Expand Down
8 changes: 8 additions & 0 deletions types.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#ifndef TYPES_H
#define TYPES_H

typedef unsigned char uint8;
typedef unsigned short uint16;
typedef unsigned long uint32;

#endif

0 comments on commit 051b6d4

Please sign in to comment.