1. 26 Jan, 2010 3 commits
  2. 23 Jan, 2010 10 commits
  3. 22 Jan, 2010 3 commits
  4. 21 Jan, 2010 5 commits
  5. 20 Jan, 2010 19 commits
    • Felix Zielcke's avatar
      2010-01-20 Felix Zielcke <fzielcke@z-51.de> · 67eb1427
      Felix Zielcke authored
      	* util/misc.c (make_system_path_relative_to_its_root): Change the work
      	around for handling "/" to the correct fix.  Fix a memory leak.  Use
      	xstrdup instead of strdup.
      67eb1427
    • Vladimir 'phcoder' Serbinenko's avatar
      2010-01-20 Vladimir Serbinenko <phcoder@gmail.com> · a9ed4ff3
      Vladimir 'phcoder' Serbinenko authored
      	* conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
      a9ed4ff3
    • Vladimir 'phcoder' Serbinenko's avatar
      2009-11-29 Vladimir Serbinenko <phcoder@gmail.com> · bed35bda
      Vladimir 'phcoder' Serbinenko authored
      	Optimise glyph lookup by Basic Multilingual Plane lookup array.
      
      	* font/font.c (struct grub_font): New member 'bmp_idx'.
      	(font_init): Initialise 'bmp_idx'.
      	(load_font_index): Fill 'bmp_idx'.
      	(find_glyph): Make inline. Use bmp_idx for BMP characters.
      bed35bda
    • Vladimir 'phcoder' Serbinenko's avatar
      merge mainline into bmpidx · e6d5d6e6
      Vladimir 'phcoder' Serbinenko authored
      e6d5d6e6
    • Vladimir 'phcoder' Serbinenko's avatar
      2010-01-20 Vladimir Serbinenko <phcoder@gmail.com> · 48209f4f
      Vladimir 'phcoder' Serbinenko authored
      	* video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
      	unnecessary calls.
      48209f4f
    • Vladimir 'phcoder' Serbinenko's avatar
      b64e7239
    • Vladimir 'phcoder' Serbinenko's avatar
      2010-01-20 Vladimir Serbinenko <phcoder@gmail.com> · 9f0a4bb7
      Vladimir 'phcoder' Serbinenko authored
      	Move context handling out of the kernel.
      
      	* conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
      	* conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
      	* conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
      	* conf/i386-efi.rmk: Likewise.
      	* conf/i386-ieee1275.rmk: Likewise.
      	* conf/i386-pc.rmk: Likewise.
      	* conf/powerpc-ieee1275.rmk: Likewise.
      	* conf/sparc64-ieee1275.rmk: Likewise.
      	* conf/x86_64-efi.rmk: Likewise.
      	* include/grub/env.h: Include grub/menu.h.
      	(grub_env_var_type): Removed.
      	(grub_env_var): Replaced field 'type' with 'global'.
      	(grub_env_find): New prototype.
      	(grub_env_context_open): Remove EXPORT_FUNC.
      	(grub_env_context_close): Likewise.
      	(grub_env_export): Likewise.
      	(grub_env_set_data_slot): Removed.
      	(grub_env_get_data_slot): Likewise.
      	(grub_env_unset_data_slot): Likewise.
      	(grub_env_unset_menu): New prototype.
      	(grub_env_set_menu): Likewise.
      	(grub_env_get_menu): Likewise.
      	* include/grub/env_private.h: New file.
      	* include/grub/normal.h (grub_context_init): New prototype.
      	(grub_context_fini): Likewise.
      	* kern/corecmd.c (grub_core_cmd_export): Moved from here ...
      	* normal/context.c (grub_cmd_export): ... to here.
      	* kern/env.c: Include env_private.h.
      	(HASHSZ): Moved to include/grub/env_private.h.
      	(grub_env_context): Likewise.
      	(grub_env_sorted_var): Likewise.
      	(current_context): Renamed from this ...
      	(grub_current_context): ...to this. 'static' removed. All users updated.
      	(grub_env_find): Removed 'static'.
      	(grub_env_context_open): Moved to normal/context.c.
      	(grub_env_context_close): Likewise.
      	(grub_env_export): Likewise.
      	(mangle_data_slot_name): Removed.
      	(grub_env_set_data_slot): Likewise.
      	(grub_env_get_data_slot): Likewise.
      	(grub_env_unset_data_slot): Likewise.
      	* kern/main.c (grub_set_root_dev): Don't export root.
      	It will be done later.
      	(grub_main): Don't export prefix.
      	It will be done later.
      	* normal/context.c: New file.
      	* normal/main.c (free_menu): Use grub_env_unset_menu.
      	(grub_normal_add_menu_entry): Use grub_env_get_menu.
      	(read_config_file): Use grub_env_get_menu and grub_env_set_menu.
      	(GRUB_MOD_INIT(normal)): Call grub_context_init.
      	(GRUB_MOD_FINI(normal)): Call grub_context_fini.
      9f0a4bb7
    • Vladimir 'phcoder' Serbinenko's avatar
      merge mainline into newenv · 61c501a9
      Vladimir 'phcoder' Serbinenko authored
      61c501a9
    • Vladimir 'phcoder' Serbinenko's avatar
      2010-01-20 Vladimir Serbinenko <phcoder@gmail.com> · 8dd35b8c
      Vladimir 'phcoder' Serbinenko authored
      	setpci support.
      
      	* commands/setpci.c: New file.
      	* conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
      	(setpci_mod_SOURCES): New variable.
      	(setpci_mod_CFLAGS): Likewise.
      	(setpci_mod_LDFLAGS): Likewise.
      8dd35b8c
    • Vladimir 'phcoder' Serbinenko's avatar
      baccdb23
    • Vladimir 'phcoder' Serbinenko's avatar
      merge mainline into setpci · 5b47ee80
      Vladimir 'phcoder' Serbinenko authored
      5b47ee80
    • Vladimir 'phcoder' Serbinenko's avatar
      2010-01-20 Vladimir Serbinenko <phcoder@gmail.com> · fdb1b2ea
      Vladimir 'phcoder' Serbinenko authored
      	* video/sm712.c (grub_video_sm712_setup): Use GRUB_PCI_REG_CLASS.
      fdb1b2ea
    • Vladimir 'phcoder' Serbinenko's avatar
      2010-01-20 Vladimir Serbinenko <phcoder@gmail.com> · 449193d5
      Vladimir 'phcoder' Serbinenko authored
      	Byte-addressable PCI configuration space.
      
      	* bus/pci.c (grub_pci_make_address): Use byte address instead of
      	dword address.
      	(grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
      	GRUB_PCI_REG_CACHELINE.
      	* bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
      	GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
      	* bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
      	GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
      	* commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
      	* commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
      	grub_pci_make_address.
      	(lock_rom_area): Likewise.
      	* commands/lspci.c (grub_lspci_iter): Use macroses
      	GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
      	of grub_pci_make_address.
      	* disk/ata.c (grub_ata_pciinit): Likewise.
      	* include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
      	(GRUB_PCI_REG_VENDOR): Likewise.
      	(GRUB_PCI_REG_DEVICE): Likewise.
      	(GRUB_PCI_REG_COMMAND): Likewise.
      	(GRUB_PCI_REG_STATUS): Likewise.
      	(GRUB_PCI_REG_REVISION): Likewise.
      	(GRUB_PCI_REG_CLASS): Likewise.
      	(GRUB_PCI_REG_CACHELINE): Likewise.
      	(GRUB_PCI_REG_LAT_TIMER): Likewise.
      	(GRUB_PCI_REG_HEADER_TYPE): Likewise.
      	(GRUB_PCI_REG_BIST): Likewise.
      	(GRUB_PCI_REG_ADDRESSES): Likewise.
      	(GRUB_PCI_REG_ADDRESS_REG): Likewise.
      	(GRUB_PCI_REG_ADDRESS_REG): Likewise.
      	(GRUB_PCI_REG_ADDRESS_REG): Likewise.
      	(GRUB_PCI_REG_ADDRESS_REG): Likewise.
      	(GRUB_PCI_REG_ADDRESS_REG): Likewise.
      	(GRUB_PCI_REG_ADDRESS_REG): Likewise.
      	(GRUB_PCI_REG_CIS_POINTER): Likewise.
      	(GRUB_PCI_REG_SUBVENDOR): Likewise.
      	(GRUB_PCI_REG_SUBSYSTEM): Likewise.
      	(GRUB_PCI_REG_ROM_ADDRESS): Likewise.
      	(GRUB_PCI_REG_CAP_POINTER): Likewise.
      	(GRUB_PCI_REG_IRQ_LINE): Likewise.
      	(GRUB_PCI_REG_IRQ_PIN): Likewise.
      	(GRUB_PCI_REG_MIN_GNT): Likewise.
      	(GRUB_PCI_REG_MAX_LAT): Likewise.
      	* loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
      	* loader/i386/efi/xnu.c (find_framebuf): Likewise.
      	* video/efi_uga.c (find_framebuf): Likewise.
      	* util/pci.c (grub_pci_make_address): Use byte-addressed configuration
      	space.
      449193d5
    • Vladimir 'phcoder' Serbinenko's avatar
      f7fcb23c
    • Vladimir 'phcoder' Serbinenko's avatar
      Add comments to loadbios.c · 61c8e880
      Vladimir 'phcoder' Serbinenko authored
      61c8e880
    • Robert Millan's avatar
      2010-01-20 Robert Millan <rmh.grub@aybabtu.com> · 96d73208
      Robert Millan authored
      	
      	* util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
      	can be reliably determined to be supported.
      	
      96d73208
    • Robert Millan's avatar
      2010-01-20 Robert Millan <rmh.grub@aybabtu.com> · d4484482
      Robert Millan authored
      	
      	* loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
      	that VESA is supported.
      	(grub_linux_boot): Use generic framebuffer unless VESA is known to be
      	supported.
      	
      d4484482
    • Vladimir 'phcoder' Serbinenko's avatar
      2010-01-20 Vladimir Serbinenko <phcoder@gmail.com> · 00308ecf
      Vladimir 'phcoder' Serbinenko authored
      	* conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
      00308ecf
    • Robert Millan's avatar
      2010-01-20 Robert Millan <rmh.grub@aybabtu.com> · f66924a4
      Robert Millan authored
      	
      	* util/misc.c (make_system_path_relative_to_its_root): Work around
      	special-casing of "/", as previous incarnation of this routine did.
      	
      f66924a4