Skip to content

Commit

Permalink
acpi: remove duplicate definition in sys/lapic.c
Browse files Browse the repository at this point in the history
  • Loading branch information
xvanc authored and mintsuki committed Sep 16, 2023
1 parent 90b82dc commit cdac49e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 16 deletions.
9 changes: 9 additions & 0 deletions common/lib/acpi.h
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,15 @@ struct madt_x2apic {
uint32_t acpi_processor_uid;
} __attribute__((packed));

struct madt_io_apic {
uint8_t type;
uint8_t length;
uint8_t apic_id;
uint8_t reserved;
uint32_t address;
uint32_t gsib;
} __attribute__((packed));

struct madt_gicc {
struct madt_header header;
uint8_t reserved1[2];
Expand Down
16 changes: 0 additions & 16 deletions common/sys/lapic.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,6 @@
#include <lib/acpi.h>
#include <mm/pmm.h>

struct madt {
struct sdt header;
uint32_t local_controller_addr;
uint32_t flags;
char madt_entries_begin[];
} __attribute__((packed));

struct madt_io_apic {
uint8_t type;
uint8_t length;
uint8_t apic_id;
uint8_t reserved;
uint32_t address;
uint32_t gsib;
} __attribute__((packed));

struct dmar {
struct sdt header;
uint8_t host_address_width;
Expand Down

0 comments on commit cdac49e

Please sign in to comment.