Commit 26630942 authored by Sandrine Bailleux's avatar Sandrine Bailleux Committed by TrustedFirmware Code Review
Browse files

Merge "Use true instead of 1 in while" into integration

parents fb6a9ed6 92069086
/* /*
* Copyright (c) 2019, Arm Limited. All rights reserved. * Copyright (c) 2019-2020, Arm Limited. All rights reserved.
* *
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
*/ */
void __dead2 plat_arm_error_handler(int err) void __dead2 plat_arm_error_handler(int err)
{ {
while (1) { while (true) {
wfi(); wfi();
} }
} }
...@@ -64,7 +64,7 @@ __dead2 void bl1_plat_fwu_done(void *client_cookie, void *reserved) ...@@ -64,7 +64,7 @@ __dead2 void bl1_plat_fwu_done(void *client_cookie, void *reserved)
/* Setup the watchdog to reset the system as soon as possible */ /* Setup the watchdog to reset the system as soon as possible */
sp805_refresh(ARM_SP805_TWDG_BASE, 1U); sp805_refresh(ARM_SP805_TWDG_BASE, 1U);
while (1) while (true)
wfi(); wfi();
} }
......
/* /*
* Copyright (c) 2019, Arm Limited. All rights reserved. * Copyright (c) 2019-2020, Arm Limited. All rights reserved.
* *
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
*/ */
void __dead2 plat_arm_error_handler(int err) void __dead2 plat_arm_error_handler(int err)
{ {
while (1) { while (true) {
wfi(); wfi();
} }
} }
...@@ -97,7 +97,7 @@ __dead2 void bl1_plat_fwu_done(void *client_cookie, void *reserved) ...@@ -97,7 +97,7 @@ __dead2 void bl1_plat_fwu_done(void *client_cookie, void *reserved)
/* Setup the watchdog to reset the system as soon as possible */ /* Setup the watchdog to reset the system as soon as possible */
sp805_refresh(ARM_SP805_TWDG_BASE, 1U); sp805_refresh(ARM_SP805_TWDG_BASE, 1U);
while (1) while (true)
wfi(); wfi();
} }
......
/* /*
* Copyright (c) 2019, Arm Limited. All rights reserved. * Copyright (c) 2019-2020, Arm Limited. All rights reserved.
* *
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
*/ */
void __dead2 plat_arm_error_handler(int err) void __dead2 plat_arm_error_handler(int err)
{ {
while (1) { while (true) {
wfi(); wfi();
} }
} }
/* /*
* Copyright (c) 2019, Arm Limited. All rights reserved. * Copyright (c) 2019-2020, Arm Limited. All rights reserved.
* *
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
*/ */
void __dead2 plat_arm_error_handler(int err) void __dead2 plat_arm_error_handler(int err)
{ {
while (1) { while (true) {
wfi(); wfi();
} }
} }
/* /*
* Copyright (c) 2019, Arm Limited. All rights reserved. * Copyright (c) 2019-2020, Arm Limited. All rights reserved.
* *
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
*/ */
void __dead2 plat_arm_error_handler(int err) void __dead2 plat_arm_error_handler(int err)
{ {
while (1) { while (true) {
wfi(); wfi();
} }
} }
/* /*
* Copyright (c) 2019, Arm Limited. All rights reserved. * Copyright (c) 2019-2020, Arm Limited. All rights reserved.
* *
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
*/ */
void __dead2 plat_arm_error_handler(int err) void __dead2 plat_arm_error_handler(int err)
{ {
while (1) { while (true) {
wfi(); wfi();
} }
} }
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
*/ */
void __dead2 plat_arm_error_handler(int err) void __dead2 plat_arm_error_handler(int err)
{ {
while (1) { while (true) {
wfi(); wfi();
} }
} }
...@@ -60,7 +60,7 @@ struct image_desc *bl1_plat_get_image_desc(unsigned int image_id) ...@@ -60,7 +60,7 @@ struct image_desc *bl1_plat_get_image_desc(unsigned int image_id)
__dead2 void bl1_plat_fwu_done(void *client_cookie, void *reserved) __dead2 void bl1_plat_fwu_done(void *client_cookie, void *reserved)
{ {
while (1) while (true)
wfi(); wfi();
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment