# Re: \[PATCH 2/3\] \[44x\] Enable CONFIG\_RELOCATABLE for PPC44x

- From: Suzuki Poulose \<hidden\>
- Date: 2011-10-11 12:54:19 
- List: linuxppc-dev
- Page: https://ratatoskr.run/linuxppc-dev/2011/10/9466559
- Thread: https://ratatoskr.run/linuxppc-dev/2011/10/9466504/t.md

```text
On 10/10/11 23:30, Scott Wood wrote:
> On 10/10/2011 04:56 AM, Suzuki K. Poulose wrote:
>> #if defined(CONFIG_RELOCATABLE)&&  defined(CONFIG_44x)
>> #define __va(x) ((void *)(unsigned long)((phys_addr_t)(x) - PHYSICAL_START + (KERNELBASE + RELOC_OFFSET)))
>> #define __pa(x) ((unsigned long)(x) + PHYSICAL_START - (KERNELBASE + RELOC_OFFSET))
>> #endif
>
> Why is this 44x-specific?

As of now, we compile with relocations only for the 44x. We could make this
generic once the approach is accepted by everyone and implemented on the other
platforms.

Thanks

Suzuki
```
