Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
486 changes: 243 additions & 243 deletions source/compile_commands.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions source/includes/acpi.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include <stdint.h>
#include <stddef.h>

extern char* oem_name;
extern const char* oem_name;

extern bool virtualized;

Expand Down Expand Up @@ -43,7 +43,7 @@ struct acpi_gas {
* @brief Initializes and iterates through all ACPI tables
*
*/
void acpi_init();
void acpi_init(void);

/**
* @brief Searches for an STD Header in the ACPI Tables
Expand Down
4 changes: 3 additions & 1 deletion source/includes/ahci.h
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ typedef struct {
void* fis;
} ahci_port_mem_t;

static ahci_port_mem_t port_mem[32];
extern ahci_port_mem_t port_mem[32];


/**
Expand Down Expand Up @@ -281,5 +281,7 @@ general_partition_t* search_general_partition(cstring partition_name);

mount_entry_t* add_mount(const char* mount_point, const char* part_name, partition_fs_type_t type, void* fs_ptr);
mount_entry_t* find_mount_by_point(const char* mount_point);
int remove_mount(const char* mount_point);
void list_all_mounts(void);

#endif // AHCI_H
2 changes: 1 addition & 1 deletion source/includes/algorithms/hashing.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* @brief Verifies if the hash is working (not really initializing anything)
*
*/
void init_hashing();
void init_hashing(void);

/**
* @brief The function to hash an string (const char *)
Expand Down
10 changes: 5 additions & 5 deletions source/includes/cc-asm.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,29 +14,29 @@
* @brief Halt and catch fire function.
*
*/
void hcf();
void hcf(void);

/**
* @brief The clear interrupts command for all architectures.
*
*/
void clear_interrupts();
void clear_interrupts(void);

/**
* @brief The set interrupts command for various architectures.
*
*/
void set_interrupts();
void set_interrupts(void);

/**
* @brief It uses while loops instead of assembly's halt,
* Good for Userland
*
*/
void high_level_halt();
void high_level_halt(void);

/**
* @brief Halt and catch fire function but doesn't print any text.
*
*/
void hcf2();
void hcf2(void);
19 changes: 10 additions & 9 deletions source/includes/cpuid2.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* @param where An integer array to store the result, with at least 4 elements.
* @return The value of the EAX register after executing CPUID.
*/
static inline int cpuid_string(int code, int where[4]);
int cpuid_string(int code, int where[4]);

/**
* @brief Returns a string representing the CPU type.
Expand All @@ -31,7 +31,7 @@ static inline int cpuid_string(int code, int where[4]);
*
* @return A constant string representing the CPU type.
*/
cstring cpu_string();
cstring cpu_string(void);

/**
* @brief Executes the CPUID instruction and retrieves values of the specified registers.
Expand All @@ -45,38 +45,39 @@ cstring cpu_string();
* @param ecx Pointer to store the value of ECX register.
* @param edx Pointer to store the value of EDX register.
*/
inline void cpuid(int32 reg, int32 *eax, int32 *ebx, int32 *ecx, int32 *edx);
void cpuid(int32 reg, int32 *eax, int32 *ebx, int32 *ecx, int32 *edx);

/**
* @brief Retrieve the CPU vendor string.
*
* @return The CPU vendor string.
*/
cstring get_cpu_vendor();
cstring get_cpu_vendor(void);

/**
* @brief Retrieve the CPU name.
*
* @return The CPU name.
*/
cstring get_cpu_name();
cstring get_cpu_name(void);

/**
* @brief Print CPU information, including the vendor and CPU string.
*/
void print_cpu_info();
void print_cpu_info(void);

/**
* @brief Retrieve and print L1 cache information.
*/
void print_L1_cache_info();
void print_L1_cache_info(void);

/**
* @brief Retrieve and print L2 cache information.
*/
void print_L2_cache_info();
void print_L2_cache_info(void);

/**
* @brief Retrieve and print L3 cache information.
*/
void print_L3_cache_info();
void print_L3_cache_info(void);
bool is_kvm_supported(void);
2 changes: 1 addition & 1 deletion source/includes/drivers/pc-speaker.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ void play_sound(int32 frequency);
* @brief Mutes the PC Speaker temporaily
*
*/
void mute();
void mute(void);

/**
* @brief Does a BEEP in PC Speaker
Expand Down
2 changes: 1 addition & 1 deletion source/includes/drivers/rtl8139.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ extern struct rtl8139* RTL8139;
*
* @param nic
*/
void read_mac_address();
void read_mac_address(void);

/**
* @brief Initialize RTL8139 NIC
Expand Down
4 changes: 2 additions & 2 deletions source/includes/drivers/serial.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ extern int select;
* @brief Finds the working serial COM port in the OS ranging from 1-8
*
*/
void probe_serial();
void probe_serial(void);

/**
* @brief Initialize serial at a specific port
Expand All @@ -52,7 +52,7 @@ int init_serial(int port);
*
* @return int status code
*/
int transmit_status();
int transmit_status(void);

/**
* @brief Put a character to a serial COM
Expand Down
2 changes: 1 addition & 1 deletion source/includes/filesystems/fat16.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ typedef struct {
uint16_t cluster;
} fat16_file_t;

// partition_fs_type_t detect_fat_type_enum(const int8* buf);
partition_fs_type_t detect_fat_type_enum(const int8* buf);
int fat16_mount(int portno, uint32_t partition_lba, fat16_fs_t* fs) ;
uint16_t fat16_read_fat_fs(fat16_fs_t* fs, uint16_t cluster);
int fat16_list_root(fat16_fs_t* fs);
Expand Down
2 changes: 1 addition & 1 deletion source/includes/filesystems/vfs.h
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ int vfs_unlink(const char* path);
* @brief Get the current working directory
* @return Pointer to CWD string
*/
const char* vfs_getcwd();
const char* vfs_getcwd(void);

const char* vfs_basename(const char* path);
int vfs_normalize_path(const char* in, char* out, size_t out_sz);
Expand Down
2 changes: 1 addition & 1 deletion source/includes/gdt.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,5 @@ extern struct gdt_ptr gdtp;
* @brief Set the up GDT for the entire OS.
*
*/
void setup_gdt();
void setup_gdt(void);
#endif
4 changes: 2 additions & 2 deletions source/includes/graphics.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
// #define orange_color "\x1b[38;5;172m"


extern string last_filename;
extern string last_filename; // for warn, info, err, done
extern string last_print_file;
extern string last_print_func;
Expand Down Expand Up @@ -145,6 +144,7 @@ void printf_internal(cstring file, cstring func, int64 line, cstring format, ...
* @param ...
*/
void printfnoln_internal(cstring file, cstring func, int64 line, cstring format, ...);
void eprintf_internal(cstring file, cstring func, int64 line, cstring format, ...);

/**
* @brief Core printf implementation used internally by both printf_internal and printfnoln_internal.
Expand All @@ -166,7 +166,7 @@ void printfnoln_internal(cstring file, cstring func, int64 line, cstring format,
*/
void vprintf_internal(stream_t stream, cstring file, cstring func, int64 line, bool newline, cstring format, va_list argp);

/**
/*
* @brief Formats a string into a buffer using a va_list.
*
* @param buf destination buffer.
Expand Down
Loading