Rename __attribute__((packed)) --> __packed
Also unify __attribute__ ((..)) to __attribute__((..)) and handle ((__packed__)) like ((packed)) Change-Id: Ie60a51c3fa92b5009724a5b7c2932e361bf3490c Signed-off-by: Stefan Reinauer <stefan.reinauer@coreboot.org> Reviewed-on: https://review.coreboot.org/15921 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
parent
9f244a5494
commit
6a00113de8
229 changed files with 1020 additions and 704 deletions
|
|
@ -10,7 +10,7 @@ void initialize_cpus(struct bus *cpu_bus);
|
|||
asmlinkage void secondary_cpu_init(unsigned int cpu_index);
|
||||
int cpu_phys_address_size(void);
|
||||
|
||||
#define __cpu_driver __attribute__ ((used, __section__(".rodata.cpu_driver")))
|
||||
#define __cpu_driver __attribute__((used, __section__(".rodata.cpu_driver")))
|
||||
#ifndef __SIMPLE_DEVICE__
|
||||
/** start of compile time generated pci driver array */
|
||||
extern struct cpu_driver _cpu_drivers[];
|
||||
|
|
|
|||
|
|
@ -22,6 +22,7 @@
|
|||
|
||||
#include <arch/cpu.h>
|
||||
#include <types.h>
|
||||
#include <compiler.h>
|
||||
|
||||
#define SMM_DEFAULT_BASE 0x30000
|
||||
#define SMM_DEFAULT_SIZE 0x10000
|
||||
|
|
@ -129,7 +130,7 @@ typedef struct {
|
|||
u64 rdx;
|
||||
u64 rcx;
|
||||
u64 rax;
|
||||
} __attribute__((packed)) amd64_smm_state_save_area_t;
|
||||
} __packed amd64_smm_state_save_area_t;
|
||||
|
||||
|
||||
/* Intel Core 2 (EM64T) SMM State-Save Area
|
||||
|
|
@ -211,7 +212,7 @@ typedef struct {
|
|||
|
||||
u64 cr3;
|
||||
u64 cr0;
|
||||
} __attribute__((packed)) em64t_smm_state_save_area_t;
|
||||
} __packed em64t_smm_state_save_area_t;
|
||||
|
||||
|
||||
/* Intel Revision 30100 SMM State-Save Area
|
||||
|
|
@ -298,7 +299,7 @@ typedef struct {
|
|||
|
||||
u64 cr3;
|
||||
u64 cr0;
|
||||
} __attribute__((packed)) em64t100_smm_state_save_area_t;
|
||||
} __packed em64t100_smm_state_save_area_t;
|
||||
|
||||
/* Intel Revision 30101 SMM State-Save Area
|
||||
* The following processor architectures use this:
|
||||
|
|
@ -397,7 +398,7 @@ typedef struct {
|
|||
|
||||
u64 cr3;
|
||||
u64 cr0;
|
||||
} __attribute__((packed)) em64t101_smm_state_save_area_t;
|
||||
} __packed em64t101_smm_state_save_area_t;
|
||||
|
||||
|
||||
/* Legacy x86 SMM State-Save Area
|
||||
|
|
@ -438,7 +439,7 @@ typedef struct {
|
|||
u32 eflags;
|
||||
u32 cr3;
|
||||
u32 cr0;
|
||||
} __attribute__((packed)) legacy_smm_state_save_area_t;
|
||||
} __packed legacy_smm_state_save_area_t;
|
||||
|
||||
typedef enum {
|
||||
AMD64,
|
||||
|
|
@ -514,7 +515,7 @@ struct smm_runtime {
|
|||
* contiguous like the 1:1 mapping it is up to the caller of the stub
|
||||
* loader to adjust this mapping. */
|
||||
u8 apic_id_to_cpu[CONFIG_MAX_CPUS];
|
||||
} __attribute__ ((packed));
|
||||
} __packed;
|
||||
|
||||
struct smm_module_params {
|
||||
void *arg;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue