- Jan 22, 2014
-
-
Pekka Enberg authored
Signed-off-by:
Pekka Enberg <penberg@cloudius-systems.com>
-
Pekka Enberg authored
Signed-off-by:
Pekka Enberg <penberg@cloudius-systems.com>
-
- Jan 16, 2014
-
-
Takuya ASADA authored
isa-serial.hh don't need to include vga.hh, but it's required on console.cc, so move it. Signed-off-by:
Takuya ASADA <syuu@cloudius-systems.com> Signed-off-by:
Pekka Enberg <penberg@cloudius-systems.com>
-
- Dec 30, 2013
-
-
Avi Kivity authored
The current initialization is to something like 5 bit words, which truncates everything to control characters on VMware. QEMU somehow ignores the word size. Fix to initialize the serial port to 8N1, yielding useful output. Signed-off-by:
Avi Kivity <avi@cloudius-systems.com>
-
- Sep 15, 2013
-
-
Nadav Har'El authored
Add Cloudius copyright and license statement to drivers/*. A couple of header files were based on Linux's BSD-licensed header files (e.g., include/uapi/linux/virtio_net.h) so they included the BSD license, but not any copyright statement, so we can just replace that by our own statement of the BSD license.
-
- Aug 08, 2013
-
-
Glauber Costa authored
Our console works well with KVM, that redirects the serial to stdio. In Xen, this seems not to work very well (some documentation sources - not all - lists 'serial="stdio"' as a valid option, but it doesn't really work). In that case, LFs are not automatically translated into CRLF and the terminal output is totally borked. This is obviously not exclusive to Xen: by changing our qemu command line to run a pts instead of stdio, and then connecting to that pts, the same thing happens. This patch modifies our console's write() function to respect the termios ONLCR flag, which is now set by default. When write() sees a newline character and this flag is set we output a CF before any LF. The termios structure is left outside the specific console, and we pass a pointer down to it. Our pre-console implementation of simple_write outputs CRs unconditionally. The normal stdio serial still works. Telnet still works.
-
Glauber Costa authored
Our console write() takes 3 parameters. The last one controls whether or not we will issue a newline at the end of input. If it is true, we will call the console's implementation of newline(). It is always passed as false, though. Remove it and fix the callers.
-
- May 23, 2013
-
-
Nadav Har'El authored
Fix two errors in IsaSerialConsole::reset(). The visible effect of these errors was a spurious \001 (^A) character which always appeared at the beginning of every OSV's run output. The two errors were: 1. The DLAB bit on the LCR was incorrectly set (a spurious "& LCR_DIVISOR_LATCH_ACCESS_BIT" appeared in the code), causing the next outb(1) to go to the output register (and output a "1" character) instead of setting the baud rate. 2. When writing the FCR register, the "ioport + " base forgotten. I took the opportunity and added better names for the constants, removed a couple of duplicate constants, and added comments.
-
- Apr 14, 2013
-
-
Avi Kivity authored
Rather than polling.
-
Avi Kivity authored
Polling only, no interrupt yet.
-
- Apr 07, 2013
-
-
Dor Laor authored
Now our Isa serial device can read characters. Using it by calling readln(char *msg, size_t len); Note that the calls block until the len input chars or a newline.
-
- Jan 17, 2013
-
-
Christoph Hellwig authored
This is the low-level console abstraction and should deal in the char * hardware format. The upper layer (debug.cc) already handles all conversion from std::string and boost formats.
-
- Jan 01, 2013
-
-
Avi Kivity authored
-
- Dec 27, 2012
-
-
Dor Laor authored
-
- Dec 24, 2012
-
-
Dor Laor authored
At the moment it can only print to the console.
-