1. 09 1月, 2014 1 次提交
    • J
      openrisc: Rework signal handling · 10f67dbf
      Jonas Bonn 提交于
      The mainline signal handling code for OpenRISC has been buggy since day
      one with respect to syscall restart.  This patch significantly reworks
      the signal handling code:
      
      i)   Move the "work pending" loop to C code (borrowed from ARM arch)
      
      ii)  Allow a tracer to muck about with the IP and skip syscall restart
           in that case (again, borrowed from ARM)
      
      iii) Make signal handling WRT syscall restart actually work
      
      v)   Make the signal handling code look more like that of other
           architectures so that it's easier for others to follow
      Reported-by: NAnders Nystrom <anders@southpole.se>
      Signed-off-by: NJonas Bonn <jonas@southpole.se>
      10f67dbf
  2. 17 2月, 2013 1 次提交
  3. 14 2月, 2013 1 次提交
    • J
      openrisc: fix up vmalloc page table loading · a81252d7
      Jonas Bonn 提交于
      vmalloc'ed pages are faulted into a process' page tables on demand.  In
      order to facilitate this, do_page_fault needs to know whether it was
      called via a page fault exception or a TLB-miss exception.
      
      This patch adds a wrapper around the _x_page_fault_handler entry points
      that the TLB-miss exceptions can call into in order to have the relevant
      parameter set to satisfy do_page_fault.
      
      This fixes a bug and is "good enough" for now.  That said, this whole
      handling of vmalloc needs to be audited for correctness at some point.
      Signed-off-by: NJonas Bonn <jonas@southpole.se>
      a81252d7
  4. 04 2月, 2013 1 次提交
  5. 29 11月, 2012 1 次提交
  6. 20 10月, 2012 3 次提交
  7. 08 5月, 2012 1 次提交
  8. 06 3月, 2012 1 次提交
    • J
      openrisc: sanitize use of orig_gpr11 · 6cbe5e95
      Jonas Bonn 提交于
      The pt_regs struct had both a 'syscallno' field and an 'orig_gpr11' field
      and it wasn't really clear how these were supposed to be used.  This patch
      removes the syscallno field altogether and makes orig_gpr11 work more
      like other architectures: keep track of syscall number in progress or
      hold -1 for non-syscall exceptions.
      Signed-off-by: NJonas Bonn <jonas@southpole.se>
      6cbe5e95
  9. 23 7月, 2011 1 次提交