Vladimir 'phcoder' Serbinenko 99ce1597a4 Add LZSS Mach-O support (needed for new xnu kernelcache).
* grub-core/Makefile.core.def (xnu): Add file lzss.c
	* grub-core/loader/lzss.c: New file.
	* grub-core/loader/xnu.c (grub_xnu_load_driver): Close binaryfile
	on Mach-O open failure.
	* grub-core/loader/macho.c (grub_macho_close): Free uncompressedXX.
	Don't free cmdsXX in uncompressedXX is set.
	(grub_macho_file): Init new fields.
	New argument is_64bit. All users updated.
	Handle compressed. Error out if no suitable architecture is found.
	Don't close file.
	(grub_macho_open): New argument is_64bit. All users updated.
	* grub-core/loader/macho32.c: Add defines for new fields.
	* grub-core/loader/macho64.c: Likewise.
	* grub-core/loader/machoXX.c (grub_macho_contains_macho): Make static.
	(grub_macho_parse): Handle compressed.
	Defer actual processing if compressed.
	(grub_macho_cmds_iterate): Decompress if compressed. New argument
	"filename". All users updated.
	(grub_macho_size): New argument "filename". All users updated.
	(grub_macho_get_entry_point): Likewise.
	(grub_macho_load): Handle compressed.
	* include/grub/macho.h (grub_macho_lzss_header): New struct.
	(GRUB_MACHO_LZSS_OFFSET): New define.
	(grub_decompress_lzss): New proto.
	* include/grub/machoload.h (grub_macho_file): New fields to handle
	compressed.
	(grub_macho_contains_macho64): Remove proto.
	(grub_macho_contains_macho32): Likewise.
	* util/grub.d/30_os-prober.in: Use kernel cache if available.
2012-02-29 13:26:13 +01:00
..
2012-01-25 16:13:34 +01:00
2012-02-28 04:04:19 +01:00
2011-11-30 16:20:13 +01:00
2011-10-14 19:21:59 +02:00
2012-02-05 11:07:33 +01:00
2010-08-17 19:03:22 +05:30
2010-08-17 19:03:22 +05:30
2010-09-04 17:10:10 +02:00
2012-02-26 19:10:52 +01:00
2010-08-17 19:03:22 +05:30
2010-08-17 19:03:22 +05:30
2011-05-13 20:56:50 +02:00
2011-07-05 20:24:20 +02:00
2012-02-12 03:52:17 +01:00
2011-10-01 22:51:12 +02:00
2010-09-02 00:07:55 +02:00
2011-05-18 12:41:22 +02:00
2010-08-17 19:03:22 +05:30
2010-08-17 19:03:22 +05:30
2010-08-17 19:03:22 +05:30
2010-08-17 19:03:22 +05:30
2010-08-17 19:03:22 +05:30
2010-08-17 19:03:22 +05:30
2010-12-11 07:00:31 +01:00
2010-08-17 19:03:22 +05:30
2010-08-17 19:03:22 +05:30
2012-02-26 22:49:24 +01:00
2010-09-04 17:10:10 +02:00
2011-01-10 23:27:58 +01:00
2010-08-28 14:52:25 +02:00
2011-11-13 12:48:39 +01:00
2010-12-21 00:04:31 +01:00
2012-02-09 14:38:34 +01:00
2010-08-29 13:45:36 +02:00
2012-01-20 15:01:35 +01:00
2010-08-17 19:03:22 +05:30
2011-11-30 16:20:13 +01:00
2011-10-01 21:37:02 +02:00
2010-08-17 19:03:22 +05:30
2010-09-24 14:05:47 +02:00
2010-04-27 13:34:07 +02:00
2012-02-26 19:02:46 +01:00
2010-08-17 19:03:22 +05:30
2010-09-13 12:16:22 +02:00
2010-08-17 19:03:22 +05:30
2010-08-17 19:03:22 +05:30
2010-08-17 19:03:22 +05:30
2011-11-30 16:20:13 +01:00
2010-08-17 19:03:22 +05:30
2012-02-01 14:30:40 +01:00
2010-08-17 19:03:22 +05:30
2010-08-23 23:28:33 +02:00
2011-07-05 23:46:15 +02:00
2010-08-17 19:03:22 +05:30
2012-02-28 04:04:19 +01:00