RE: [Linux-ia64] Re: [PATCH] head.S fix for unusual load addrs

From: Luck, Tony <tony.luck_at_intel.com>
Date: 2003-05-15 02:44:06
> If you plan to separate text and data of the kernel be aware 
> of tpa only translating data addresses and not instruction
> addresses. We would need a tpa.d and tpa.i. I am wondering
> about the lack of "tpa.i" in the itanium architecture design.

The previous incarnations of the replicate kernel text patch
all provided both an ITR and DTR mapping for the replicated
area ... but I don't recall that tpa was the issue, I think
that there are various data-ish blobs in amongst the code that
need to be mapped ... there is definitely the .rodata

Here's some ASCII-art that shows physical layout to the left, and
virtual layout on the right.  Sections in () show up at the virtual
addresses indicated, but aren't referenced by those addresses.

We use ITR[0] and DTR[0] to map what is labelled as the PERNODE
area (each node gets a copy of the bottom sections of the kernel,
so these mappings are different for each node), and DTR[3] to map
the GLOBAL area (same mapping on all nodes).

                          GLOBAL AREA
                        +------------+
                        | .bss       |
                        |            |
                        | .data      |
                        |            |
                        | .init.data |
                        |            |
                        |(.init.text)|
   PHYSICAL             |            |
  +------------+        | (.rodata)  |
  | .bss       |        |            |
  |            |        | (.text)    |
  | .data      |        +------------+ Region5 + 8G
  |            |
  | .init.data |
  |            |
  | .init.text |
  |            |        PERNODE AREA
  | .rodata    |        +------------+
  |            |        | (.bss)     |
  | .text      |        |            |
  +------------+        | (.data)    |
                        |            |
                        |(.init.data)|
                        |            |
                        | .init.text |
                        |            |
                        | .rodata    |
                        |            |
                        | .text      |
                        +------------+ Region5 + 4G

-Tony
Received on Wed May 14 09:44:24 2003

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:14 EST