lkml.org 
[lkml]   [2007]   [May]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subject[PATCH 1/2] lguest update for mm: simplify boot_params
From
Date
Andrew patched up lguest after the boot parameters became a proper
structure, but in fact it can be considerably neatened.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>

diff -r ffe7ce731118 drivers/lguest/lguest.c
--- a/drivers/lguest/lguest.c Fri May 18 10:18:56 2007 +1000
+++ b/drivers/lguest/lguest.c Fri May 18 11:04:19 2007 +1000
@@ -444,8 +444,7 @@ __init void lguest_init(void *boot)
{
/* Copy boot parameters first. */
memcpy(&boot_params, boot, PARAM_SIZE);
- memcpy(boot_command_line,
- __va(*(unsigned long *)((void *)&boot_params + NEW_CL_POINTER)),
+ memcpy(boot_command_line, __va(boot_params.hdr.cmd_line_ptr),
COMMAND_LINE_SIZE);

paravirt_ops.name = "lguest";

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2007-05-18 04:47    [W:0.030 / U:0.352 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site