arch: sparc: Fix 10.4 violations
Both operands of an operator in which the usual arithmetic conversions are performed shall have the same essential type category. Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
This commit is contained in:
parent
49f0c74a9e
commit
bfd9d0069b
2 changed files with 3 additions and 3 deletions
|
@ -179,11 +179,11 @@ static void print_backtrace(const z_arch_esf_t *esf)
|
||||||
const uint32_t pc = s->in[7];
|
const uint32_t pc = s->in[7];
|
||||||
const uint32_t sp = s->in[6];
|
const uint32_t sp = s->in[6];
|
||||||
|
|
||||||
if (sp == 0 && pc == 0) {
|
if (sp == 0U && pc == 0U) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
LOG_ERR(" #%-2d %08x %08x", i, pc, sp);
|
LOG_ERR(" #%-2d %08x %08x", i, pc, sp);
|
||||||
if (sp == 0 || sp & 7) {
|
if (sp == 0U || sp & 7U) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
s = (const struct savearea *) sp;
|
s = (const struct savearea *) sp;
|
||||||
|
|
|
@ -31,7 +31,7 @@ void z_sparc_enter_irq(uint32_t irl)
|
||||||
_current_cpu->nested++;
|
_current_cpu->nested++;
|
||||||
|
|
||||||
#ifdef CONFIG_IRQ_OFFLOAD
|
#ifdef CONFIG_IRQ_OFFLOAD
|
||||||
if (irl != 141) {
|
if (irl != 141U) {
|
||||||
irl = z_sparc_int_get_source(irl);
|
irl = z_sparc_int_get_source(irl);
|
||||||
ite = &_sw_isr_table[irl];
|
ite = &_sw_isr_table[irl];
|
||||||
ite->isr(ite->arg);
|
ite->isr(ite->arg);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue