Commit Graph
100 Commits
Author SHA1 Message Date
Vladimir 'phcoder' Serbinenko 96bdd17579 merge mainline into newreloc 2010-01-18 22:38:25 +01:00
Vladimir 'phcoder' Serbinenko 5a6ff7ad4a kfreebsd-i386 bootcheck 2010-01-18 22:29:25 +01:00
Vladimir 'phcoder' Serbinenko 6f7db5d676 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
* include/grub/i386/bsd.h: Fix include pathes.
2010-01-18 19:25:20 +01:00
Vladimir 'phcoder' Serbinenko 262bff8d83 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
Add missing *BSD copyright headers.

	* include/grub/aout.h: Add BSD licence.
	* include/grub/i386/bsd.h: Parts under different licences moved to ...
	* include/grub/i386/freebsd_linker.h: ... here,
	* include/grub/i386/freebsd_reboot.h: ... here,
	* include/grub/i386/netbsd_bootinfo.h: ... here,
	* include/grub/i386/netbsd_reboot.h: ... here,
	* include/grub/i386/openbsd_bootarg.h: ... here,
	* include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
	licence to each file.
2010-01-18 17:40:23 +01:00
Vladimir 'phcoder' Serbinenko 1ef7e2992d Fix mismerge resulting in ghost multiboot module. Reported by: Grégoire Sutre. 2010-01-18 16:03:57 +01:00
Vladimir 'phcoder' Serbinenko 935842dd56 Always put smap after kern_end for freebsd 2010-01-18 13:32:56 +01:00
Vladimir 'phcoder' Serbinenko 5756bfe137 Fix regression in kfreebsd-i386 2010-01-18 12:45:28 +01:00
Vladimir 'phcoder' Serbinenko 6b9e2c181f merge bootcheck into newreloc 2010-01-18 12:40:33 +01:00
Vladimir 'phcoder' Serbinenko 3de254033c Fix x86_64-efi compilation 2010-01-18 12:01:13 +01:00
Vladimir 'phcoder' Serbinenko c5545cf8ba Fix linux-x86_64 bootchecks 2010-01-18 12:00:00 +01:00
Vladimir 'phcoder' Serbinenko 0db3ae3ce6 Add bootcheck for kfreebsd-x86_64 2010-01-18 11:38:28 +01:00
Vladimir 'phcoder' Serbinenko 5d615a77ce kfreebsd-i386 boot test support 2010-01-18 11:14:04 +01:00
Vladimir 'phcoder' Serbinenko ad8e99ec20 bootcheck support 2010-01-17 23:36:45 +01:00
Vladimir 'phcoder' Serbinenko b14620812f Enable serial on all i386.rmk 2010-01-17 19:22:36 +01:00
Vladimir 'phcoder' Serbinenko 88d2919b7d Merge mainline into newreloc 2010-01-17 19:18:46 +01:00
Vladimir 'phcoder' Serbinenko b0b139075e 2010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
Use flag-based instead of hook-based video mode selection and "auto"
	keyword.

	* include/grub/video.h (grub_video_adapter): Changed 'setup' member.
	(grub_video_set_mode): Changed prototype. All users updated.
	(grub_video_check_mode_flag): New inline function.
	* video/video.c (parse_modespec): New function.
	(grub_video_set_mode): Parse flags and keywords.
2010-01-17 17:52:01 +01:00
Vladimir 'phcoder' Serbinenko 72ebf8b87c Sort chunks 2010-01-17 12:42:28 +01:00
Vladimir 'phcoder' Serbinenko d92b0c01d4 Fixed knetbsd misbehaviour when no module is loaded 2010-01-16 12:55:52 +01:00
Vladimir 'phcoder' Serbinenko ae9eb98c7d NetBSD module support 2010-01-16 11:47:12 +01:00
Vladimir 'phcoder' Serbinenko cefe39c94b Fix knetbsd symbols 2010-01-16 11:06:55 +01:00
Vladimir 'phcoder' Serbinenko 820e8e55fd Avoid retrieving video info when no video is active 2010-01-16 00:31:24 +01:00
Vladimir 'phcoder' Serbinenko 262355247f merge mainline into newreloc 2010-01-16 00:05:33 +01:00
Vladimir 'phcoder' Serbinenko a0b766fc9b 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
Enable multiboot on non-pc.

	* conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
	multiboot.mod and multiboot2.mod to ...
	* conf/i386.rmk (pkglib_MODULES): ... here.
	* conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
	Moved to ...
	* conf/i386.rmk (multiboot_mod_SOURCES): .. here.
	* conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
	Moved to ...
	* conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
	* conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
	Moved to ...
	* conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
	* conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
	Moved to ...
	* conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
	* conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
	relocator.mod.
	(ata_mod_SOURCES): Removed.
	(ata_mod_CFLAGS): Likewise.
	(ata_mod_LDFLAGS): Likewise.
	(relocator_mod_SOURCES): Removed.
	(relocator_mod_CFLAGS): Likewise.
	(relocator_mod_ASFLAGS): Likewise.
	(relocator_mod_LDFLAGS): Likewise.
	Include i386.mk.
	* include/grub/x86_64/multiboot.h: New file.
	* loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
	Terminate EFI.
