mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-23 04:34:11 +08:00
2e2446ea07
Comments in head.S suggest that the iSeries naca has a fixed address, because tools expect to find it there. The only tool which appears to access the naca is addRamDisk, but both the in-kernel version and the version used in RHEL and SuSE in fact locate the NACA the same way as the hypervisor does, by following the pointer in the hvReleaseData structure. Since the requirement for a fixed address seems to be obsolete, this patch removes the naca from head.S and replaces it with a normal C initializer. For good measure, it removes an old version of addRamDisk.c which was sitting, unused, in the ppc32 tree. Signed-off-by: David Gibson <dwg@au1.ibm.com> Signed-off-by: Paul Mackerras <paulus@samba.org>
25 lines
682 B
C
25 lines
682 B
C
#ifndef _NACA_H
|
|
#define _NACA_H
|
|
|
|
/*
|
|
* c 2001 PPC 64 Team, IBM Corp
|
|
*
|
|
* This program is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU General Public License
|
|
* as published by the Free Software Foundation; either version
|
|
* 2 of the License, or (at your option) any later version.
|
|
*/
|
|
|
|
#include <asm/types.h>
|
|
|
|
struct naca_struct {
|
|
/* Kernel only data - undefined for user space */
|
|
void *xItVpdAreas; /* VPD Data 0x00 */
|
|
void *xRamDisk; /* iSeries ramdisk 0x08 */
|
|
u64 xRamDiskSize; /* In pages 0x10 */
|
|
};
|
|
|
|
extern struct naca_struct naca;
|
|
|
|
#endif /* _NACA_H */
|