diff options
author | R Sharada <sharada@in.ibm.com> | 2006-07-27 10:45:12 -0600 |
---|---|---|
committer | Eric W. Biederman <ebiederm@xmission.com> | 2006-07-27 10:45:12 -0600 |
commit | cf917def9fcb8bdc12e222b7751630669e59009e (patch) | |
tree | 62ba6fafc1b516167bbe4af43612b43c705b39e6 | |
parent | 920fca9abfba3f5b86b2f73b54ba6f45148847cf (diff) |
ppc64 fix function parameters
Fix the input parameters for get_memory_ranges and arch_compat_trampoline
keeping in line with the function prototypes defined in kexec/kexec.h. Also
changed variable references in /proc/device-tree
- modified the function parameters for get_memory_ranges and
arch_compat_trampoline
- fixed the names for kernel_end, htab_base and htab_size, in
line with the kernel variable names for the same
Signed-off-by: R Sharada <sharada@in.ibm.com>
Signed-off-by: Maneesh Soni <maneesh@in.ibm.com>
-rw-r--r-- | kexec/arch/ppc64/fs2dt.c | 6 | ||||
-rw-r--r-- | kexec/arch/ppc64/kexec-ppc64.c | 14 |
2 files changed, 10 insertions, 10 deletions
diff --git a/kexec/arch/ppc64/fs2dt.c b/kexec/arch/ppc64/fs2dt.c index 0f5c64e..8d22b19 100644 --- a/kexec/arch/ppc64/fs2dt.c +++ b/kexec/arch/ppc64/fs2dt.c @@ -162,9 +162,9 @@ void putprops(char *fn, DIR *dir) * boot. So, ignore it. */ if (!strcmp(dp->d_name, "linux,pci-domain") || - !strcmp(dp->d_name, "htab_base") || - !strcmp(dp->d_name, "htab_size") || - !strcmp(dp->d_name, "kernel_end")) + !strcmp(dp->d_name, "linux,htab-base") || + !strcmp(dp->d_name, "linux,htab-size") || + !strcmp(dp->d_name, "linux,kernel-end")) continue; if (S_ISREG(statbuf[0].st_mode)) { diff --git a/kexec/arch/ppc64/kexec-ppc64.c b/kexec/arch/ppc64/kexec-ppc64.c index 11138b7..a98bbf0 100644 --- a/kexec/arch/ppc64/kexec-ppc64.c +++ b/kexec/arch/ppc64/kexec-ppc64.c @@ -64,7 +64,6 @@ static int get_base_ranges() FILE *file; struct dirent *dentry, *mentry; int n; - unsigned long long start, end; if ((dir = opendir(device_tree)) == NULL) { perror(device_tree); @@ -193,7 +192,7 @@ static int get_devtree_details() memset(fname, 0, sizeof(fname)); strcpy(fname, device_tree); strcat(fname, dentry->d_name); - strcat(fname, "/kernel_end"); + strcat(fname, "/linux,kernel-end"); if ((file = fopen(fname, "r")) == NULL) { perror(fname); closedir(cdir); @@ -220,7 +219,7 @@ static int get_devtree_details() memset(fname, 0, sizeof(fname)); strcpy(fname, device_tree); strcat(fname, dentry->d_name); - strcat(fname, "/htab_base"); + strcat(fname, "/linux,htab-base"); if ((file = fopen(fname, "r")) == NULL) { perror(fname); closedir(cdir); @@ -238,7 +237,7 @@ static int get_devtree_details() memset(fname, 0, sizeof(fname)); strcpy(fname, device_tree); strcat(fname, dentry->d_name); - strcat(fname, "/htab_size"); + strcat(fname, "/linux,htab-size"); if ((file = fopen(fname, "r")) == NULL) { perror(fname); closedir(cdir); @@ -452,7 +451,8 @@ int setup_memory_ranges(void) } /* Return a list of valid memory ranges */ -int get_memory_ranges(struct memory_range **range, int *ranges) +int get_memory_ranges(struct memory_range **range, int *ranges, + unsigned long kexec_flags) { setup_memory_ranges(); *range = memory_range; @@ -497,7 +497,7 @@ int arch_process_options(int argc, char **argv) return 0; } -int arch_compat_trampoline(struct kexec_info *info, unsigned long *flags) +int arch_compat_trampoline(struct kexec_info *info) { int result; struct utsname utsname; @@ -512,7 +512,7 @@ int arch_compat_trampoline(struct kexec_info *info, unsigned long *flags) /* We are running a 32-bit kexec-tools on 64-bit ppc64. * So pass KEXEC_ARCH_PPC64 here */ - *flags |= KEXEC_ARCH_PPC64; + info->kexec_flags |= KEXEC_ARCH_PPC64; } else { fprintf(stderr, "Unsupported machine type: %s\n", |