diff options
author | Paul Mackerras <paulus@samba.org> | 2005-10-05 22:06:20 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2005-10-05 22:06:20 -0400 |
commit | 9b6b563c0d2d25ecc3111916031aa7255543fbfb (patch) | |
tree | 07fd029308055461caa157d15a88c01861efc6bb /include/asm-powerpc/system.h | |
parent | b85a046af3a260e079505e8023ccd10e01cf4f2b (diff) |
powerpc: Merge in the ppc64 version of the prom code.
This brings in the ppc64 version of prom_init.c, prom.c and btext.c
and makes them work for ppc32. This also brings in the new calling
convention, where the first entry to the kernel (with r5 != 0) goes
to the prom_init code, which then restarts from the beginning (with
r5 == 0) after it has done its stuff.
For now this also brings in the ppc32 version of setup.c. It also
merges lmb.h.
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'include/asm-powerpc/system.h')
-rw-r--r-- | include/asm-powerpc/system.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/asm-powerpc/system.h b/include/asm-powerpc/system.h index 027479dcbf43..66866f7301a9 100644 --- a/include/asm-powerpc/system.h +++ b/include/asm-powerpc/system.h | |||
@@ -346,7 +346,12 @@ __cmpxchg(volatile void *ptr, unsigned long old, unsigned long new, | |||
346 | 346 | ||
347 | #define arch_align_stack(x) (x) | 347 | #define arch_align_stack(x) (x) |
348 | 348 | ||
349 | /* Used in very early kernel initialization. */ | ||
349 | extern unsigned long reloc_offset(void); | 350 | extern unsigned long reloc_offset(void); |
351 | extern unsigned long add_reloc_offset(unsigned long); | ||
352 | extern void reloc_got2(unsigned long); | ||
353 | |||
354 | #define PTRRELOC(x) ((typeof(x)) add_reloc_offset((unsigned long)(x))) | ||
350 | 355 | ||
351 | #endif /* __KERNEL__ */ | 356 | #endif /* __KERNEL__ */ |
352 | #endif /* _ASM_POWERPC_SYSTEM_H */ | 357 | #endif /* _ASM_POWERPC_SYSTEM_H */ |