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
|
class PackVmlinuzI386 : public Packer
|
||||||
@ -63,22 +63,22 @@ protected:
|
|||||||
struct boot_sect_t
|
struct boot_sect_t
|
||||||
{
|
{
|
||||||
char _[0x1f1];
|
char _[0x1f1];
|
||||||
char setup_sects;
|
unsigned char setup_sects;
|
||||||
char _1[2];
|
char __[2];
|
||||||
LE16 sys_size;
|
LE16 sys_size;
|
||||||
char _2[8];
|
char ___[8];
|
||||||
LE16 boot_flag; // 0xAA55
|
LE16 boot_flag; // 0xAA55
|
||||||
// 0x200
|
// 0x200
|
||||||
char _3[2];
|
char ____[2];
|
||||||
char hdrs[4]; // "HdrS"
|
unsigned char hdrs[4]; // "HdrS"
|
||||||
LE16 version; // boot protocol
|
LE16 version; // boot protocol
|
||||||
char _4[9];
|
char _____[9];
|
||||||
char load_flags;
|
unsigned char load_flags;
|
||||||
char _5[2];
|
char ______[2];
|
||||||
LE32 code32_start;
|
LE32 code32_start;
|
||||||
|
|
||||||
// some more uninteresting fields here ...
|
// some more uninteresting fields here ...
|
||||||
// see /usr/src/linux/Documentation/i386/
|
// see /usr/src/linux/Documentation/i386/zero-page.txt
|
||||||
};
|
};
|
||||||
|
|
||||||
MemBuffer setup_buf;
|
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
|
class PackBvmlinuzI386 : public PackVmlinuzI386
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user