1. 28 6月, 2007 1 次提交
    • D
      [POWERPC] Make more OF-related bootwrapper functions available to non-OF platforms · 08464712
      David Gibson 提交于
      Commit 2e601613 split up
      arch/powerpc/boot/of.c so that some OF functions can be used on
      platforms that don't want to use the overall OF platform boot code.
      This is useful on things like PReP which can have an OF implementation
      which is useful for debugging output, but inadequate for booting.
      
      However, that commit didn't export quite enough things to make a
      usable OF console on a non-OF system.  In particular, the device tree
      manipulation performed to initialize the OF console code must
      explicitly use the OF device tree, rather than the flattened device
      tree, even if the system is otherwise booting using a flattened device
      tree.  This makes it so.
      Signed-off-by: NDavid Gibson <david@gibson.dropbear.id.au>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      08464712
  2. 14 6月, 2007 1 次提交
    • D
      [POWERPC] Split low-level OF-related bootloader code into separate files · 2e601613
      David Gibson 提交于
      Currently, all OF-related code in the bootloader is contained in of.c.
      of.c also provides the platform specific things necessary to boot on
      an OF platform.
      
      However, there are platforms (such as PReP) which can include an OF
      implementation, but are not bootable as pure OF systems.  For use by
      such platforms, this patch splits out the low-level parts of the OF
      code (call_prom() and various wrappers thereof) into a new oflib.c
      file.  In addition, the code related to bootwrapper console output via
      OF are moved to a new ofconsole.c file.  Both these files are included
      in the wrapper.a library where they can be used by both full-OF and
      partial OF platforms.
      Signed-off-by: NDavid Gibson <david@gibson.dropbear.id.au>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      2e601613
  3. 24 4月, 2007 1 次提交
  4. 13 4月, 2007 1 次提交
    • P
      [POWERPC] Fix detection of loader-supplied initrd on OF platforms · 390cbb56
      Paul Mackerras 提交于
      Commit 79c85419 introduced code to move
      the initrd if it was in a place where it would get overwritten by the
      kernel image.  Unfortunately this exposed the fact that the code that
      checks whether the values passed in r3 and r4 are intended to indicate
      the start address and size of an initrd image was not as thorough as the
      kernel's checks.  The symptom is that on OF-based platforms, the
      bootwrapper can cause an exception which causes the system to drop back
      into OF.
      
      Previously it didn't matter so much if the code incorrectly thought that
      there was an initrd, since the values for start and size were just passed
      through to the kernel.  Now the bootwrapper needs to apply the same checks
      as the kernel since it is now using the initrd data itself (in the process
      of copying it if necessary).  This adds the code to do that.
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      390cbb56
  5. 26 3月, 2007 1 次提交
  6. 13 3月, 2007 2 次提交
    • D
      [POWERPC] zImage: Cleanup and improve zImage entry point · cd197ffc
      David Gibson 提交于
      This patch re-organises the way the zImage wrapper code is entered, to
      allow more flexibility on platforms with unusual entry conditions.
      After this patch, a platform .o file has two options:
      
      1) It can define a _zimage_start, in which case the platform code gets
         control from the very beginning of execution.  In this case the
         platform code is responsible for relocating the zImage if necessary,
         clearing the BSS, performing any platform specific initialization, and
         finally calling start() to load and enter the kernel.
      
      2) It can define platform_init().  In this case the generic crt0.S
         handles initial entry, and calls platform_init() before calling
         start().  The signature of platform_init() is changed, however, to
         take up to 5 parameters (in r3..r7) as they come from the platform's
         initial loader, instead of a fixed set of parameters based on OF's
         usage.
      
         When using the generic crt0.S, the platform .o can optionally
         supply a custom stack to use, using the BSS_STACK() macro.  If this
         is not supplied, the crt0.S will assume that the loader has
         supplied a usable stack.
      
      In either case, the platform code communicates information to the
      generic code (specifically, a PROM pointer for OF systems, and/or an
      initrd image address supplied by the bootloader) via a global
      structure "loader_info".
      
      In addition the wrapper script is rearranged to ensure that the
      platform .o is always linked first.  This means that platforms where
      the zImage entry point is at a fixed address or offset, rather than
      being encoded in the binary header can be supported using option (1).
      Signed-off-by: NDavid Gibson <dwg@au1.ibm.com>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      cd197ffc
    • D
      [POWERPC] zImage: Cleanup and improve prep_kernel() · 79c85419
      David Gibson 提交于
      This patch rewrites prep_kernel() in the zImage wrapper code to be
      clearer and more flexible.  Notable changes:
      
      	- Handling of the initrd image from prep_kernel() has moved
      into a new prep_initrd() function.
      	- The address of the initrd image is now added as device tree
      properties, as the kernel expects.
      	- We only copy a packaged initrd image to a new location if it
      is in danger of being clobbered when the kernel moves to its final
      location, instead of always.
      	- By default we decompress the kernel directly to address 0,
      instead of requiring it to relocate itself.  Platforms (such as OF)
      where doing this could clobber still-live firmware data structures can
      override the vmlinux_alloc hook to provide an alternate place to
      decompress the kernel.
      	- We no longer pass lots of information between functions in
      global variables.
      Signed-off-by: NDavid Gibson <dwg@au1.ibm.com>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      79c85419
  7. 18 10月, 2006 1 次提交
  8. 06 10月, 2006 1 次提交
  9. 20 9月, 2006 1 次提交
  10. 14 1月, 2006 1 次提交
  11. 16 11月, 2005 1 次提交
  12. 29 8月, 2005 1 次提交
    • O
      [PATCH] ppc64: make arch/ppc64/boot standalone · decd300b
      Olaf Hering 提交于
      Make the bootheader for ppc64 independent from kernel and libc headers.
      * add -nostdinc -isystem $gccincludes to not include libc headers
      * declare all functions in header files, also the stuff from string.S
      * declare some functions static
      * use stddef.h to get size_t (hopefully ok)
      * remove ppc32-types.h, only elf.h used the __NN types
      
      With further modifications by Paul Mackerras and Stephen Rothwell.
      Signed-off-by: NOlaf Hering <olh@suse.de>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      decd300b
  13. 28 6月, 2005 1 次提交
  14. 09 6月, 2005 1 次提交
  15. 17 4月, 2005 1 次提交
    • L
      Linux-2.6.12-rc2 · 1da177e4
      Linus Torvalds 提交于
      Initial git repository build. I'm not bothering with the full history,
      even though we have it. We can create a separate "historical" git
      archive of that later if we want to, and in the meantime it's about
      3.2GB when imported into git - space that would just make the early
      git days unnecessarily complicated, when we don't have a lot of good
      infrastructure for it.
      
      Let it rip!
      1da177e4