mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-03-27 05:39:57 +00:00
x86_64/amd64: Address SMP sign compare warning
The variable starts at 0 and counts upwards, so unsigned is more appropriate.
This commit is contained in:
committed by
Gedare Bloom
parent
c373cc01db
commit
9b86017d18
@@ -77,7 +77,7 @@ static bool wait_for_ap(uint32_t timeout_ms)
|
||||
PIT_CHAN2_ENABLE(chan2_value);
|
||||
PIT_CHAN2_WRITE_TICKS(pit_ticks);
|
||||
|
||||
for (int i = 0; has_ap_started == false && i < timeout_ms; i++) {
|
||||
for (uint32_t i = 0; has_ap_started == false && i < timeout_ms; i++) {
|
||||
PIT_CHAN2_START_DELAY(chan2_value);
|
||||
PIT_CHAN2_WAIT_DELAY(pit_ticks);
|
||||
amd64_spinwait();
|
||||
|
||||
Reference in New Issue
Block a user