Skip to content

Commit

Permalink
limine: Make explicit some implied padding in some structures
Browse files Browse the repository at this point in the history
  • Loading branch information
mintsuki committed Sep 20, 2023
1 parent 644257b commit d9f8ce2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions PROTOCOL.md
Original file line number Diff line number Diff line change
Expand Up @@ -894,7 +894,7 @@ Response:
```c
struct limine_smp_response {
uint64_t revision;
uint32_t flags;
uint64_t flags;
uint64_t bsp_mpidr;
uint64_t cpu_count;
struct limine_smp_info **cpus;
Expand Down Expand Up @@ -943,7 +943,7 @@ Response:
```c
struct limine_smp_response {
uint64_t revision;
uint32_t flags;
uint64_t flags;
uint64_t bsp_hartid;
uint64_t cpu_count;
struct limine_smp_info **cpus;
Expand All @@ -965,7 +965,7 @@ struct limine_smp_info;
typedef void (*limine_goto_address)(struct limine_smp_info *);

struct limine_smp_info {
uint32_t processor_id;
uint64_t processor_id;
uint64_t hartid;
uint64_t reserved;
limine_goto_address goto_address;
Expand Down
6 changes: 3 additions & 3 deletions limine.h
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ struct limine_smp_info {

struct limine_smp_response {
uint64_t revision;
uint32_t flags;
uint64_t flags;
uint64_t bsp_mpidr;
uint64_t cpu_count;
LIMINE_PTR(struct limine_smp_info **) cpus;
Expand All @@ -339,7 +339,7 @@ struct limine_smp_response {
#elif defined (__riscv) && (__riscv_xlen == 64)

struct limine_smp_info {
uint32_t processor_id;
uint64_t processor_id;
uint64_t hartid;
uint64_t reserved;
LIMINE_PTR(limine_goto_address) goto_address;
Expand All @@ -348,7 +348,7 @@ struct limine_smp_info {

struct limine_smp_response {
uint64_t revision;
uint32_t flags;
uint64_t flags;
uint64_t bsp_hartid;
uint64_t cpu_count;
LIMINE_PTR(struct limine_smp_info **) cpus;
Expand Down

0 comments on commit d9f8ce2

Please sign in to comment.