diff options
| author | Paul Mackerras <paulus@samba.org> | 2004-09-02 20:23:42 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-09-02 20:23:42 -0700 |
| commit | c4e944c3940cff653a005e9bd760ab35e3d30e85 (patch) | |
| tree | de9a0dc14b80038d141156d8c7444eda0600b852 /include/asm-ppc64 | |
| parent | ad15f36c96f93d424db354773183404cdb420e03 (diff) | |
[PATCH] ppc64 another log buffer length fix
This patch uses the firmware-defined error log buffer length for calls to
the firmware routine 'check-exception'. It also simplifies code in rtasd.c
that is attempting to obtain the error log length.
Signed-off-by: Linas Vepstas <linas@linas.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/asm-ppc64')
| -rw-r--r-- | include/asm-ppc64/rtas.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/include/asm-ppc64/rtas.h b/include/asm-ppc64/rtas.h index 90e38610e308..b3fa9a86a326 100644 --- a/include/asm-ppc64/rtas.h +++ b/include/asm-ppc64/rtas.h @@ -211,8 +211,14 @@ extern void pSeries_log_error(char *buf, unsigned int err_type, int fatal); #define RTAS_DEBUG KERN_DEBUG "RTAS: " #define RTAS_ERROR_LOG_MAX 2048 - - + +/* + * Return the firmware-specified size of the error log buffer + * for all rtas calls that require an error buffer argument. + * This includes 'check-exception' and 'rtas-last-error'. + */ +extern int rtas_get_error_log_max(void); + /* Event Scan Parameters */ #define EVENT_SCAN_ALL_EVENTS 0xf0000000 #define SURVEILLANCE_TOKEN 9000 |
