diff options
author | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2006-09-23 14:47:00 +0100 |
---|---|---|
committer | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2006-09-23 14:47:00 +0100 |
commit | c180e655c186e6cacc56bbdd20bb301f5df2b10b (patch) | |
tree | 6c08620ec67ad46d5b60fd0091625371fb17a887 /xen/include/xen/console.h | |
parent | d85cf94621ab3531828430b0b50f860d0ff81887 (diff) | |
download | xen-c180e655c186e6cacc56bbdd20bb301f5df2b10b.tar.gz xen-c180e655c186e6cacc56bbdd20bb301f5df2b10b.tar.bz2 xen-c180e655c186e6cacc56bbdd20bb301f5df2b10b.zip |
Use GDB 'O' packets for console output if the serial line is shared
and GDB is attached.
It may be necessary for gdb and the console to share a serial port.
This patch utilises the GDB protocol to encode console output.
Based on a patch from Tony Breeds <tony@bakeyournoodle.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'xen/include/xen/console.h')
-rw-r--r-- | xen/include/xen/console.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/xen/include/xen/console.h b/xen/include/xen/console.h index d7125a317c..12abd2df51 100644 --- a/xen/include/xen/console.h +++ b/xen/include/xen/console.h @@ -26,4 +26,13 @@ void console_force_lock(void); void console_start_sync(void); void console_end_sync(void); +/* + * Steal output from the console. Returns +ve identifier, else -ve error. + * Takes the handle of the serial line to steal, and steal callback function. + */ +int console_steal(int handle, void (*fn)(const char *)); + +/* Give back stolen console. Takes the identifier returned by console_steal. */ +void console_giveback(int id); + #endif /* __CONSOLE_H__ */ |