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:
Tomasz Lauda 2020-05-26 08:38:37 +02:00 committed by Tomasz Lauda
parent 6cfd3e5a5e
commit de04a03bbd
1 changed files with 3 additions and 2 deletions

View File

@ -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