Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 May 2011 04:10:44 +0000 (UTC)
From:      Marcel Moolenaar <marcel@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/sys/powerpc/booke locore.S machdep.c pmap.c
Message-ID:  <201105280410.p4S4Awag083691@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
marcel      2011-05-28 04:10:44 UTC

  FreeBSD src repository

  Modified files:
    sys/powerpc/booke    locore.S machdep.c pmap.c 
  Log:
  SVN rev 222400 on 2011-05-28 04:10:44Z by marcel
  
  Better support different kernel hand-offs. When loaded directly
  from U-Boot, the kernel is passed a standard argc/argv pair.
  The Juniper loader passes the metadata pointer as the second
  argument and passes 0 in the first. The FreeBSD loader passes
  the metadata pointer in the first argument.
  
  As such, have locore preserve the first 2 arguments in registers
  r30 & r31. Change e500_init() to accept these arguments. Don't
  pass global offsets (i.e. kernel_text and _end) as arguments to
  e500_init(). We can reference those directly.
  
  Rename e500_init() to booke_init() now that we're changing the
  prototype.
  
  In booke_init(), "decode" arg1 and arg2 to obtain the metadata
  pointer correctly. For the U-Boot case, clear SBSS and BSS and
  bank on having a static FDT for now. This allows loading the
  ELF kernel and jumping to the entry point without trampoline.
  
  Revision  Changes    Path
  1.15      +29 -31    src/sys/powerpc/booke/locore.S
  1.36      +32 -21    src/sys/powerpc/booke/machdep.c
  1.42      +1 -1      src/sys/powerpc/booke/pmap.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201105280410.p4S4Awag083691>