diff options
author | Richard Braun <rbraun@sceen.net> | 2018-01-20 02:31:00 +0100 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2018-01-20 02:31:00 +0100 |
commit | a9190492f9d5a0fb4c72ec606eea99b146f481ad (patch) | |
tree | 778a6c76d31833a5926ce995d17baec9d2f58d8d /arch/x86/machine/lapic.c | |
parent | b4c679bd6093be21cd6e78fca90a4b490e8b83db (diff) |
x86/lapic: don't pack memory map structures
This is actually unneeded and dangerous, as it may cause the compiler to
access registers in multiple instructions.
Diffstat (limited to 'arch/x86/machine/lapic.c')
-rw-r--r-- | arch/x86/machine/lapic.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/machine/lapic.c b/arch/x86/machine/lapic.c index 1a81a18..180a1a2 100644 --- a/arch/x86/machine/lapic.c +++ b/arch/x86/machine/lapic.c @@ -95,7 +95,7 @@ struct lapic_register { uint32_t reserved0; uint32_t reserved1; uint32_t reserved2; -} __packed; +}; /* * Local APIC register map. @@ -171,7 +171,7 @@ struct lapic_map { const struct lapic_register reserved19; struct lapic_register timer_dcr; const struct lapic_register reserved20; -} __packed; +}; /* * Address where local APIC registers are mapped. |