| * Copyright (c) 2016 IBM Corporation. |
| * This program is free software; you can redistribute it and/or |
| * modify it under the terms of the GNU General Public License |
| * as published by the Free Software Foundation; either version |
| * 2 of the License, or (at your option) any later version. |
| #include "../include/asm/opal-api.h" |
| #define OPAL_CALL(name, token) \ |
| /* Set opal return address */ |
| ld r11,opal_return@got(r2) |
| /* switch to BE when we enter OPAL */ |
| /* load the opal call entry point and base */ |
| OPAL_CALL(opal_console_write, OPAL_CONSOLE_WRITE); |
| OPAL_CALL(opal_console_read, OPAL_CONSOLE_READ); |
| OPAL_CALL(opal_console_write_buffer_space, OPAL_CONSOLE_WRITE_BUFFER_SPACE); |
| OPAL_CALL(opal_poll_events, OPAL_POLL_EVENTS); |
| OPAL_CALL(opal_console_flush, OPAL_CONSOLE_FLUSH); |