[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20110508221952.GA26304@kamineko.org>
Date: Mon, 9 May 2011 07:19:53 +0900
From: Mattia Dongili <malattia@...ux.it>
To: Richard Weinberger <richard@....at>
Cc: linux-kernel@...r.kernel.org,
user-mode-linux-devel@...ts.sourceforge.net
Subject: Re: [uml-devel] [PATCH 1/4] um: fix UML_LIB_PATH
On Sun, May 08, 2011 at 11:59:42PM +0200, Richard Weinberger wrote:
> UML_LIB_PATH is hardcoded to /usr/lib/uml/,
> on 64bit systems UML_LIB_PATH needs to be /usr/lib64/uml/.
>
> Signed-off-by: Richard Weinberger <richard@....at>
> ---
> arch/um/drivers/xterm.c | 2 +-
> arch/um/include/shared/os.h | 7 +++++++
> arch/um/os-Linux/main.c | 2 +-
> 3 files changed, 9 insertions(+), 2 deletions(-)
>
> diff --git a/arch/um/drivers/xterm.c b/arch/um/drivers/xterm.c
> index da2caa5..8ac7146 100644
> --- a/arch/um/drivers/xterm.c
> +++ b/arch/um/drivers/xterm.c
> @@ -90,7 +90,7 @@ static int xterm_open(int input, int output, int primary, void *d,
> int pid, fd, new, err;
> char title[256], file[] = "/tmp/xterm-pipeXXXXXX";
> char *argv[] = { terminal_emulator, title_switch, title, exec_switch,
> - "/usr/lib/uml/port-helper", "-uml-socket",
> + OS_LIB_PATH "/uml/port-helper", "-uml-socket",
> file, NULL };
>
> if (access(argv[4], X_OK) < 0)
> diff --git a/arch/um/include/shared/os.h b/arch/um/include/shared/os.h
> index c4617ba..83c7c2e 100644
> --- a/arch/um/include/shared/os.h
> +++ b/arch/um/include/shared/os.h
> @@ -29,6 +29,12 @@
> #define OS_ACC_R_OK 4 /* Test for read permission. */
> #define OS_ACC_RW_OK (OS_ACC_W_OK | OS_ACC_R_OK) /* Test for RW permission */
>
> +#ifdef CONFIG_64BIT
> +#define OS_LIB_PATH "/usr/lib64/"
> +#else
> +#define OS_LIB_PATH "/usr/lib/"
> +#endif
> +
> /*
> * types taken from stat_file() in hostfs_user.c
> * (if they are wrong here, they are wrong there...).
> @@ -238,6 +244,7 @@ extern int raw(int fd);
> extern void setup_machinename(char *machine_out);
> extern void setup_hostinfo(char *buf, int len);
> extern void os_dump_core(void) __attribute__ ((noreturn));
> +extern void um_early_printk(const char *s, unsigned int n);
this hunk seems unrelated to this change.
Regards,
--
mattia
:wq!
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists