Made some boot_sect_t vars unsigned char' instead of char'.
committer: mfx <mfx> 976879262 +0000
This commit is contained in:
parent
99a1a85df6
commit
0b93d6c1f5
@ -31,7 +31,7 @@
|
||||
|
||||
|
||||
/*************************************************************************
|
||||
// vmlinuz/i386 (zlib compressed Linux kernel image)
|
||||
// vmlinuz/i386 (gzip compressed Linux kernel image)
|
||||
**************************************************************************/
|
||||
|
||||
class PackVmlinuzI386 : public Packer
|
||||
@ -63,22 +63,22 @@ protected:
|
||||
struct boot_sect_t
|
||||
{
|
||||
char _[0x1f1];
|
||||
char setup_sects;
|
||||
char _1[2];
|
||||
unsigned char setup_sects;
|
||||
char __[2];
|
||||
LE16 sys_size;
|
||||
char _2[8];
|
||||
char ___[8];
|
||||
LE16 boot_flag; // 0xAA55
|
||||
// 0x200
|
||||
char _3[2];
|
||||
char hdrs[4]; // "HdrS"
|
||||
char ____[2];
|
||||
unsigned char hdrs[4]; // "HdrS"
|
||||
LE16 version; // boot protocol
|
||||
char _4[9];
|
||||
char load_flags;
|
||||
char _5[2];
|
||||
char _____[9];
|
||||
unsigned char load_flags;
|
||||
char ______[2];
|
||||
LE32 code32_start;
|
||||
|
||||
// some more uninteresting fields here ...
|
||||
// see /usr/src/linux/Documentation/i386/
|
||||
// see /usr/src/linux/Documentation/i386/zero-page.txt
|
||||
};
|
||||
|
||||
MemBuffer setup_buf;
|
||||
@ -87,7 +87,7 @@ protected:
|
||||
|
||||
|
||||
/*************************************************************************
|
||||
// bvmlinuz/i386 (zlib compressed Linux kernel image)
|
||||
// bvmlinuz/i386 (gzip compressed Linux kernel image)
|
||||
**************************************************************************/
|
||||
|
||||
class PackBvmlinuzI386 : public PackVmlinuzI386
|
||||
|
||||
Loading…
Reference in New Issue
Block a user