Skip to content

Commit

Permalink
fast-boot: Header changes for SYSLINUX fast-boot
Browse files Browse the repository at this point in the history
Impact: file header changed.

In order to use the SYSLINUX fast-boot path, some modifications are
required to the file header.

This is used at resume time by the file parser to load and decompress
pageset1.

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
  • Loading branch information
pierre committed Feb 26, 2009
1 parent ea914c3 commit 96c38cd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions kernel/power/tuxonice_file.c
Expand Up @@ -77,6 +77,9 @@ struct toi_file_header {
int resumed_before;
unsigned long first_header_block;
int have_image;
int devinfo_sz;
int num_nodes;
int num_zones;
};

/* Header Page Information */
Expand Down Expand Up @@ -493,6 +496,9 @@ static int prepare_signature(struct toi_file_header *current_header,
current_header->resumed_before = 0;
current_header->first_header_block = first_header_block;
current_header->have_image = 1;
current_header->devinfo_sz = sizeof(devinfo);
current_header->num_nodes = MAX_NUMNODES;
current_header->num_zones = MAX_NR_ZONES;
return 0;
}

Expand Down

0 comments on commit 96c38cd

Please sign in to comment.