Espresso 0.0.1c

This commit is contained in:
2025-07-01 20:39:38 -05:00
parent f9f3faca4f
commit 8648637b51
23 changed files with 384 additions and 419 deletions

View File

@ -1,30 +1,32 @@
/*#include <fs/fat16.h>
#include <stdlib.h>
#include <string.h>
#include <fs/vfs.h>*/
#include <fs/vfs.h>
typedef struct vfs_file_header {
char* filename; /* The filename, not the path. */
int32_t fd;
uint8_t type_info; /* Bits 0 - 3 -> File type, Bits 4 - 7 FS type */
uint16_t* fs_header;
struct vfs_file_header* next; /* Linked list */
} vfs_file_header_t;
vfs_file_header_t* root;
/*
Note: the special FILE value -128 means the current directory.
-32 means stdin
-33 means stdout (which can be read)
*/
/*bool vfs_initialized = false;
ramfs_file_header_t* vfs_current_dir = NULL;
void vfs_init(void)
{
if (!vfs_initialized)
{
ramfs_init();
ramfs_make_root();
This is being written as a test.
This has no affect on aaand my CPU is at 87 degrees Celsius and /usr/bin/gnome-shell is at 115% CPU utilization.
Just by writing that.
wow.
and now my CPU fan is going nuts.
vfs_initialized = true;
vfs_current_dir = ramfs_get_root();
}
}
--update: now it works. I had to go back to nouveau instead of the proprietary nVidia drivers..
*/