mirror of https://github.com/thesofproject/sof.git
arch: xtensa: use get_prid macro in boot_entry
Uses get_prid macro in boot_entry instead of classic rsr.prid. This way it won't fail for cores with XCHAL_HAVE_PRID = 0. Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
This commit is contained in:
parent
6cfd3e5a5e
commit
de04a03bbd
|
@ -19,6 +19,7 @@
|
|||
#include <config.h>
|
||||
#include <xtensa/config/core-isa.h>
|
||||
#include <xtensa/corebits.h>
|
||||
#include "xtos-internal.h"
|
||||
|
||||
.type boot_master_core, @function
|
||||
|
||||
|
@ -209,9 +210,9 @@ boot_init:
|
|||
#endif
|
||||
|
||||
/* determine core we are running on */
|
||||
rsr.prid a2
|
||||
get_prid a2
|
||||
movi a3, PLATFORM_MASTER_CORE_ID
|
||||
beq a2, a3, 1f
|
||||
beq a2, a3, 1f
|
||||
|
||||
/* no core should get here */
|
||||
j dead
|
||||
|
|
Loading…
Reference in New Issue