zephyr/arch/x86
Carles Cufi 4f64ae383d x86: acpi: Fix address-of-packed-mem warning
The warning below appears once -Waddress-of-packed-mem is enabled:

/home/carles/src/zephyr/zephyr/arch/x86/core/acpi.c: In function
'z_acpi_find_table':
/home/carles/src/zephyr/zephyr/arch/x86/core/acpi.c:190:24: warning:
taking address of packed member of 'struct acpi_xsdt' may result in an
unaligned pointer value [-Waddress-of-packed-member]
  190 |    for (uint64_t *tp = &xsdt->table_ptrs[0]; tp < end; tp++) {

To avoid the warning, use an intermediate void * variable.

More info in #16587.

Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
2021-12-10 14:08:59 +01:00
..
core x86: acpi: Fix address-of-packed-mem warning 2021-12-10 14:08:59 +01:00
include x86: mmu: relax KERNEL_VM_OFFSET == SRAM_OFFSET 2021-05-05 19:42:25 -04:00
zefi arch/x86/zefi: Fix entry-nop hack for EFI entry 2021-06-14 08:22:34 -04:00
CMakeLists.txt x86: gen_mmu: allow script to take extra arguments 2021-03-28 08:30:06 -04:00
gen_gdt.py scripts/arch: remove usage of deprecated LooseVersion 2021-11-19 19:16:11 -05:00
gen_idt.py scripts/arch: remove usage of deprecated LooseVersion 2021-11-19 19:16:11 -05:00
gen_mmu.py scripts/arch: remove usage of deprecated LooseVersion 2021-11-19 19:16:11 -05:00
ia32.cmake cmake: oneApi: add oneApi support on windows. 2021-07-27 07:20:12 -04:00
intel64.cmake x86: add kconfigs and compiler flags for MMX and SSE* 2021-02-15 08:21:15 -05:00
Kconfig x86: reduce VM size if ACPI to 1GB 2021-06-11 16:12:52 +02:00
timing.c x86: timing: fix potential divide by zero 2021-04-29 16:49:17 -04:00