A simple sample with some (explained) tricks to get code relocation for Intel ADSP CAVS platforms. Signed-off-by: Ederson de Souza <ederson.desouza@intel.com>
17 lines
257 B
C
17 lines
257 B
C
/*
|
|
* Copyright (c) 2022 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#include <zephyr/kernel.h>
|
|
|
|
extern void reloc(void);
|
|
|
|
void main(void)
|
|
{
|
|
printk("%s location: %p\n", __func__, main);
|
|
printk("Calling relocated code\n");
|
|
reloc();
|
|
}
|