diff options
author | Joel Stanley <joel@jms.id.au> | 2014-03-31 23:58:20 -0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2014-04-08 22:53:23 -0400 |
commit | e28b05e7ae8ba09e030ffe891ba154df5791cb76 (patch) | |
tree | a62d90b0c2bf4b5703706ab9549aba3cbb4430cb /arch/powerpc/platforms | |
parent | bfc36894a48b996eba7e02d8e43093a289c1fb91 (diff) |
powerpc/powernv: Add invalid OPAL call
This call will not be understood by OPAL, and cause it to add an error
to it's log. Among other things, this is useful for testing the
behaviour of the log as it fills up.
Signed-off-by: Joel Stanley <joel@jms.id.au>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/platforms')
-rw-r--r-- | arch/powerpc/platforms/powernv/opal-wrappers.S | 1 | ||||
-rw-r--r-- | arch/powerpc/platforms/powernv/opal.c | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/arch/powerpc/platforms/powernv/opal-wrappers.S b/arch/powerpc/platforms/powernv/opal-wrappers.S index bb90f9a4e027..f531ffe35b3e 100644 --- a/arch/powerpc/platforms/powernv/opal-wrappers.S +++ b/arch/powerpc/platforms/powernv/opal-wrappers.S | |||
@@ -61,6 +61,7 @@ _STATIC(opal_return) | |||
61 | mtcr r4; | 61 | mtcr r4; |
62 | rfid | 62 | rfid |
63 | 63 | ||
64 | OPAL_CALL(opal_invalid_call, OPAL_INVALID_CALL); | ||
64 | OPAL_CALL(opal_console_write, OPAL_CONSOLE_WRITE); | 65 | OPAL_CALL(opal_console_write, OPAL_CONSOLE_WRITE); |
65 | OPAL_CALL(opal_console_read, OPAL_CONSOLE_READ); | 66 | OPAL_CALL(opal_console_read, OPAL_CONSOLE_READ); |
66 | OPAL_CALL(opal_console_write_buffer_space, OPAL_CONSOLE_WRITE_BUFFER_SPACE); | 67 | OPAL_CALL(opal_console_write_buffer_space, OPAL_CONSOLE_WRITE_BUFFER_SPACE); |
diff --git a/arch/powerpc/platforms/powernv/opal.c b/arch/powerpc/platforms/powernv/opal.c index 99e9c2887e21..49d2f00019e5 100644 --- a/arch/powerpc/platforms/powernv/opal.c +++ b/arch/powerpc/platforms/powernv/opal.c | |||
@@ -635,3 +635,6 @@ void opal_shutdown(void) | |||
635 | mdelay(10); | 635 | mdelay(10); |
636 | } | 636 | } |
637 | } | 637 | } |
638 | |||
639 | /* Export this so that test modules can use it */ | ||
640 | EXPORT_SYMBOL_GPL(opal_invalid_call); | ||