Skip to content

Commit e0f65eb

Browse files
committed
Updated Limine to version v9
1 parent 9f24063 commit e0f65eb

File tree

9 files changed

+298
-177
lines changed

9 files changed

+298
-177
lines changed

.github/workflows/clang-format.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
steps:
88
- uses: actions/checkout@v3
99
- name: Run clang-format
10-
uses: jidicula/clang-format-action@v4.11.0
10+
uses: jidicula/clang-format-action@v4.14.0
1111
with:
12-
clang-format-version: '18'
12+
clang-format-version: '19'
1313
exclude-regex: './include/limine.h'

arch/x86_64/boot/limine.c

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -32,45 +32,45 @@ USED static volatile struct limine_bootloader_info_request
3232
bootloader_info_request = {
3333
.id = LIMINE_BOOTLOADER_INFO_REQUEST,
3434
.revision = 1,
35-
.response = NULL,
35+
.response = nullptr,
3636
};
3737

3838
SECTION(".limine_requests")
3939
USED static volatile struct limine_framebuffer_request framebuffer_request = {
4040
.id = LIMINE_FRAMEBUFFER_REQUEST,
4141
.revision = 1,
42-
.response = NULL,
42+
.response = nullptr,
4343
};
4444

4545
SECTION(".limine_requests")
4646
USED static volatile struct limine_memmap_request memmap_request = {
4747
.id = LIMINE_MEMMAP_REQUEST,
4848
.revision = 1,
49-
.response = NULL,
49+
.response = nullptr,
5050
};
5151

5252
SECTION(".limine_requests")
5353
USED static volatile struct limine_module_request module_request = {
5454
.id = LIMINE_MODULE_REQUEST,
5555
.revision = 1,
56-
.response = NULL,
56+
.response = nullptr,
5757
.internal_module_count = 0,
58-
.internal_modules = NULL,
58+
.internal_modules = nullptr,
5959
};
6060

6161
SECTION(".limine_requests")
6262
USED static volatile struct limine_paging_mode_request paging_request = {
6363
.id = LIMINE_PAGING_MODE_REQUEST,
6464
.revision = 1,
65-
.response = NULL,
66-
.mode = LIMINE_PAGING_MODE_MAX,
67-
.min_mode = LIMINE_PAGING_MODE_MIN,
68-
.max_mode = LIMINE_PAGING_MODE_MAX,
65+
.response = nullptr,
66+
.mode = LIMINE_PAGING_MODE_X86_64_4LVL,
67+
.min_mode = LIMINE_PAGING_MODE_X86_64_4LVL,
68+
.max_mode = LIMINE_PAGING_MODE_X86_64_4LVL,
6969
};
7070

7171
SECTION(".limine_requests")
7272
USED static volatile struct limine_hhdm_request hhdm_request = {
73-
.id = LIMINE_HHDM_REQUEST, .revision = 0, .response = NULL};
73+
.id = LIMINE_HHDM_REQUEST, .revision = 0, .response = nullptr};
7474

7575
SECTION(".limine_requests")
7676
USED static volatile struct limine_kernel_address_request
@@ -135,7 +135,7 @@ NONNULL void limine_handle_requests(struct boot_info* boot_info) {
135135
bootloader_info_request.response->revision,
136136
bootloader_info_request.response->version);
137137

138-
if (paging_request.response == NULL)
138+
if (paging_request.response == nullptr)
139139
panic("No paging available");
140140

141141
info("paging mode: LVL%d\n", paging_request.mode ? 5 : 4);

0 commit comments

Comments
 (0)