Skip to content

Commit e30af32

Browse files
committed
Routine style modifications and robustness enhancements.
1 parent 82c7a23 commit e30af32

104 files changed

Lines changed: 424 additions & 505 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/main.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,22 @@ on:
66
paths:
77
- 'boot/**'
88
- 'drivers/**'
9+
- 'fs/**'
910
- 'include/**'
1011
- 'init/**'
1112
- 'kernel/**'
1213
- 'libs/**'
14+
- 'mem/**'
1315
pull_request:
1416
paths:
1517
- 'boot/**'
1618
- 'drivers/**'
19+
- 'fs/**'
1720
- 'include/**'
1821
- 'init/**'
1922
- 'kernel/**'
2023
- 'libs/**'
24+
- 'mem/**'
2125

2226
jobs:
2327
build:

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,10 +152,10 @@ clean: info
152152
$(Q)printf "Clean completed.\n"
153153

154154
format: info $(C_SOURCES:%=%.fmt) $(C_HEADERS:%=%.fmt)
155-
$(Q)printf "Code Format complete.\n"
155+
$(Q)printf "\nCode Format complete.\n"
156156

157157
check: info $(C_SOURCES:%=%.tidy) $(C_HEADERS:%=%.tidy)
158-
$(Q)printf "Code Checks complete.\n"
158+
$(Q)printf "\nCode Checks complete.\n"
159159

160160
gen.clangd: info
161161
$(Q)$(RM) -f .clangd

assets/Limine/Limine/limine.conf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
default_entry: 1
22
timeout: 3
33
verbose: yes
4-
54
wallpaper: boot():/Limine/background.jpg
65

76
/Uinxed-Kernel

boot/limine_module.c

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99
*
1010
*/
1111

12-
#include "limine_module.h"
13-
#include "limine.h"
14-
#include "printk.h"
15-
#include "string.h"
16-
#include "uinxed.h"
12+
#include <limine.h>
13+
#include <limine_module.h>
14+
#include <printk.h>
15+
#include <string.h>
16+
#include <uinxed.h>
1717

1818
lmodule_t lmodule[128];
1919
log_buffer_t lmodule_log;
@@ -22,6 +22,8 @@ static size_t lmodule_count = 0;
2222
/* Extract filename from module path */
2323
static void extract_name(const char *input, char *output, size_t output_size)
2424
{
25+
if (!input || !output || !output_size) return;
26+
2527
const char *slash = strrchr(input, '/');
2628
const char *name = slash ? slash + 1 : input;
2729
size_t len = 0;
@@ -36,6 +38,7 @@ static void extract_name(const char *input, char *output, size_t output_size)
3638
/* Find resource modules by module name */
3739
lmodule_t *get_lmodule(const char *lmodule_name)
3840
{
41+
if (!lmodule_name) return 0;
3942
for (size_t i = 0; i < lmodule_count; i++)
4043
if (!strcmp(lmodule[i].name, lmodule_name)) return &lmodule[i];
4144
return 0;

boot/limine_request.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
*
1010
*/
1111

12-
#include "limine.h"
13-
#include "uinxed.h"
12+
#include <limine.h>
13+
#include <uinxed.h>
1414

1515
__attribute__((used, section(".limine_requests"))) volatile struct limine_rsdp_request rsdp_request = {
1616
.id = LIMINE_RSDP_REQUEST,

drivers/acpi/acpi.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@
99
*
1010
*/
1111

12-
#include "acpi.h"
13-
#include "apic.h"
14-
#include "hhdm.h"
15-
#include "limine.h"
16-
#include "printk.h"
17-
#include "stdint.h"
18-
#include "uinxed.h"
12+
#include <acpi.h>
13+
#include <apic.h>
14+
#include <hhdm.h>
15+
#include <limine.h>
16+
#include <printk.h>
17+
#include <stdint.h>
18+
#include <uinxed.h>
1919

2020
xsdt_t *xsdt = 0;
2121
rsdt_t *rsdt = 0;

drivers/acpi/facp.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@
99
*
1010
*/
1111

12-
#include "acpi.h"
13-
#include "common.h"
14-
#include "hhdm.h"
15-
#include "printk.h"
16-
#include "stdint.h"
17-
#include "string.h"
18-
#include "timer.h"
12+
#include <acpi.h>
13+
#include <common.h>
14+
#include <hhdm.h>
15+
#include <printk.h>
16+
#include <stdint.h>
17+
#include <string.h>
18+
#include <timer.h>
1919

2020
uint16_t SLP_TYPa;
2121
uint16_t SLP_TYPb;

drivers/block/ide.c

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@
99
*
1010
*/
1111

12-
#include "ide.h"
13-
#include "apic.h"
14-
#include "common.h"
15-
#include "interrupt.h"
16-
#include "pci.h"
17-
#include "printk.h"
18-
#include "stddef.h"
19-
#include "stdint.h"
20-
#include "timer.h"
12+
#include <apic.h>
13+
#include <common.h>
14+
#include <ide.h>
15+
#include <interrupt.h>
16+
#include <pci.h>
17+
#include <printk.h>
18+
#include <stddef.h>
19+
#include <stdint.h>
20+
#include <timer.h>
2121

2222
/* Request for operation IDE Controller */
2323
pci_finding_request_t ide_pci_request = {

drivers/bus/pci.c

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@
99
*
1010
*/
1111

12-
#include "pci.h"
13-
#include "acpi.h"
14-
#include "alloc.h"
15-
#include "common.h"
16-
#include "debug.h"
17-
#include "hhdm.h"
18-
#include "printk.h"
19-
#include "stddef.h"
20-
#include "stdint.h"
21-
#include "stdlib.h"
12+
#include <acpi.h>
13+
#include <common.h>
14+
#include <debug.h>
15+
#include <heap.h>
16+
#include <hhdm.h>
17+
#include <pci.h>
18+
#include <printk.h>
19+
#include <stddef.h>
20+
#include <stdint.h>
21+
#include <stdlib.h>
2222

2323
mcfg_t mcfg_info;
2424

drivers/char/cmdline.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
*
1010
*/
1111

12-
#include "limine.h"
13-
#include "uinxed.h"
12+
#include <limine.h>
13+
#include <uinxed.h>
1414

1515
/* Get the kernel command line */
1616
const char *get_cmdline(void)

0 commit comments

Comments
 (0)