256 bytes is awfully short, and 1024 matches the size of the temporary buffer tboot uses to manipulate the command line.
Signed-off-by: Ed Swierk <eswi...@skyportsystems.com> --- tboot/common/linux.c | 4 ++-- tboot/include/linux_defns.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tboot/common/linux.c b/tboot/common/linux.c index 3572d5f..f4668c0 100644 --- a/tboot/common/linux.c +++ b/tboot/common/linux.c @@ -120,8 +120,8 @@ bool expand_linux_image(const void *linux_image, size_t linux_size, /* recommended layout 0x0000 - 0x7FFF Real mode kernel - 0x8000 - 0x8FFF Stack and heap - 0x9000 - 0x90FF Kernel command line + 0x8000 - 0x8CFF Stack and heap + 0x8D00 - 0x90FF Kernel command line for details, see linux_defns.h */ diff --git a/tboot/include/linux_defns.h b/tboot/include/linux_defns.h index 12c5714..cd126db 100644 --- a/tboot/include/linux_defns.h +++ b/tboot/include/linux_defns.h @@ -207,7 +207,7 @@ typedef struct __attribute__ ((packed)) { #define REAL_KERNEL_OFFSET 0x0000 #define BOOT_SECTOR_OFFSET 0x0200 -#define KERNEL_CMDLINE_OFFSET 0x9000 +#define KERNEL_CMDLINE_OFFSET 0x8D00 #define REAL_END_OFFSET 0x9100 #define REAL_MODE_SIZE REAL_END_OFFSET - REAL_KERNEL_OFFSET -- 1.9.1 ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot _______________________________________________ tboot-devel mailing list tboot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tboot-devel