On Mon, Oct 09, 2006 at 02:55:28PM +0530, Mohan Kumar M wrote:
> Hello,
> 
> I am attaching 4 kexec-tools patches to check whether the current kernel
> has reserved memory for crashkernel or not. The check is done by calling
> architecture dependent functions. If no memory is reserved for
> crashkernel, it displays an appropriate error message and exits.
> 
> PATCH 1: Checks for crashkernel memory reservation by calling arch
> dependent function. It also creates dummy function for ppc, ia64 and
> s390 architectures to avoid problem in build process.
> 
> PATCH 2: ppc64 specific crashkernel memory reservation check
> 
> PATCH 3: i386 specific crashkernel memory reservation check
> 
> PATCH 4: x86-64 specific crashkernel memory reservation check
> 
> I update the patches by placing "is_crashkernel_mem_reserved"
> functions in appropriate files as suggested by Vivek.
> 
> Any suggestion, feedback?

Sorry for being a bit slow. They all look fine to me.
I have pushed them into kexec-tools-testing. I also pushed
the following patch which fixes a minor build problem for
the ppc64 patch (PATCH 2).

-- 
Horms
  H: http://www.vergenet.net/~horms/
  W: http://www.valinux.co.jp/en/

From: Simon Horman <[EMAIL PROTECTED]>
Date: Fri, 13 Oct 2006 16:02:38 +0900
Subject: Add headers for open()

The addition of is_crashkernel_mem_reserved() but the header
for O_RDONLY was not added. This patch adds all the headers
specified for open(1) in its man page.

Signed-Off-By: Simon Horman <[EMAIL PROTECTED]>

Index: kexec-tools-mohan/kexec/arch/ppc64/crashdump-ppc64.c
===================================================================
--- kexec-tools-mohan.orig/kexec/arch/ppc64/crashdump-ppc64.c   2006-10-13 
15:58:49.000000000 +0900
+++ kexec-tools-mohan/kexec/arch/ppc64/crashdump-ppc64.c        2006-10-13 
15:59:16.000000000 +0900
@@ -25,6 +25,9 @@
 #include <limits.h>
 #include <elf.h>
 #include <dirent.h>
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <fcntl.h>
 #include "../../kexec.h"
 #include "../../kexec-elf.h"
 #include "../../kexec-syscall.h"

_______________________________________________
fastboot mailing list
[email protected]
https://lists.osdl.org/mailman/listinfo/fastboot

Reply via email to