Commit 71892ca3 authored by Ambroise Vincent's avatar Ambroise Vincent
Browse files

Console: Allow to register multiple times


It removes the need to unregister the console on system suspend.

Change-Id: Ic9311a242a4a9a778651f7e6380bd2fc0964b2ce
Signed-off-by: default avatarAmbroise Vincent <ambroise.vincent@arm.com>
Showing with 4 additions and 2 deletions
+4 -2
......@@ -20,8 +20,10 @@ int console_register(console_t *console)
{
/* Assert that the struct is not on the stack (common mistake). */
assert((console < stacks_start) || (console >= stacks_end));
/* Assert that we won't make a circle in the list. */
assert(!console_is_registered(console));
/* Check that we won't make a circle in the list. */
if (console_is_registered(console) == 1)
return 1;
console->next = console_list;
console_list = console;
......
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