2010-01-15 21:11:51 +01:00
Vladimir 'phcoder' Serbinenko 884ade5654 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
Video multiboot support.

	* include/grub/multiboot.h (grub_multiboot_set_accepts_video):
	New prototype.
	* include/multiboot.h: Resynced with multiboot specification.
	* include/multiboot2.h: Likewise.
	* loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
	(grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
	* loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
	(HAS_VGA_TEXT): Likewise.
	(accepts_video): New variable.
	(grub_multiboot_set_accepts_video): New function.
	(grub_multiboot_get_mbi_size): Account for video structures.
	(set_video_mode): New function.
	(retrieve_video_parameters): Likewise.
	(grub_multiboot_make_mbi): Fill video fields.
2010-01-15 16:30:57 +01:00
Vladimir 'phcoder' Serbinenko 0d90e8a6fb 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
Video driver ids.

	* include/grub/video.h (grub_video_driver_id): New type.
	(grub_video_adapter): New member 'id'. All users updated.
	(grub_video_get_driver_id): New proto.
	* video/video.c (grub_video_get_driver_id): New function.
2010-01-15 16:11:18 +01:00
Vladimir 'phcoder' Serbinenko 53fbae94a6 netbsd framebuffer support 2010-01-15 13:40:37 +01:00
Vladimir 'phcoder' Serbinenko 9766dafa74 symtab support for knetbsd 2010-01-15 12:31:06 +01:00
Vladimir 'phcoder' Serbinenko 5fb5182f8a comX notation support 2010-01-15 11:48:15 +01:00
Vladimir 'phcoder' Serbinenko 2386d586b9 Merge some knetbsdcode into kfreebsd one. Serial supoort for knetbsd 2010-01-15 11:39:05 +01:00
Vladimir 'phcoder' Serbinenko def6307401 Be paranoid in relocator allocations 2010-01-15 11:34:22 +01:00
Vladimir 'phcoder' Serbinenko 9205ac07e3 Fix off-by-one error 2010-01-14 22:06:26 +01:00
Vladimir 'phcoder' Serbinenko 865a0f8aa7 elf symbols 2010-01-14 19:14:24 +01:00
Vladimir 'phcoder' Serbinenko 4a04699258 Fix a mistake with size calculation 2010-01-14 19:14:04 +01:00
Vladimir 'phcoder' Serbinenko 6a42fe54db Add missing #ifdef 2010-01-14 19:12:24 +01:00
Vladimir 'phcoder' Serbinenko 6dc1a8750a Merge mainline into newreloc 2010-01-14 13:43:34 +01:00
Vladimir 'phcoder' Serbinenko ea96d34596 Clarify type of bi_kernelname and bi_nfs_diskless 2010-01-14 13:40:17 +01:00
Vladimir 'phcoder' Serbinenko 9c4ffeebf5 2010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
* conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
	Add loader/i386/multiboot_mbi.c.
	(multiboot2_mod_SOURCES): Likewise.
	* conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
	(multiboot2_mod_SOURCES): Likewise.
	* include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
	(grub_multiboot_make_mbi): Likewise.
	(grub_multiboot_free_mbi): Likewise.
	(grub_multiboot_init_mbi): Likewise.
	(grub_multiboot_add_module): Likewise.
	(grub_multiboot_set_bootdev): Likewise.
	* loader/i386/multiboot.c (mbi): Removed.
	(mbi_dest): Likewise.
	(alloc_mbi): New variable.
	(grub_multiboot_payload_size): Removed. All users updated.
	(grub_multiboot_pure_size): New variable.
	(grub_multiboot_boot): Use grub_multiboot_make_mbi.
	(grub_multiboot_unload): Use grub_multiboot_free_mbi.
	(grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
	(grub_fill_multiboot_mmap): Likewise.
	(grub_multiboot_get_bootdev): Likewise.
	(grub_multiboot): Use multiboot_mbi functions.
	* loader/i386/multiboot_mbi.c: New file.
2010-01-14 12:40:55 +01:00
Vladimir 'phcoder' Serbinenko 05847c24e1 Merge mainline into abstractmbi 2010-01-14 12:34:23 +01:00
Vladimir 'phcoder' Serbinenko 6d8ebf76c4 support relocator64 from x86_64 mode 2010-01-13 23:17:12 +01:00
Vladimir 'phcoder' Serbinenko 17383dfe96 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
* kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
	it would result in module crash.
2010-01-13 22:53:12 +01:00
Vladimir 'phcoder' Serbinenko 0c31c22bda Remove leftover aout.mod 2010-01-13 21:06:49 +01:00
Vladimir 'phcoder' Serbinenko 8874cbbded Initial multi-i386 support for *BSD 2010-01-13 21:04:19 +01:00
Vladimir 'phcoder' Serbinenko c30074e344 Cleanup in bsd loaders 2010-01-13 21:00:46 +01:00
Vladimir 'phcoder' Serbinenko 021f5a2215 Remove leftovers in multiboot.c 2010-01-13 20:56:57 +01:00
Vladimir 'phcoder' Serbinenko c34a120a01 Move linux.mod to conf/i386.rmk 2010-01-13 20:55:34 +01:00
Vladimir 'phcoder' Serbinenko 3a87155884 Propagate removing of cpu/multiboot.h 2010-01-13 20:51:00 +01:00
Vladimir 'phcoder' Serbinenko d3fbca98e1 Fix type problem 2010-01-13 20:50:04 +01:00
Vladimir 'phcoder' Serbinenko 3f995850a4 declare grub_multiboot_relocator in multiboot.h. 2010-01-13 20:49:13 +01:00
Vladimir 'phcoder' Serbinenko 5ffb1b8494 Remove leftover grub_unix_real_boot 2010-01-13 20:47:05 +01:00
Vladimir 'phcoder' Serbinenko c1f2882010 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
* term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
	(grub_ofconsole_getwh): Split to ...
	(grub_ofconsole_getwh): ... this.
	(grub_ofconsole_dimensions): ...and this.
	(grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
2010-01-13 20:43:48 +01:00
Vladimir 'phcoder' Serbinenko 4a86b371b4 Fix coreboot compilation error 2010-01-13 20:25:08 +01:00
Vladimir 'phcoder' Serbinenko 319fc3d213 Remove became useless i386/multiboot.h 2010-01-13 18:44:12 +01:00
Vladimir 'phcoder' Serbinenko ad184204b2 Remove leftover multiboot elpers 2010-01-13 18:41:49 +01:00
Vladimir 'phcoder' Serbinenko 0599ad1507 Fix compilation on i386-ieee127 2010-01-13 17:28:20 +01:00
Vladimir 'phcoder' Serbinenko 9efe142861 Use linux.c on i386-ieee1275 2010-01-13 17:27:45 +01:00
Vladimir 'phcoder' Serbinenko 8071fb7997 ieee1275 support in linux.c 2010-01-13 17:26:47 +01:00
Vladimir 'phcoder' Serbinenko 8b889c332a Fix bug when whole region is free 2010-01-13 17:25:49 +01:00
Vladimir 'phcoder' Serbinenko a52dadc592 merge mainline into newreloc 2010-01-13 14:12:47 +01:00
Vladimir 'phcoder' Serbinenko d1b3ffe8ce merge efigfx into newreloc 2010-01-13 14:12:24 +01:00
Vladimir 'phcoder' Serbinenko 4d27140f7f Removed efi linux loader (now it's in i386/linux.c) 2010-01-13 14:05:39 +01:00
Vladimir 'phcoder' Serbinenko c8142599fc Merge i386/efi/linux.c into i386/linux.c 2010-01-13 14:03:54 +01:00
Vladimir 'phcoder' Serbinenko ca732b36c1 Video driver ID. 2010-01-13 14:03:18 +01:00
Vladimir 'phcoder' Serbinenko 19eb83d486 Include i386.rmk into x86_64-efi.rmk 2010-01-13 14:02:32 +01:00
Vladimir 'phcoder' Serbinenko 37480ee490 Added needed casts 2010-01-13 13:41:15 +01:00
Vladimir 'phcoder' Serbinenko 73f6ce4ab2 x86_64 support for relocator 2010-01-12 23:30:52 +01:00
Vladimir 'phcoder' Serbinenko 11aadbadfb fix compilation on coreboot 2010-01-12 23:03:56 +01:00
Vladimir 'phcoder' Serbinenko e39029dd1e Remove i386/loader.S 2010-01-12 22:24:41 +01:00
Vladimir 'phcoder' Serbinenko e6e7b4ea1f Remove i386/loader.h 2010-01-12 22:22:36 +01:00
Vladimir 'phcoder' Serbinenko 1b86596ae1 Remove OS area 2010-01-12 22:17:44 +01:00
Vladimir 'phcoder' Serbinenko c911e8791a Port linux16 to relocator framework 2010-01-12 22:17:26 +01:00
Vladimir 'phcoder' Serbinenko 14dacc815a Clarify type of cmd_line_ptr 2010-01-12 22:16:33 +01:00
Vladimir 'phcoder' Serbinenko cdab631686 Relocator16 support 2010-01-12 22:15:50 +01:00
Vladimir 'phcoder' Serbinenko 49a716be3b Possibility to prefer higher or lower chunks in relocator 2010-01-12 22:14:26 +01:00
Vladimir 'phcoder' Serbinenko b16ff4662e Small cleanup 2010-01-12 19:47:02 +01:00
Vladimir 'phcoder' Serbinenko 611f8f0eb9 Remove unused BSD helpers 2010-01-12 17:57:04 +01:00
Vladimir 'phcoder' Serbinenko 10891398fd 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
* loader/i386/pc/multiboot2.c: Removed stalled file.
2010-01-12 17:56:05 +01:00
Vladimir 'phcoder' Serbinenko 73910decff Fix various bugs in *bsd. Freebsd64 on relocators 2010-01-12 17:50:11 +01:00
Vladimir 'phcoder' Serbinenko 14933205d1 Relocator64 support 2010-01-12 17:48:51 +01:00
Vladimir 'phcoder' Serbinenko 1d24828f20 Fix out of memory hang. Add sanity checks 2010-01-12 17:47:14 +01:00
Vladimir 'phcoder' Serbinenko 8468cbeccd Fix typo in relocator32.S 2010-01-12 17:46:17 +01:00
Vladimir 'phcoder' Serbinenko 0b8a223cb1 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
* util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
	Reported by: Grégoire Sutre
2010-01-12 13:36:44 +01:00
Vladimir 'phcoder' Serbinenko 108408aa39 BSD on relocators 2010-01-11 22:54:40 +01:00
Vladimir 'phcoder' Serbinenko d45dca5ab3 Fix few bugs in relocators 2010-01-11 22:54:20 +01:00
Vladimir 'phcoder' Serbinenko 55b40bc68a Ported linux to relocator framework 2010-01-11 14:59:01 +01:00
Vladimir 'phcoder' Serbinenko cb1b2ad7e0 Reenable XNU 2010-01-11 13:43:44 +01:00
Vladimir 'phcoder' Serbinenko 669a1c01fb Fix various mistakes 2010-01-11 13:43:31 +01:00
Vladimir 'phcoder' Serbinenko 796d2fa20e Remove uselees instruction 2010-01-11 13:42:45 +01:00
Vladimir 'phcoder' Serbinenko b56495543a Fix variable name collision 2010-01-11 13:40:59 +01:00
Vladimir 'phcoder' Serbinenko d2601bb7bc decrease scope of code_size 2010-01-11 11:32:41 +01:00
Vladimir 'phcoder' Serbinenko 5c8e58b0cb merge abstractmbi into newreloc 2010-01-11 11:29:52 +01:00
Vladimir 'phcoder' Serbinenko ffa8e3d277 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
* term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
	in premature implicit newline.
2010-01-10 22:35:46 +01:00
Vladimir 'phcoder' Serbinenko e9060a9d3b 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
* normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
	which resulted in garbled command line at the end of screen.
2010-01-10 22:34:25 +01:00
Vladimir 'phcoder' Serbinenko 7e267737b6 Add align to .S files 2010-01-10 18:59:31 +01:00
Vladimir 'phcoder' Serbinenko cd0514794a MAnipulate mbi in abstract way 2010-01-10 18:58:18 +01:00
Vladimir 'phcoder' Serbinenko 14e43c6e02 First working newreloc 2010-01-10 15:06:17 +01:00
Vladimir 'phcoder' Serbinenko 6b60576149 merge mainline into newreloc 2010-01-10 01:56:47 +01:00
Vladimir 'phcoder' Serbinenko 95c7fc3f55 First compileable newreloc 2010-01-10 00:30:33 +01:00
Vladimir 'phcoder' Serbinenko 1dcb8d30a9 ChangeLog 2010-01-07 22:22:24 +01:00
Vladimir 'phcoder' Serbinenko 3b88cbbda5 Warning fixes 2010-01-07 22:22:11 +01:00
Vladimir 'phcoder' Serbinenko fc054c9cb8 Various cleanups 2010-01-07 22:18:59 +01:00