Skip to content
  1. Oct 21, 2005
    • David Gibson's avatar
      [PATCH] powerpc: Merge thread_info.h · 6cb7bfeb
      David Gibson authored
      
      
      Merge ppc32 and ppc64 versions of thread_info.h.  They were pretty
      similar already, the chief changes are:
      
      	- Instead of inline asm to implement current_thread_info(),
      which needs to be different for ppc32 and ppc64, we use C with an
      asm("r1") register variable.  gcc turns it into the same asm as we
      used to have for both platforms.
      	- We replace ppc32's 'local_flags' with the ppc64
      'syscall_noerror' field.  The noerror flag was in fact the only thing
      in the local_flags field anyway, so the ppc64 approach is simpler, and
      means we only need a load-immediate/store instead of load/mask/store
      when clearing the flag.
      	- In readiness for 64k pages, when THREAD_SIZE will be less
      than a page, ppc64 used kmalloc() rather than get_free_pages() to
      allocate the kernel stack.  With this patch we do the same for ppc32,
      since there's no strong reason not to.
      	- For ppc64, we no longer export THREAD_SHIFT and THREAD_SIZE
      via asm-offsets, thread_info.h can now be safely included in asm, as
      on ppc32.
      
      Built and booted on G4 Powerbook (ARCH=ppc and ARCH=powerpc) and
      Power5 (ARCH=ppc64 and ARCH=powerpc).
      
      Signed-off-by: default avatarDavid Gibson <david@gibson.dropbear.id.au>
      Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
      6cb7bfeb
  2. Oct 20, 2005
  3. Oct 19, 2005
    • Paul Mackerras's avatar
      powerpc: Merge time.c and asm/time.h. · f2783c15
      Paul Mackerras authored
      
      
      We now use the merged time.c for both 32-bit and 64-bit compilation
      with ARCH=powerpc, and for ARCH=ppc64, but not for ARCH=ppc32.
      This removes setup_default_decr (folds its function into time_init)
      and moves wakeup_decrementer into time.c.  This also makes an
      asm-powerpc/rtc.h.
      
      Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
      f2783c15
    • Paul Mackerras's avatar
      powerpc: Merge machdep.h · 143a1dec
      Paul Mackerras authored
      
      
      A few things change for consistency between ppc32 and ppc64:
      idle functions return void; *_get_boot_time functions return
      unsigned long (i.e. time_t) rather than filling in a struct rtc_time
      (since that's useful to the callers and easier for pmac to
      generate); *_get_rtc_time and *_set_rtc_time functions take
      a struct rtc_time; irq_canonicalize is gone; nvram_sync returns
      void.
      
      Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
      143a1dec
  4. Oct 17, 2005
  5. Oct 14, 2005
  6. Oct 12, 2005
  7. Oct 11, 2005
  8. Oct 10, 2005
  9. Oct 06, 2005
  10. Oct 01, 2005
  11. Sep 28, 2005
  12. Sep 27, 2005
  13. Sep 26, 2005
    • Paul Mackerras's avatar
      powerpc: Merge enough to start building in arch/powerpc. · 14cf11af
      Paul Mackerras authored
      
      
      This creates the directory structure under arch/powerpc and a bunch
      of Kconfig files.  It does a first-cut merge of arch/powerpc/mm,
      arch/powerpc/lib and arch/powerpc/platforms/powermac.  This is enough
      to build a 32-bit powermac kernel with ARCH=powerpc.
      
      For now we are getting some unmerged files from arch/ppc/kernel and
      arch/ppc/syslib, or arch/ppc64/kernel.  This makes some minor changes
      to files in those directories and files outside arch/powerpc.
      
      The boot directory is still not merged.  That's going to be interesting.
      
      Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
      14cf11af
  14. Sep 25, 2005
  15. Sep 22, 2005
    • Kumar Gala's avatar
      [PATCH] powerpc: merged hw_irq.h · b671ad2b
      Kumar Gala authored
      
      
      Merged hw_irq.h between ppc32 & ppc64.  Added support to use the Book-E
      wrtee[i] instructions that allow modifying MSR[EE] atomically.
      Additionally, added get_irq_desc() macros to ppc32 to allow mask_irq(),
      unmask_irq(), and ack_irq() to be common between ppc32 & ppc64.
      
      Note: because 64-bit Book-E implementations only have a 32-bit MSR the
      macro's for Book-E need to come before the PPC64 macro's to ensure the
      right thing happends for 64-bit Book-E processors.
      
      Signed-off-by: default avatarKumar Gala <kumar.gala@freescale.com>
      Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
      b671ad2b
    • Kumar Gala's avatar
      [PATCH] powerpc: Fix compiling of ppc32 · fa2ac7a2
      Kumar Gala authored
      
      
      The merging of auxvec.h into asm-powerpc introduced the AT_SYSINFO_EHDR
      into the ppc32 build that is used for VDSO.  However, we dont have VDSO
      support in the ppc32 tree at this time.  Introducing this define causes
      a number of other things to get built with the assumption of VDSO, thus
      causing the compile errors for ppc32.
      
      Until we have VDSO on ppc32 we will leave AT_SYSINFO_EHDR a ppc64 only
      define.
      
      Signed-off-by: default avatarKumar K. Gala <kumar.gala@freescale.com>
      Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
      fa2ac7a2
Loading