1. 02 Aug, 2006 3 commits
    • Zou Nan hai's avatar
      [IA64] Do not assume output registers be reservered. · acb15c85
      Zou Nan hai authored
      We found an issue in pal.S.
      
      According to the software runtime SPEC,
      The caller's output registers do not need to be preserved for
      caller. The callee may reuse input registers for any other
      purpose within the procedure.
      
      in ia64_pal_call_phys_stacked,
      
      input registers are copied to output registers before call
      into ia64_switch_mode_phys, then used to call into PAL. This
      assumes output registers are preserved in ia64_switch_mode_phys,
      which may not be true.
      
      In this particular case, ia64_switch_mode_phys alloc a null frame
      , and mask off psr.i.
      If an interrupt comes at this small window,
      or an MCA comes inside the procedure, output registers
      maybe changed,
      then the pal call may got some staled input registers.
      
      This patch moves the copies from input to output
      after ia64_switch_mode_phys to follow the software
      runtime convention.
      
      It  also removed some unused labels in
      ia64_pal_call_phys_stacked.
      Signed-off-by: default avatarZou Nan hai <nanhai.zou@intel.com>
      Signed-off-by: default avatarTony Luck <tony.luck@intel.com>
      acb15c85
    • Greg Edwards's avatar
      [IA64] add platform check to snsc driver init · c7c17423
      Greg Edwards authored
      Add a platform check to the snsc driver init function, to prevent
      loading on non-sn2 systems.
      Signed-off-by: default avatarGreg Edwards <edwardsg@sgi.com>
      Signed-off-by: default avatarTony Luck <tony.luck@intel.com>
      c7c17423
    • Keith Owens's avatar
      [IA64] sparse cleanups · e037cda5
      Keith Owens authored
      Fix some sparse warnings on ia64.  Large constants that should be long
      instead of int.  Use NULL instead of 0.  Add some missing __iomem
      casts.  Replace a non-C99 structure assignment.
      Signed-off-by: default avatarKeith Owens <kaos@sgi.com>
      Signed-off-by: default avatarTony Luck <tony.luck@intel.com>
      e037cda5
  2. 31 Jul, 2006 2 commits
    • Tony Luck's avatar
      [IA64] Fix breakage in simscsi.c · 4f2ef124
      Tony Luck authored
      arch/ia64/hp/sim/simscsi.c: In function `simscsi_sg_readwrite':
      arch/ia64/hp/sim/simscsi.c:154: error: structure has no member named `buffer'
      arch/ia64/hp/sim/simscsi.c: In function `simscsi_fillresult':
      arch/ia64/hp/sim/simscsi.c:247: error: structure has no member named `buffer'
      
      hch said:
      >Just change it to access the request_buffer member instead.  buffer
      >and request_buffer have been synonymous 99% of the time, and a driver
      >never even wants to access buffer.
      Signed-off-by: default avatarTony Luck <tony.luck@intel.com>
      4f2ef124
    • Matthew Wilcox's avatar
      [IA64] Format /proc/pal/*/version_info correctly · 1bf1eba7
      Matthew Wilcox authored
      /proc/pal/*/version_info is a bit confusing.  HP firmware, at least,
      reports 07.31 instead of 0.7.31.  Also, the comment is out of place;
      it's an internal detail about the implementation of ia64_pal_version.
      Since the 2.2 revision of the SDM still states that PAL_VERSION can
      be called in virtual mode, correct the comment to be more accurate.
      Signed-off-by: default avatarMatthew Wilcox <matthew@wil.cx>
      Signed-off-by: default avatarTony Luck <tony.luck@intel.com>
      1bf1eba7
  3. 30 Jul, 2006 10 commits
  4. 29 Jul, 2006 22 commits
  5. 28 Jul, 2006 3 commits