zephyr/arch/x86/core
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
..
ia32 debug: gdbstub: remove start argument from z_gdb_main_loop() 2021-11-30 15:24:00 -05:00
intel64 arch/x86_64: Add hook for CONFIG_SCHED_THREAD_USAGE accounting in ISRs 2021-11-08 21:32:20 -05:00
offsets arch/x86: Use NMI stack for NMIs 2020-12-10 17:06:17 +02:00
acpi.c x86: acpi: Fix address-of-packed-mem warning 2021-12-10 14:08:59 +01:00
cache.c x86/cache: fix issues in arch dcache flush function 2021-07-23 16:22:07 -04:00
CMakeLists.txt cmake: Support coverage flags on all archs 2021-06-10 18:01:36 -04:00
common.S tests: boot_time: remove all the code and instrumentation feeding into test 2021-05-05 10:41:15 -04:00
cpuhalt.c x86: ia32: mark symbols for boot and pinned regions 2021-05-10 16:00:43 -05:00
early_serial.c x86: make tests of a value against zero should be made explicit 2021-04-01 05:34:17 -04:00
fatal.c arch: add comments to empty default case, add default LOG_ERR 2021-06-22 08:23:43 -04:00
ia32.cmake cmake: oneApi: add oneApi support on windows. 2021-07-27 07:20:12 -04:00
intel64.cmake coredump: add support for x86 and x86_64 2020-08-24 20:28:24 -04:00
Kconfig.ia32 x86/cache: fix issues in arch dcache flush function 2021-07-23 16:22:07 -04:00
Kconfig.intel64 x86: smp: add TLB shootdown logic 2020-11-05 09:33:40 -05:00
memmap.c linker: align _image_rodata and _image_rom start/end/size linker symbols 2021-08-28 08:48:03 -04:00
multiboot.c x86: multiboot: Fix NULL pointer dereferences 2021-05-25 13:37:19 -04:00
pcie.c arch: x86: core: pcie: rephrase use of ain't 2021-04-29 07:15:50 -04:00
prep_c.c arch/x86: Correct multiboot interpretation when building for EFI 2021-05-15 15:30:02 -04:00
reboot_rst_cnt.c power: move reboot functionality to os lib 2021-04-28 20:34:00 -04:00
spec_ctrl.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
tls.c x86_64: add support for thread local storage 2020-10-24 10:52:00 -07:00
userspace.c x86: userspace: page in stack before starting user thread 2021-08-26 21:16:22 -04:00
x86_mmu.c kernel: mem_domain: arch_mem_domain functions to return errors 2021-11-22 12:45:22 -05:00