all: Add 'U' suffix when using unsigned variables
Add a 'U' suffix to values when computing and comparing against unsigned variables. Signed-off-by: Patrik Flykt <patrik.flykt@intel.com>
This commit is contained in:
parent
caebf204c6
commit
24d71431e9
559 changed files with 2331 additions and 2328 deletions
|
@ -150,7 +150,7 @@ void _cpu_start(int cpu)
|
|||
* "timer" API
|
||||
*/
|
||||
xuk_set_isr(INT_APIC_LVT_TIMER, 10, handler_timer, 0);
|
||||
_apic.INIT_COUNT = 5000000;
|
||||
_apic.INIT_COUNT = 5000000U;
|
||||
test_timers();
|
||||
|
||||
if (cpu == 0) {
|
||||
|
|
|
@ -73,7 +73,7 @@ static inline void *alloc_page(int clear)
|
|||
{
|
||||
int *p = (int *)(long)_shared.next_page;
|
||||
|
||||
_shared.next_page += 4096;
|
||||
_shared.next_page += 4096U;
|
||||
|
||||
for (int i = 0; clear && i < 1024; i++) {
|
||||
p[i] = 0;
|
||||
|
|
|
@ -145,7 +145,7 @@ void _cpu_start(int cpu)
|
|||
|
||||
/* Set up the timer ISR, but ensure the timer is disabled */
|
||||
xuk_set_isr(INT_APIC_LVT_TIMER, 13, x86_apic_timer_isr, 0);
|
||||
_apic.INIT_COUNT = 0;
|
||||
_apic.INIT_COUNT = 0U;
|
||||
|
||||
xuk_set_isr(XUK_INT_RAW_VECTOR(SCHED_IPI_VECTOR),
|
||||
-1, sched_ipi_handler, 0);
|
||||
|
@ -189,7 +189,7 @@ int z_arch_irq_connect_dynamic(unsigned int irq, unsigned int priority,
|
|||
u32_t flags)
|
||||
{
|
||||
ARG_UNUSED(flags);
|
||||
__ASSERT(priority >= 2 && priority <= 15,
|
||||
__ASSERT(priority >= 2U && priority <= 15U,
|
||||
"APIC interrupt priority must be 2-15");
|
||||
|
||||
xuk_set_isr(irq, priority, (void *)routine, parameter);
|
||||
|
|
|
@ -106,7 +106,7 @@ void *init_page_tables(void)
|
|||
|
||||
/* Each PDE filled with 2M supervisor pages */
|
||||
for (int i = 0; i < 512; i++) {
|
||||
if (!(gb == 0 && i == 0)) {
|
||||
if (!(gb == 0U && i == 0)) {
|
||||
pde[i].addr = (gb << 30) | (i << 21);
|
||||
pde[i].present = 1;
|
||||
pde[i].writable = 1;
|
||||
|
|
|
@ -481,7 +481,7 @@ static void smp_init(void)
|
|||
* the page we allocated.
|
||||
*/
|
||||
_shared.smpinit_lock = 0;
|
||||
_shared.smpinit_stack = 0;
|
||||
_shared.smpinit_stack = 0U;
|
||||
_shared.num_active_cpus = 1;
|
||||
|
||||
printf("Sending SIPI IPI\n");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue