linux-2.6.21.5 CONFIG_PARAVIRT
This commit is contained in:
parent
42a7201a70
commit
d17f8c5049
@ -213,10 +213,14 @@ int PackVmlinuzI386::decompressKernel()
|
||||
|
||||
|
||||
// see /usr/src/linux/arch/i386/kernel/head.S
|
||||
// 2.4.x: cld; mov $...,%eax
|
||||
if (memcmp(ibuf, "\xFC\xB8", 2) == 0) goto head_ok;
|
||||
// 2.6.x: cld; lgdt ...
|
||||
if (memcmp(ibuf, "\xFC\x0F\x01", 3) == 0) goto head_ok;
|
||||
// 2.4.x: [cli;] cld; mov $...,%eax
|
||||
if (memcmp(ibuf, "\xFC\xB8", 2) == 0) goto head_ok;
|
||||
if (memcmp(ibuf, "\xFA\xFC\xB8", 3) == 0) goto head_ok;
|
||||
// 2.6.x: [cli;] cld; lgdt ...
|
||||
if (memcmp(ibuf, "\xFC\x0F\x01", 3) == 0) goto head_ok;
|
||||
if (memcmp(ibuf, "\xFA\xFC\x0F\x01", 4) == 0) goto head_ok;
|
||||
// 2.6.21.5 CONFIG_PARAVIRT mov %cs,%eax; test $3,%eax; jne ...;
|
||||
if (memcmp(ibuf, "\x8c\xc8\xa9\x03\x00\x00\x00\x0f\x85", 9) == 0) goto head_ok;
|
||||
// 2.6.x+grsecurity+strongswan+openwall+trustix: ljmp $0x10,...
|
||||
if (ibuf[0] == 0xEA && memcmp(ibuf+5, "\x10\x00", 2) == 0) goto head_ok;
|
||||
// x86_64 2.6.x
|
||||
|
||||
Loading…
Reference in New Issue
Block a user