public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 0/4] Make u-boot true PIC for ppc
@ 2009-12-30 15:08 Joakim Tjernlund
  2009-12-30 15:08 ` [U-Boot] [PATCH 1/4] ppc: Add const void *link_off(const void *addr) Joakim Tjernlund
  0 siblings, 1 reply; 27+ messages in thread
From: Joakim Tjernlund @ 2009-12-30 15:08 UTC (permalink / raw)
  To: u-boot

This series adds link_off(), a function to calculate
the difference between load address and link address.

Using this function it is possible to make u-boot 100%
PIC by wrapping global data accesses LINK_OFF() calls.
Plenty of examples in the code to show how to use it.

All start.S needs to be updated too and I have done
so with mpc83xx.

-DCONFIG_LINK_OFF in your platform config.mk to
make use of this function.

Needs the -ffixed-r14 patches I just sent or
you can fix the conflicts manually.

Would really appreciate some testing by 83xx owners.
Scott?

Note: this is a resend.

        Jocke

Joakim Tjernlund (4):
  ppc: Add const void *link_off(const void *addr)
  Use LINK_OFF to access global data
  Use LINK_OFF in enviroment too
  ppc: Make mpc83xx start.S relative.

 common/cmd_nvedit.c           |    2 +
 common/console.c              |   12 ++++++--
 common/env_common.c           |    2 +-
 common/env_flash.c            |   65 ++++++++++++++++++++++++----------------
 cpu/mpc83xx/cpu.c             |   10 +++---
 cpu/mpc83xx/cpu_init.c        |   38 ++++++++++++-----------
 cpu/mpc83xx/speed.c           |   28 +++++++-----------
 cpu/mpc83xx/start.S           |   35 +++++++++++++++++----
 drivers/serial/serial.c       |   21 +++++++------
 include/common.h              |    7 ++++
 include/linux/ctype.h         |    6 ++--
 lib_generic/crc32.c           |    7 ++++-
 lib_generic/ctype.c           |    2 +-
 lib_generic/display_options.c |    5 ++-
 lib_generic/vsprintf.c        |    9 ++++--
 lib_ppc/board.c               |    5 ++-
 lib_ppc/reloc.S               |   21 +++++++++++++
 tools/updater/ctype.c         |    2 +-
 18 files changed, 177 insertions(+), 100 deletions(-)

^ permalink raw reply	[flat|nested] 27+ messages in thread
* [U-Boot] [PATCH 0/4] Make u-boot true PIC for ppc
@ 2009-11-02 18:01 Joakim Tjernlund
  2009-11-02 18:01 ` [U-Boot] [PATCH 1/4] ppc: Add const void *link_off(const void *addr) Joakim Tjernlund
  0 siblings, 1 reply; 27+ messages in thread
From: Joakim Tjernlund @ 2009-11-02 18:01 UTC (permalink / raw)
  To: u-boot

This series adds link_off(), a function to calculate
the difference between load address and link address.

Using this function it is possible to make u-boot 100%
PIC by wrapping global data accesses LINK_OFF() calls.
Plenty of examples in the code to show how to use it.

All start.S needs to be updated too and I have done
so with mpc83xx.

-DCONFIG_LINK_OFF in your platform config.mk to
make use of this function.

Needs the -ffixed-r14 patches I just sent or
you can fix the conflicts manually.

Would really appreciate some testing by 83xx owners.
Scott?

        Jocke

Joakim Tjernlund (4):
  ppc: Add const void *link_off(const void *addr)
  Use LINK_OFF to access global data
  Use LINK_OFF in enviroment too
  ppc: Make mpc83xx start.S relative.

 common/cmd_nvedit.c           |    2 +
 common/console.c              |   12 ++++++--
 common/env_common.c           |    2 +-
 common/env_flash.c            |   65 ++++++++++++++++++++++++----------------
 cpu/mpc83xx/cpu.c             |   10 +++---
 cpu/mpc83xx/cpu_init.c        |   38 ++++++++++++-----------
 cpu/mpc83xx/speed.c           |   28 +++++++-----------
 cpu/mpc83xx/start.S           |   35 +++++++++++++++++----
 drivers/serial/serial.c       |   21 +++++++------
 include/common.h              |    7 ++++
 include/linux/ctype.h         |    6 ++--
 lib_generic/crc32.c           |    7 ++++-
 lib_generic/ctype.c           |    2 +-
 lib_generic/display_options.c |    5 ++-
 lib_generic/vsprintf.c        |    9 ++++--
 lib_ppc/board.c               |    5 ++-
 lib_ppc/reloc.S               |   21 +++++++++++++
 tools/updater/ctype.c         |    2 +-
 18 files changed, 177 insertions(+), 100 deletions(-)

^ permalink raw reply	[flat|nested] 27+ messages in thread

end of thread, other threads:[~2010-01-06 21:02 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-30 15:08 [U-Boot] [PATCH 0/4] Make u-boot true PIC for ppc Joakim Tjernlund
2009-12-30 15:08 ` [U-Boot] [PATCH 1/4] ppc: Add const void *link_off(const void *addr) Joakim Tjernlund
2009-12-30 15:08   ` [U-Boot] [PATCH 2/4] Use LINK_OFF to access global data Joakim Tjernlund
2009-12-30 15:08     ` [U-Boot] [PATCH 3/4] Use LINK_OFF in enviroment too Joakim Tjernlund
2009-12-30 15:08       ` [U-Boot] [PATCH 4/4] ppc: Make mpc83xx start.S relative Joakim Tjernlund
2009-12-31 18:44     ` [U-Boot] [PATCH 2/4] Use LINK_OFF to access global data Mike Frysinger
2010-01-01  1:39       ` Joakim Tjernlund
2010-01-01  6:18         ` Mike Frysinger
2010-01-01 16:29           ` Joakim Tjernlund
2010-01-02  3:14             ` Mike Frysinger
2010-01-02 18:17         ` Wolfgang Denk
2010-01-03 10:48           ` Joakim Tjernlund
2010-01-02 18:13     ` Wolfgang Denk
2010-01-03 10:33       ` Joakim Tjernlund
2010-01-03 19:51         ` Wolfgang Denk
2010-01-03 20:06           ` Albert ARIBAUD
2010-01-03 20:17             ` Wolfgang Denk
2010-01-03 20:41               ` Albert ARIBAUD
2010-01-03 21:07                 ` Wolfgang Denk
2010-01-04  6:54                   ` Albert ARIBAUD
2010-01-03 22:29                 ` Graeme Russ
2010-01-05 20:20             ` Scott Wood
2010-01-05 22:11               ` Joakim Tjernlund
2010-01-06 21:02                 ` Scott Wood
2010-01-04  1:08           ` Joakim Tjernlund
2010-01-05  0:40           ` Mike Frysinger
  -- strict thread matches above, loose matches on Subject: below --
2009-11-02 18:01 [U-Boot] [PATCH 0/4] Make u-boot true PIC for ppc Joakim Tjernlund
2009-11-02 18:01 ` [U-Boot] [PATCH 1/4] ppc: Add const void *link_off(const void *addr) Joakim Tjernlund
2009-11-02 18:01   ` [U-Boot] [PATCH 2/4] Use LINK_OFF to access global data Joakim Tjernlund

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox