Chameleon

Chameleon Commit Details

Date:2014-11-03 20:02:27 (9 years 4 months ago)
Author:ErmaC
Commit:2468
Parents: 2467
Message:Rename decompress_lzvn function to lzvn_decode follow Apple source name
Changes:
M/branches/ErmaC/Enoch/CHANGES
M/branches/ErmaC/Enoch/i386/boot2/lzvn.c
M/branches/ErmaC/Enoch/i386/boot2/drivers.c
M/branches/ErmaC/Enoch/i386/boot2/boot.h

File differences

branches/ErmaC/Enoch/i386/boot2/drivers.c
926926
927927
928928
929
929
930930
931931
932932
switch (kernel_header->compress_type)
{
case OSSwapBigToHostConstInt32('lzvn'):
size = decompress_lzvn( binary, uncompressed_size, &kernel_header->data[0], OSSwapBigToHostInt32(kernel_header->compressed_size));
size = lzvn_decode( binary, uncompressed_size, &kernel_header->data[0], OSSwapBigToHostInt32(kernel_header->compressed_size));
break;
case OSSwapBigToHostConstInt32('lzss'):
branches/ErmaC/Enoch/i386/boot2/lzvn.c
5757
5858
5959
60
61
62
63
64
60
61
62
63
6564
6665
6766
68
69
70
71
67
68
69
70
7271
7372
7473
} while (0)
size_t
decompress_lzvn(void * _dest,
size_t _dest_size,
void * _src,
size_t _src_size)
size_t lzvn_decode(void * dst,
size_t dst_size,
const void * src,
size_t src_size)
{
size_t rax = 0;
const uint64_t rdi = (const uint64_t)_dest;
uint64_t rsi = _dest_size;
uint64_t rcx = _src_size;
uint64_t rdx = (uint64_t)_src;
const uint64_t rdi = (const uint64_t)dst;
uint64_t rsi = dst_size;
uint64_t rcx = src_size;
uint64_t rdx = (uint64_t)src;
uint64_t r8 = 0;
uint64_t r9 = 0;
branches/ErmaC/Enoch/i386/boot2/boot.h
333333
334334
335335
336
337
336
337
338
339
340
341
342
343
344
345
338346
339347
340348
/*
* lzvn.c
*/
extern size_t decompress_lzvn(void * _dest, size_t _dest_size, void * _src, size_t _src_size);
// extern u_int8_t *compress_lzvn(u_int8_t *dst, u_int32_t dstlen, u_int8_t *src, u_int32_t srcLen);
extern size_t lzvn_decode(void * dst,
size_t dst_size,
const void * src,
size_t src_size);
/*extern size_t lzvn_encode(void * dst,
size_t dst_size,
const void * src,
size_t src_size,
void * work);
*/
struct compressed_kernel_header {
u_int32_t signature;
branches/ErmaC/Enoch/CHANGES
1
12
23
34
- ErmaC : Rename decompress_lzvn function to lzvn_decode follow Apple source name.
- ErmaC : Add more chameleon UI stuff (default) made by blackosx
- ErmaC : Rollback changes for msdos.c (2327) thx to bltz
- ErmaC : Split out states generator from acpi_patcher (Credits to Clover Teams)

Archive Download the corresponding diff file

Revision: 2468