1. 17 Oct, 2019 2 commits
  2. 29 Aug, 2019 2 commits
  3. 13 Jan, 2018 2 commits
  4. 25 Oct, 2017 4 commits
  5. 20 Oct, 2017 5 commits
  6. 21 Oct, 2015 3 commits
  7. 20 Oct, 2015 7 commits
  8. 18 Mar, 2014 2 commits
    • Pablo de Oliveira's avatar
      Fix userprog tests for clang · d18533cc
      Pablo de Oliveira authored
      Recent clang version, detect attemps to dereference or call NULL, and
      eliminate the code.
      
      ../../tests/userprog/bad-read.c:11:9: warning: indirection of
      non-volatile null pointer will be deleted, not trap [-Wnull-dereference]
              *(int *) NULL);
              ^~~~~~~~~~~~~
      
      This patchs adds the volatile modifier as necessary.
      It allows to use clang to compile the tests.
      d18533cc
    • Pablo de Oliveira's avatar
      Add ACPI shutdown sequence · f5fa837e
      Pablo de Oliveira authored
      On QEMU emulator version 1.7.0, the previous shutdown sequence (writing
      `shutdown` to 0x8900), is not working properly.
      
      This patch adds support for the ACPI shutdown code which works on qemu
      1.7.0 and preserves the old sequence for compatibility.
      f5fa837e
  9. 02 Sep, 2012 1 commit
  10. 01 Mar, 2012 1 commit
    • Benedikt Huber's avatar
      Fix gcc inline assembler operand constraints for syscall -- as pushl modifies... · ea904493
      Benedikt Huber authored
      Fix gcc inline assembler operand constraints for syscall -- as pushl modifies %esp, variable operands must not reference the stack pointer.
      
      Without this patch, gcc-4.6.1-9ubuntu3 miscompiles the read syscall to:
        000000b6 <read>:
          b6:   ff 74 24 0c             pushl  0xc(%esp)
          ba:   ff 74 24 08             pushl  0x8(%esp)  ; [!]
          be:   ff 74 24 04             pushl  0x4(%esp)  ; [!]
          ...
      ea904493
  11. 25 Aug, 2011 2 commits
    • Russ Ross's avatar
      Fix boot under Bochs when Pintos is compiled with recent GCC. · a094a81a
      Russ Ross authored
      When compiled according to the instructions, bochs fails to load
      the project 1 kernel.  This seems to be due to the latest gcc using an
      instruction that bochs is not compiled to support.  Adding the
      '--enable-cpu-level=6' configure option to Bochs, as this commit does,
      seems to work.
      a094a81a
    • Russ Ross's avatar
      Fix Bochs build with recent GCC. · 2d5d792b
      Russ Ross authored
      bochs-2.2.6 failed to compile with the latest version of gcc.  This commit
      fixes the problem
      2d5d792b
  12. 10 Mar, 2011 1 commit
  13. 12 Feb, 2011 3 commits
  14. 16 Dec, 2010 1 commit
    • Ben Pfaff's avatar
      squish-pty: Flush buffered data from pty to stdout when pty's slave closed · b913988a
      Ben Pfaff authored
      When the slave side of the pty is closed, the "read" system call returns
      EIO.  In this situation, squish-pty failed to flush any output that it
      already had in its buffer (up to 16 bytes) to stdout.  This could cause
      the "Powering off..." message printed by Pintos just before exiting to
      be missing from the output.
      
      This usually didn't happen, because there are two other exit paths from
      the relay() function that does most of squish-pty's work.  The most common
      exit path was (evidently) the one which detected that the child process
      had died, which did properly flush the buffer.  (The third path was wrong
      too, and this patch fixes that one too.)
      
      This patch fixes the problem by using a single exit path from relay() that
      always reads any remaining input from the pty (if it is open) and flushes
      it to stdout.
      
      Reported by Borja Sotomayor <borja@cs.uchicago.edu>.
      b913988a
  15. 11 Dec, 2010 1 commit
  16. 05 May, 2010 1 commit
  17. 01 May, 2010 1 commit
    • Ben Pfaff's avatar
      Make.config: Use a different method to detect --build-id support. · 1ec7b011
      Ben Pfaff authored
      Some versions of ld accept /dev/null as a valid input file.  Others will
      not.  The latter versions will give false negatives for --buil-id support,
      which breaks linking of Pintos userspace programs.  So use a different
      method, that I hope will be more reliable, to detect --build-id support.
      
      Reported by Joseph Huang <jdhuang@stanford.edu>.
      1ec7b011
  18. 26 Jan, 2010 1 commit
    • Ben Pfaff's avatar
      pintos: Make sure to print buffered data at end of input. · 2026ecce
      Ben Pfaff authored
      Here, $buf might have some data in it that has not yet been printed, but
      we were discarding it (and trying to read more) without printing it.
      
      (In Perl, "do" ensures that the inner block runs at least once; without
      "do" the condition is evaluated first.)
      2026ecce