init: move interrupt_init after init_heap

Moves interrupt_init after init_heap. During interrupt
initialization we need to allocate spinlock, so we need
already initialized memory map.

Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
This commit is contained in:
Tomasz Lauda 2019-08-05 12:13:19 +02:00 committed by Tomasz Lauda
parent 2ee7a24f97
commit d31b7352d4
1 changed files with 2 additions and 2 deletions

View File

@ -30,8 +30,6 @@ int master_core_init(struct sof *sof)
{
int err;
interrupt_init();
/* init architecture */
trace_point(TRACE_BOOT_ARCH);
err = arch_init(sof);
@ -43,6 +41,8 @@ int master_core_init(struct sof *sof)
platform_init_memmap();
init_heap(sof);
interrupt_init();
#if CONFIG_TRACE
trace_point(TRACE_BOOT_SYS_TRACES);
trace_init(sof);