[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [mini-os master] mini-os: skip crnl conversion if console is in raw mode



commit 0071c79c587316e9c04cfb809411adbea65e8e23
Author:     Simon Waterman <watermansrdev@xxxxxxxxx>
AuthorDate: Sun Jun 25 23:02:07 2017 +0100
Commit:     Wei Liu <wei.liu2@xxxxxxxxxx>
CommitDate: Tue Jul 4 14:06:04 2017 +0100

    mini-os: skip crnl conversion if console is in raw mode
    
    Signed-off-by: Simon Waterman <watermansrdev@xxxxxxxxx>
    Acked-by: Wei Liu <wei.liu2@xxxxxxxxxx>
---
 console/console.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/console/console.c b/console/console.c
index 5538bd4..2e04552 100644
--- a/console/console.c
+++ b/console/console.c
@@ -93,6 +93,11 @@ void console_print(struct consfront_dev *dev, char *data, 
int length)
     else
         ring_send_fn = xencons_ring_send;
 
+    if (dev && dev->is_raw) {
+        ring_send_fn(dev, data, length);
+        return;
+    }
+
     copied_ptr = copied_str;
     memcpy(copied_ptr, data, length);
     for(curr_char = copied_ptr; curr_char < copied_ptr+length-1; curr_char++)
--
generated by git-patchbot for /home/xen/git/mini-os.git#master

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxx
https://lists.xenproject.org/xen-changelog

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.