Skip to content
Snippets Groups Projects
  1. Jan 22, 2014
  2. Jan 16, 2014
  3. Dec 30, 2013
  4. Sep 15, 2013
    • Nadav Har'El's avatar
      Add copyright statement to drivers/* · c0e0ebf2
      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.
      c0e0ebf2
  5. Aug 08, 2013
    • Glauber Costa's avatar
      console: automatically insert CR · f6a464df
      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.
      f6a464df
    • Glauber Costa's avatar
      remove newline() function for console · 58954552
      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.
      58954552
  6. May 23, 2013
    • Nadav Har'El's avatar
      Fix errors in serial console setup · 17b62089
      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.
      17b62089
  7. Apr 14, 2013
  8. Apr 07, 2013
    • Dor Laor's avatar
      Adding read line support to the console · 9a1b5d0f
      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.
      9a1b5d0f
  9. Jan 17, 2013
    • Christoph Hellwig's avatar
      simplify the console abstractions · fad1ce08
      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.
      fad1ce08
  10. Jan 01, 2013
  11. Dec 27, 2012
  12. Dec 24, 2012
Loading