1. 26 10月, 2012 3 次提交
    • C
      xtensa: reset windowbase/windowstart when cloning the VM · 6ebe7da2
      Chris Zankel 提交于
      When we copy a user thread with CLONE_VM, we also have to reset
      windowbase and windowstart to start a pristine stack frame. Otherwise,
      overflows can happen using the address 0 as the stack pointer.
      Also add a special case for vfork, which continues on the
      parent stack until it calls execve. Because this could be a call8, we
      need to spill the stack pointer of the previus frame (if still 'live' in
      the register file).
      Signed-off-by: NChris Zankel <chris@zankel.net>
      6ebe7da2
    • C
      xtensa: use physical addresses for bus addresses · cddfcbcd
      Chris Zankel 提交于
      Define virt_to_bus and bus_to_virt as virt_to_phys, and phys_to_virt,
             respectively.
      Signed-off-by: NChris Zankel <chris@zankel.net>
      cddfcbcd
    • C
      xtensa: allow multi-inclusion for uapi/unistd.h · 2f72d4f6
      Chris Zankel 提交于
      Xtensa implements a method that allows to generate a arbitrary output
      for each system call by defining the __SYSCALL(number, function, num_args).
      This usually requires to include uapi/unistd.h twice. Instead of removing
      the guard agains multiple inclusion entirely, allow to include unistd.h again
      only if __SYSCALL is defined. Note that __SYSCALL gets always undefined at
      the end of the file.
      Signed-off-by: NChris Zankel <chris@zankel.net>
      2f72d4f6
  2. 21 10月, 2012 2 次提交
  3. 20 10月, 2012 35 次提交