zephyr/samples/boards/intel/adsp/code_relocation/src/reloc.c
Benjamin Cabé e2c1b93a5c samples: boards: intel: group Intel board samples
Group all Intel board samples in samples/boards/intel to
keep samples/boards/ organized by vendor
Added missing code-sample directive to the code relocation sample.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2024-09-13 13:43:09 +02:00

17 lines
317 B
C

/*
* Copyright (c) 2022 Intel Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <zephyr/kernel.h>
static uint32_t maybe_bss;
void reloc(void)
{
printk("Relocated code! %s location %p\n", __func__, reloc);
printk("maybe_bss location: %p maybe_bss value: %u\n", &maybe_bss,
maybe_bss);
}