]> git.proxmox.com Git - grub2.git/log
grub2.git
13 years agoefinet support
Vladimir 'phcoder' Serbinenko [Sun, 26 Jun 2011 20:42:04 +0000 (22:42 +0200)]
efinet support

13 years agoFew ofnet cleanups
Vladimir 'phcoder' Serbinenko [Sun, 26 Jun 2011 20:38:43 +0000 (22:38 +0200)]
Few ofnet cleanups

13 years agoPrint MAC address when listing cards
Vladimir 'phcoder' Serbinenko [Sun, 26 Jun 2011 20:37:49 +0000 (22:37 +0200)]
Print MAC address when listing cards

13 years agoDon't do unaligned access when parsing DHCP packet
Vladimir 'phcoder' Serbinenko [Sun, 26 Jun 2011 20:37:19 +0000 (22:37 +0200)]
Don't do unaligned access when parsing DHCP packet

13 years agoAdd ofnet and tftp modules
Vladimir 'phcoder' Serbinenko [Sun, 26 Jun 2011 17:52:50 +0000 (19:52 +0200)]
Add ofnet and tftp modules

13 years agoadd missing quotes and fix variable name
Vladimir 'phcoder' Serbinenko [Sun, 26 Jun 2011 16:23:12 +0000 (18:23 +0200)]
add missing quotes and fix variable name

13 years agomissing part of previous commit
Vladimir 'phcoder' Serbinenko [Sun, 26 Jun 2011 15:51:46 +0000 (17:51 +0200)]
missing part of previous commit

13 years agoremove leftover directory
Vladimir 'phcoder' Serbinenko [Sun, 26 Jun 2011 15:28:57 +0000 (17:28 +0200)]
remove leftover directory

13 years agomknetdir support for ieee1275
Vladimir 'phcoder' Serbinenko [Sun, 26 Jun 2011 15:28:19 +0000 (17:28 +0200)]
mknetdir support for ieee1275

13 years agominor cleanups
Vladimir 'phcoder' Serbinenko [Sun, 26 Jun 2011 15:18:53 +0000 (17:18 +0200)]
minor cleanups

13 years agoAdd backward compatibiulity with old (pxe) syntax. Several cleanups
Vladimir 'phcoder' Serbinenko [Sun, 26 Jun 2011 15:06:18 +0000 (17:06 +0200)]
Add backward compatibiulity with old (pxe) syntax. Several cleanups

13 years agoFix incorrect memset
Vladimir 'phcoder' Serbinenko [Sun, 26 Jun 2011 12:47:38 +0000 (14:47 +0200)]
Fix incorrect memset

13 years agoSend network packets on PXE
Vladimir 'phcoder' Serbinenko [Sun, 26 Jun 2011 02:19:12 +0000 (04:19 +0200)]
Send network packets on PXE

13 years agoFix a memory leak
Vladimir 'phcoder' Serbinenko [Sun, 26 Jun 2011 02:18:45 +0000 (04:18 +0200)]
Fix a memory leak

13 years agomerge mainline into net
Vladimir 'phcoder' Serbinenko [Fri, 24 Jun 2011 20:20:50 +0000 (22:20 +0200)]
merge mainline into net

13 years ago Network infrastructure.
Manoel Rebelo Abranches [Fri, 24 Jun 2011 20:16:05 +0000 (22:16 +0200)]
Network infrastructure.
The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>

* include/grub/net/arp.h: New file.
* include/grub/net/device.h: Likewise.
* include/grub/net/ethernet.h: Likewise.
* include/grub/net/ip.h: Likewise.
* include/grub/net/netbuff.h: Likewise.
* include/grub/net/tftp.h: Likewise.
* include/grub/net/udp.h: Likewise.
* include/grub/ieee1275/ofnet.h: Likewise.
* include/grub/emu/export.h: Likewise.
* include/grub/net.h: Likewise.
* grub-core/net/arp.c: Likewise.
* grub-core/net/ethernet.c: Likewise.
* grub-core/net/ip.c: Likewise.
* grub-core/net/udp.c: Likewise.
* grub-core/net/tftp.c: Likewise.
* grub-core/net/netbuff.c: Likewise.
* grub-core/net/net.c: Likewise.
* grub-core/net/drivers/emu/emunet.c: Likewise.
* grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
* grub-core/Makefile.am (KERNEL_HEADER_FILES): Add net.h, ofnet.h and
export.h.
* grub-core/Makefile.core.def (net): New module.
(tftp): Likewise.
(ofnet): Likewise.
(emunet): Likewise.
* grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List
network protocols.
* grub-core/kern/device.c (grub_net_open) : New variable.
(grub_device_open): Handle network device.
(grub_device_close): Likewise.
* grub-core/kern/file.c (grub_file_net_seek) : New variable.
(grub_grubnet_fini): Likewise.
(grub_file_seek): Seek in network device.
* grub-core/kern/fs.c (grub_fs_probe): Handle network devices.
* grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): Handle
network root.
(grub_machine_fini): Call grub_grubnet_fini.
* grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle
network.
(grub_ieee1275_get_aliasdevname): New function.
* grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
Add unofficial Solaris network info.
(grub_multiboot_make_mbi): Likewise.
* grub-core/fs/i386/pc/pxe.c: Moved from here ...
* grub-core/net/i386/pc/pxe.c: ...here. Adapted for new design.
* include/grub/device.h (grub_fs): Removed.
* include/grub/err.h (grub_err_t): Add network-related values.
* include/grub/i386/pc/pxe.h: Removed bootp parts.
* include/grub/ieee1275/ieee1275.h (grub_ofnetcard_data): New struct.
(grub_ieee1275_get_aliasdevname): New proto.
* include/grub/net.h: Rewritten.

Also-By: Paulo Pinatti <ppinatti@br.ibm.com>
Also-By: Vladimir Serbinenko <phcoder@gmail.com>
13 years agomerge mine and abranches' branches. Fix several issues
Vladimir 'phcoder' Serbinenko [Fri, 24 Jun 2011 19:51:57 +0000 (21:51 +0200)]
merge mine and abranches' branches. Fix several issues

13 years agobootp support
Vladimir 'phcoder' Serbinenko [Fri, 24 Jun 2011 18:35:25 +0000 (20:35 +0200)]
bootp support

13 years ago * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
Vladimir 'phcoder' Serbinenko [Fri, 24 Jun 2011 16:26:20 +0000 (18:26 +0200)]
* grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
names.

13 years ago * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
Vladimir 'phcoder' Serbinenko [Fri, 24 Jun 2011 11:43:10 +0000 (13:43 +0200)]
* grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
(wildcard_expand): Don't stop on nonregexp parts after regexp ones since
it truncates the output.
Reported by: Ximin Luo.

13 years ago * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
Vladimir 'phcoder' Serbinenko [Fri, 24 Jun 2011 11:02:49 +0000 (13:02 +0200)]
* grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..

13 years ago * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
Vladimir 'phcoder' Serbinenko [Fri, 24 Jun 2011 10:41:05 +0000 (12:41 +0200)]
* util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
partmap before abstraction.

13 years ago * util/grub-mkconfig_lib.in: Add missing quotes.
Alexander Kurtz [Fri, 24 Jun 2011 10:38:24 +0000 (12:38 +0200)]
* util/grub-mkconfig_lib.in: Add missing quotes.

13 years ago * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
Vladimir 'phcoder' Serbinenko [Fri, 24 Jun 2011 02:32:54 +0000 (04:32 +0200)]
* grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
old method if mountinfo would return /dev/root and /dev/root doesn't
exist.

13 years ago ZFS zlib support
Vladimir 'phcoder' Serbinenko [Thu, 23 Jun 2011 22:31:29 +0000 (00:31 +0200)]
ZFS zlib support

* grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
(decomp_table): Add zlib entries.
(zio_read): USe 8 bits for compression function rather than 3.
* include/grub/zfs/zio.h (zio_compress): Add zlib values.

13 years ago * grub-core/disk/ahci.c: Add missing license statements.
Vladimir 'phcoder' Serbinenko [Thu, 23 Jun 2011 22:29:21 +0000 (00:29 +0200)]
* grub-core/disk/ahci.c: Add missing license statements.
* grub-core/fs/romfs.c: Likewise.
* grub-core/lib/ia64/setjmp.S: Likewise.
* grub-core/loader/i386/pc/freedos.c: Likewise.
* grub-core/loader/ia64/efi/linux.c: Likewise.
* grub-core/video/colors.c: Likewise.
* include/grub/dl.h (GRUB_MOD_DEP): New macro.

13 years ago AHCI support.
Vladimir 'phcoder' Serbinenko [Thu, 23 Jun 2011 22:07:55 +0000 (00:07 +0200)]
AHCI support.

* grub-core/Makefile.core.def (ata_pthru): Removed.
(ahci): New module.
(pata): Likewise.
* grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
on unload.
* grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
readwrite.
(grub_hdparm_do_check_powermode_cmd): Likewise.
(grub_hdparm_do_smart_cmd): Likewise.
(grub_hdparm_set_val_cmd): Likewise.
(grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
* grub-core/disk/ahci.c: New file.
* grub-core/disk/ata.c: Factor out the low-level part into ...
* grub-core/disk/pata.c: ... here.
* grub-core/disk/ata_pthru.c: Contents moved to ...
* grub-core/disk/pata.c: ... here.
* grub-core/disk/scsi.c (grub_scsi_names): New array.
(grub_scsi_iterate): Use grub_scsi_names.
(grub_scsi_open): Likewise.
* grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
* include/grub/ata.h (grub_ata_commands): Add DMA commands.
(grub_ata_regs_t): New struct.
(grub_disk_ata_pass_through_parms): Likewise.
(grub_ata_device): Renamed to ...
(grub_ata): ... this.
(grub_ata_dev): New struct.
Removed all low-level inline functions.
* include/grub/scsi.h: Add PATA and AHCI subsystems.
(grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
iterate hooks and open. All users updated.
* util/grub-install.in: Handle AHCI disk module.

13 years ago Add support for DRI and RSTn markers in JPEG files.
Szymon Janc [Thu, 23 Jun 2011 21:13:20 +0000 (23:13 +0200)]
Add support for DRI and RSTn markers in JPEG files.

* grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
(JPEG_MARKER_RST0): Likewise.
(JPEG_MARKER_RST1): Likewise.
(JPEG_MARKER_RST2): Likewise.
(JPEG_MARKER_RST3): Likewise.
(JPEG_MARKER_RST4): Likewise.
(JPEG_MARKER_RST5): Likewise.
(JPEG_MARKER_RST6): Likewise.
(JPEG_MARKER_RST7): Likewise.
(grub_jpeg_data): New fields dri, r1, bitmap_ptr.
(grub_jpeg_decode_dri): New function.
(grub_jpeg_decode_sos): Move image data related part into
grub_jpeg_decode_data function.
(grub_jpeg_decode_data): New function.
(grub_jpeg_reset): New function.
(grub_jpeg_decode_jpeg): Handle new markers.

13 years ago * util/ieee1275/ofpath.c (check_sas): Close fd.
Vladimir 'phcoder' Serbinenko [Thu, 23 Jun 2011 20:18:31 +0000 (22:18 +0200)]
* util/ieee1275/ofpath.c (check_sas): Close fd.
(main): Free of_path.
Reported by: David Volgyes <dvolgyes>.

13 years ago * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
Vladimir 'phcoder' Serbinenko [Thu, 23 Jun 2011 20:11:42 +0000 (22:11 +0200)]
* util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
Reported by: David Volgyes <dvolgyes>.

13 years ago * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
Vladimir 'phcoder' Serbinenko [Thu, 23 Jun 2011 20:02:05 +0000 (22:02 +0200)]
* grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
file after stat.
Reported by: David Volgyes <dvolgyes>.

13 years ago * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
Vladimir 'phcoder' Serbinenko [Thu, 23 Jun 2011 19:06:50 +0000 (21:06 +0200)]
* util/raid.c (grub_util_raid_getmembers): Close fd before returning.

Reported by: David Volgyes <dvolgyes>.

13 years ago * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
Vladimir 'phcoder' Serbinenko [Thu, 23 Jun 2011 18:58:35 +0000 (20:58 +0200)]
* grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
Prevent memory leak.

13 years ago * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
Vladimir 'phcoder' Serbinenko [Thu, 23 Jun 2011 18:55:36 +0000 (20:55 +0200)]
* grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
(main): Close file.

13 years ago * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
Vladimir 'phcoder' Serbinenko [Thu, 23 Jun 2011 18:38:19 +0000 (20:38 +0200)]
* grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
to continue if allocation is failed.

Reported by: David Volgyes <dvolgyes>.

13 years ago * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
David Volgyes [Thu, 23 Jun 2011 18:28:04 +0000 (20:28 +0200)]
* grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
dereference.

13 years ago Fix spurious warning.
Vladimir 'phcoder' Serbinenko [Thu, 23 Jun 2011 18:05:39 +0000 (20:05 +0200)]
Fix spurious warning.

* grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
(acorn_partition_map_find): Use .bin member.

13 years ago * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
Vladimir 'phcoder' Serbinenko [Thu, 23 Jun 2011 17:50:41 +0000 (19:50 +0200)]
* grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
/dev/root as a valid device.

13 years ago Avoid NULL deref in grub_device_open.
Jim Meyering [Thu, 23 Jun 2011 16:08:53 +0000 (18:08 +0200)]
Avoid NULL deref in grub_device_open.

* grub-core/kern/device.c (grub_device_open): Don't dereference
a NULL pointer upon failed grub_env_get.

13 years ago Support non-512B sectors and agglomerate reads.
Vladimir 'phcoder' Serbinenko [Thu, 23 Jun 2011 14:45:52 +0000 (16:45 +0200)]
Support non-512B sectors and agglomerate reads.

* Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
* grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
(disk_io_guid): Removed.
(make_devices): Locate solely by BlockIO.
(grub_efidisk_open): Fill log_sector_size and total_sectors.
(grub_efidisk_read): Use read_blocks.
(grub_efidisk_write): Use write_blocks.
* grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
log_sector_size.
(get_safe_sectors): Handle non-512B sectors.
(grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
sectors.
(grub_biosdisk_write): Handle non-512B sectors.
* grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
(grub_scsi_read): Remove special non-512B block handling (now handled
one level up).
* grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
and do sanity checks.
(grub_disk_adjust_range): Handle non-512B sectors.
(transform_sector): New function.
(grub_disk_read_small): Likewise.
(grub_disk_read): Rewritten.
(grub_disk_write): Handle non-512B sectors.
* grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
log_sector_size.
(open_device): Use log_sector_size.
(grub_util_biosdisk_read): Likewise.
(grub_util_biosdisk_write): Likewise.
* grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
non-512B sectors.
(pc_partition_map_embed): Likewise.
* include/grub/disk.h (grub_disk): New field log_sector_size.
(GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
(GRUB_DISK_CACHE_BITS): Increased to 6.
* util/grub-fstest.c (fstest): New command testload.
(argp_parser): Likewise.

13 years agoFixed a cache collision bug. Thanks guufy1 for bugreport and test
Vladimir 'phcoder' Serbinenko [Thu, 23 Jun 2011 07:39:12 +0000 (09:39 +0200)]
Fixed a cache collision bug. Thanks guufy1 for bugreport and test

13 years agoNew testload grub-fstest command
Vladimir 'phcoder' Serbinenko [Thu, 23 Jun 2011 06:45:12 +0000 (08:45 +0200)]
New testload grub-fstest command

13 years agomerge mainline into 4096
Vladimir 'phcoder' Serbinenko [Thu, 23 Jun 2011 02:08:37 +0000 (04:08 +0200)]
merge mainline into 4096

13 years agoAdd error verification in netbuff operations.
Manoel R. Abranches [Sat, 18 Jun 2011 23:20:53 +0000 (20:20 -0300)]
Add error verification in netbuff operations.

13 years agoClose cards before boot.
Manoel R. Abranches [Sat, 18 Jun 2011 23:18:25 +0000 (20:18 -0300)]
Close cards before boot.

13 years ago2011-06-16 Robert Millan <rmh@gnu.org>
Robert Millan [Thu, 16 Jun 2011 12:33:11 +0000 (14:33 +0200)]
2011-06-16  Robert Millan  <rmh@gnu.org>

        Detect `ataraid' devices on GNU/kFreeBSD.  Fix for ATA devices using
        `ata' driver on kernel of FreeBSD 9.

        * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
        (get_ataraid_disk_name): New functions.
        [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
        (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
        get_ataraid_disk_name() and get_ada_disk_name().

13 years agoPrevent crash when detecting fs.
Manoel R. Abranches [Wed, 15 Jun 2011 18:11:26 +0000 (15:11 -0300)]
Prevent crash when detecting fs.

13 years ago* docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
Colin Watson [Mon, 13 Jun 2011 16:35:50 +0000 (17:35 +0100)]
* docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
input format.

13 years agoRun indent on files.
Manoel Rebelo Abranches [Wed, 8 Jun 2011 00:59:53 +0000 (21:59 -0300)]
Run indent on files.

13 years agoWrite ChangeLog.
Manoel Rebelo Abranches [Tue, 7 Jun 2011 14:47:31 +0000 (11:47 -0300)]
Write ChangeLog.

13 years agoFix compilation in x86
Manoel R. Abranches [Thu, 2 Jun 2011 18:13:33 +0000 (15:13 -0300)]
Fix compilation in x86

13 years ago* docs/grub.texi (Obtaining and Building GRUB): Substitute
Colin Watson [Sun, 29 May 2011 21:15:08 +0000 (22:15 +0100)]
* docs/grub.texi (Obtaining and Building GRUB): Substitute
`ftp.gnu.org' for `alpha.gnu.org'.

13 years ago* grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
Colin Watson [Fri, 27 May 2011 12:57:22 +0000 (13:57 +0100)]
* grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
partitions under /dev/disk/by-id/.

13 years ago* grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
Colin Watson [Fri, 27 May 2011 12:52:21 +0000 (13:52 +0100)]
* grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
after ten consecutive open failures.  Scanning all the way up to
10000 is excessive and can cause serious performance problems in
some configurations.
Fixes Ubuntu bug #787461.

13 years agoMerge Mainline.
Manoel R. Abranches [Fri, 27 May 2011 03:23:33 +0000 (00:23 -0300)]
Merge Mainline.

13 years agoUse a net fs struct to handle open, reand and close in file.
Manoel R. Abranches [Fri, 27 May 2011 03:22:35 +0000 (00:22 -0300)]
Use a net fs struct to handle open, reand and close in file.

13 years agoRemove unused structs and functions.
Manoel Rebelo Abranches [Wed, 25 May 2011 14:10:48 +0000 (11:10 -0300)]
Remove unused structs and functions.

13 years ago * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
Vladimir 'phcoder' Serbinenko [Sat, 21 May 2011 05:05:46 +0000 (07:05 +0200)]
* grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
opening new one.

13 years ago Don't stat devices unless we have to.
Vladimir Serbinenko [Sat, 21 May 2011 05:03:55 +0000 (07:03 +0200)]
Don't stat devices unless we have to.

* grub-core/kern/emu/getroot.c (grub_find_device): Recognize
dir == /dev/mapper.
(grub_guess_root_device): Use already known os_dev if possible.
* grub-core/kern/emu/hostdisk.c
(convert_system_partition_to_system_disk): Scan only in /dev/mapper
if device is known to be a dm one.

Also-By: Colin Watson <cjwatson@ubuntu.com>
13 years ago* util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
Colin Watson [Fri, 20 May 2011 10:21:36 +0000 (11:21 +0100)]
* util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
Reported by: Pawel Tecza.

13 years agofix several bugs
Vladimir 'phcoder' Serbinenko [Thu, 19 May 2011 13:39:34 +0000 (15:39 +0200)]
fix several bugs

13 years ago * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
Vladimir 'phcoder' Serbinenko [Thu, 19 May 2011 10:13:18 +0000 (12:13 +0200)]
* grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
(lsefisystab): Likewise.
(lssal): Likewise.
(lsefimmap): Likewise.
(hdparm): Enable on qemu-mips.
(setjmp): Add ia64 nodist.
(serial): Simplify tags.

13 years ago* Makefile.util.def (grub-ofpathname): Install manual page.
Colin Watson [Wed, 18 May 2011 16:31:50 +0000 (17:31 +0100)]
* Makefile.util.def (grub-ofpathname): Install manual page.

13 years ago * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
Colin Watson [Wed, 18 May 2011 15:16:59 +0000 (17:16 +0200)]
* grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.

13 years ago* .bzrignore: Add grub-core/modinfo.sh and a number of test files.
Colin Watson [Wed, 18 May 2011 15:10:52 +0000 (16:10 +0100)]
* .bzrignore: Add grub-core/modinfo.sh and a number of test files.

13 years ago * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
Vladimir 'phcoder' Serbinenko [Wed, 18 May 2011 13:37:18 +0000 (15:37 +0200)]
* grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
into dprintf.

13 years ago Use full 64-bit division.
Vladimir 'phcoder' Serbinenko [Wed, 18 May 2011 13:35:19 +0000 (15:35 +0200)]
Use full 64-bit division.

* grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
(grub_divmod64): ... this.
* include/grub/misc.h (grub_divmod64): Removed. All users switch to full
version.

13 years ago* util/grub-mkrescue.in: Use portable `.' rather than non-portable
Colin Watson [Wed, 18 May 2011 11:57:59 +0000 (12:57 +0100)]
* util/grub-mkrescue.in: Use portable `.' rather than non-portable
`source'.

13 years ago* grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
Colin Watson [Wed, 18 May 2011 11:53:07 +0000 (12:53 +0100)]
* grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
to avoid accidents when debugging with 'sh -x'.
* grub-core/gensyminfo.sh.in: Likewise.
* tests/example_scripted_test.in: Likewise.
* tests/grub_cmd_regexp.in: Likewise.
* tests/grub_script_blanklines.in: Likewise.
* tests/grub_script_dollar.in: Likewise.
* tests/grub_script_expansion.in: Likewise.
* tests/grub_script_final_semicolon.in: Likewise.
* tests/partmap_test.in: Likewise.
* tests/util/grub-shell-tester.in: Likewise.
* tests/util/grub-shell.in: Likewise.

13 years agoMove gfxmenu color handling to video, so that gfxterm can use it
Colin Watson [Wed, 18 May 2011 11:44:24 +0000 (12:44 +0100)]
Move gfxmenu color handling to video, so that gfxterm can use it
too.

* grub-core/gfxmenu/named_colors.c: Move to ...
* grub-core/video/colors.c: ... here.  Rename
grub_gui_get_named_color to grub_video_get_named_color.
* grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
* grub-core/video/colors.c (my_isxdigit): ... here.
* grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
Move to ...
* grub-core/video/colors.c (parse_hex_color_component): ... here.
* grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
to ...
* grub-core/video/colors.c (grub_video_parse_color): ... here.

* include/grub/gui.h (grub_gui_color_t): Move to ...
* include/grub/video.h (grub_video_rgba_color_t): ... here.
* include/grub/gui.h (grub_gui_color_rgb): Move to ...
* include/grub/video.h (grub_video_rgba_color_rgb): ... here.
* include/grub/gui.h (grub_gui_map_color): Move to ...
* include/grub/video.h (grub_video_map_rgba_color): ... here.
* include/grub/gui_string_util.h (grub_gui_get_named_color): Move
to ...
* include/grub/video.h (grub_video_get_named_color): ... here.
* include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
* include/grub/video.h (grub_video_parse_color): ... here.

* grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
video/colors.c.
(gfxmenu): Remove gfxmenu/named_colors.c.
(video) [videomodules]: Add video/colors.c.

Add a background_color command.

* grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
function.
(GRUB_MOD_INIT): Register background_color command.
(GRUB_MOD_FINI): Unregister background_color command.
(redraw_screen_rect): Allow blend/replace of text layer to be
controlled independently from whether there is a background bitmap.
(grub_gfxterm_background_image_cmd): Change blend_text_bg when
changing bitmap.

13 years ago Patch BPB in ntldr and chainloader --bpb.
Vladimir 'phcoder' Serbinenko [Wed, 18 May 2011 10:51:05 +0000 (12:51 +0200)]
Patch BPB in ntldr and chainloader --bpb.

* grub-core/fs/fat.c: Include grub/fat.h.
(grub_fat_bpb): Moved to ...
* include/grub/fat.h (grub_fat_bpb): ... here. New file.
* grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
grub/ntfs.h.
* include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
Moved from here...
* grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
here.
* grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
New function.
(grub_chainloader_cmd): Patch BPB if --bpb is given.
(GRUB_MOD_INIT): Show --bpb.
* grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
* grub-core/normal/main.c (features): New variable.
(GRUB_MOD_INIT): Set feature_* variables.
* include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
proto.
* include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.

13 years ago * grub-core/fs/fat.c: Include grub/fat.h.
Vladimir 'phcoder' Serbinenko [Wed, 18 May 2011 10:48:14 +0000 (12:48 +0200)]
* grub-core/fs/fat.c: Include grub/fat.h.
(grub_fat_bpb): Moved to ...
* include/grub/fat.h (grub_fat_bpb): ... here. New file.
* grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
grub/ntfs.h.
* include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
Moved from here...
* grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
here.
* grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
New function.
(grub_chainloader_cmd): Patch BPB if --bpb is given.
(GRUB_MOD_INIT): Show --bpb.
* grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
* grub-core/normal/main.c (features): New variable.
(GRUB_MOD_INIT): Set feature_* variables.
* include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
proto.
* include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.

13 years agoadd missing file
Vladimir 'phcoder' Serbinenko [Wed, 18 May 2011 10:41:22 +0000 (12:41 +0200)]
add missing file

13 years ago * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
Vladimir 'phcoder' Serbinenko [Wed, 18 May 2011 10:39:22 +0000 (12:39 +0200)]
* grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
for cleanness.

13 years agomerge mainline into ahci
Vladimir 'phcoder' Serbinenko [Wed, 18 May 2011 10:36:26 +0000 (12:36 +0200)]
merge mainline into ahci

13 years ago FreeDOS direct loading support.
Vladimir 'phcoder' Serbinenko [Wed, 18 May 2011 10:15:16 +0000 (12:15 +0200)]
FreeDOS direct loading support.

* docs/grub.texi (Supported OS): Add FreeDOS.
* grub-core/Makefile.core.def (freedos): New module.
* grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
variable.
(grub_relocator16_boot): Handle %ebx.
* grub-core/lib/i386/relocator16.S: Likewise.
* grub-core/loader/i386/pc/freedos.c: New file.

13 years ago Long Linux command line support.
Vladimir 'phcoder' Serbinenko [Wed, 18 May 2011 07:56:33 +0000 (09:56 +0200)]
Long Linux command line support.

* grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
(maximal_cmdline_size): New variable.
(allocate_pages): Use maximal_cmdline_size.
(grub_cmd_linux): Set and use maximal_cmdline_size.
* grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
(allocate_pages): Use maximal_cmdline_size.
(grub_cmd_linux): Set and use maximal_cmdline_size.
* include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
(linux_kernel_header): Add fields kernel_alignment, relocatable, pad
and cmdline_size.

13 years ago Improve devmapper support
Vladimir Serbinenko [Wed, 18 May 2011 07:35:47 +0000 (09:35 +0200)]
Improve devmapper support

* grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
(grub_util_is_lvm): New function.
(grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
than lvm if not dmraid.
Handle mapped md nodes.
* grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
(grub_util_device_is_mapped): ... this. Make always available. All users
updated.
(grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
(convert_system_partition_to_system_disk): Handle lvm, mpath and
dmraid nodes.
* include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.

Also-By: Colin Watson <cjwatson@ubuntu.com>
13 years ago Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
Vladimir 'phcoder' Serbinenko [Tue, 17 May 2011 23:38:01 +0000 (01:38 +0200)]
Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms

* grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
* grub-core/modinfo.sh.in: New file.
* grub-core/Makefile.core.def (modinfo.sh): New script.
* util/grub-mknetdir.in: Use modinfo.sh.
* util/grub-mkrescue.in: Likewise.

13 years ago * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
Vladimir 'phcoder' Serbinenko [Tue, 17 May 2011 22:21:49 +0000 (00:21 +0200)]
* grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
Fix potential usage of Elf32 instead of Elf64 when compiling on
32-bit architecture. Add endianness macros while on it.

13 years ago Use mipsel- rather than mips- in directories involving mipsel ports to
Vladimir 'phcoder' Serbinenko [Tue, 17 May 2011 20:48:20 +0000 (22:48 +0200)]
Use mipsel- rather than mips- in directories involving mipsel ports to
allow both endiannesses coexist.

* configure.ac: proparate target_cpu=mipsel rather than resetting to
mips. All conditions adjusted.
* tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
variable.
* util/grub-install.in: Adjust conditions to take renaming into account.
* util/grub-mkimage.c (image_targets): Likewise. New target
mips-qemu_mips-elf for bigendian mips.

13 years ago Avoid unnecessary copying on MIPS.
Vladimir 'phcoder' Serbinenko [Tue, 17 May 2011 19:40:35 +0000 (21:40 +0200)]
Avoid unnecessary copying on MIPS.

* grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
early if src == dest.
* util/grub-mkimage.c (generate_image): Arange for src == dest if
compression is none.

13 years ago Reduce memory footprint on SGI by putting modules before the kernel
Vladimir 'phcoder' Serbinenko [Tue, 17 May 2011 19:15:54 +0000 (21:15 +0200)]
Reduce memory footprint on SGI by putting modules before the kernel
as opposed to after.

* grub-core/Makefile.core.def (kernel): Increase linking address.
(none_decompress): Likewise.
(xz_decompress): Likewise.
* grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
address.
* grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
layout change.
(grub_arch_modules_addr): New function.
* grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
* grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
* grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
here.
* grub-core/kern/mips/startup.S (total_size): Rename to ...
(grub_total_modules_size): ... this. Make global.
[GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
* include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
New definition.
(GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
(GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
(GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
(GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
* util/grub-mkimage.c (image_target_desc): New flag
PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
(image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
(generate_image): Handle images with modules before kernel.

13 years ago Prevent potential loss of memory map by overwrite on qemu-mips.
Vladimir 'phcoder' Serbinenko [Tue, 17 May 2011 17:32:51 +0000 (19:32 +0200)]
Prevent potential loss of memory map by overwrite on qemu-mips.

* grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
Save ram size in $s4.
* grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
All users changed to grub_arch_memsize.
* grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
Loongson.
[GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
* grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
* include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
external variable.

13 years ago* .bzrignore: Remove grub-dumpbios.
Colin Watson [Tue, 17 May 2011 17:13:12 +0000 (18:13 +0100)]
* .bzrignore: Remove grub-dumpbios.

13 years ago* util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
Colin Watson [Tue, 17 May 2011 17:10:29 +0000 (18:10 +0100)]
* util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
existing options which append).
* docs/grub.texi (Simple configuration): Document new options.
Reported by: Ian Jackson.  Fixes Debian bug #617538.

13 years ago* util/grub-fstest.c (cmd_cat): New function.
Colin Watson [Tue, 17 May 2011 17:03:59 +0000 (18:03 +0100)]
* util/grub-fstest.c (cmd_cat): New function.
(fstest): Handle CMD_CAT.
(options): Add cat.
(argp_parser): Handle cat.

13 years ago* Makefile.util.def (grub-bin2h): Don't install.
Colin Watson [Tue, 17 May 2011 17:00:31 +0000 (18:00 +0100)]
* Makefile.util.def (grub-bin2h): Don't install.
* docs/man/grub-bin2h.h2m: Remove.

13 years ago * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
Vladimir 'phcoder' Serbinenko [Tue, 17 May 2011 16:39:32 +0000 (18:39 +0200)]
* grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
place.

13 years ago Reenable qemu-mips port.
Vladimir 'phcoder' Serbinenko [Tue, 17 May 2011 14:07:17 +0000 (16:07 +0200)]
Reenable qemu-mips port.

* configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
Fix small arc bug while on it.
* gentpl.py: Handle qemu_mips.
* grub-core/Makefile.am: Likewise.
* grub-core/Makefile.core.def: Likewise.
* grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
inappropriate includes.
(grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
(grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
* grub-core/kern/main.c (grub_modules_get_end)
[GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
* grub-core/kern/mips/qemu-mips: Moved to ..
* grub-core/kern/mips/qemu_mips: ... this.
* grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
(grub_machine_init): Call terminfo_init and serial_init.
* grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
* grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
New variable.
(grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
parameter passing.
(grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
(grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
(grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
* include/grub/mips/qemu_mips/cmos.h: New file.
* include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
* include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
Removed.
* include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
Use correct mips-style address.
* include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
(GRUB_TICKS_PER_SECOND): Removed.
(grub_get_rtc): Likewise.
(grub_cpu_idle): Likewise.
* include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
New definition.
(GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
(GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
(GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
(GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
(GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
(GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
(GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
* util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.

13 years agomake linux loader work on qemu-mips
Vladimir 'phcoder' Serbinenko [Tue, 17 May 2011 13:34:40 +0000 (15:34 +0200)]
make linux loader work on qemu-mips

13 years agoenable ATA on qemu-mips
Vladimir 'phcoder' Serbinenko [Tue, 17 May 2011 12:35:55 +0000 (14:35 +0200)]
enable ATA on qemu-mips

13 years agoFix -O for qemu
Vladimir 'phcoder' Serbinenko [Tue, 17 May 2011 12:05:52 +0000 (14:05 +0200)]
Fix -O for qemu

13 years agoRevert changes to cache_flush.S
Vladimir 'phcoder' Serbinenko [Tue, 17 May 2011 12:04:49 +0000 (14:04 +0200)]
Revert changes to cache_flush.S

13 years agomerge mainline and various cleanups
Vladimir 'phcoder' Serbinenko [Tue, 17 May 2011 12:02:18 +0000 (14:02 +0200)]
merge mainline and various cleanups

13 years agoAdd missing ChngeLog line
Vladimir 'phcoder' Serbinenko [Tue, 17 May 2011 07:18:53 +0000 (09:18 +0200)]
Add missing ChngeLog line

13 years ago SGI ARCS port.
Vladimir 'phcoder' Serbinenko [Tue, 17 May 2011 07:17:38 +0000 (09:17 +0200)]
SGI ARCS port.

* Makefile.util.def (libgrubmods.a): Add dvh.c.
* conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
platforms.
* configure.ac: New target mips-arc.
* gentpl.py: Likewise.
* grub-core/Makefile.am: Likewise.
* grub-core/Makefile.core.def: Likewise.
(xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
(none_decompress): Likewise.
(lsdev): New module.
(datetime): Use lib/arc/datetime.c on ARC.
(part_dvh): New module.
* grub-core/commands/arc/lsdev.c: New file.
* grub-core/disk/arc/arcdisk.c: Likewise.
* grub-core/kern/mips/arc/init.c: Likewise.
* grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
aligned addresses.
* grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
support.
(grub_arch_dl_relocate_symbols): Likewise.
* grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
* grub-core/kern/mips/init.c (grub_get_rtc): ... here.
* grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
platforms.
* grub-core/lib/arc/datetime.c: New file.
* grub-core/loader/mips/linux.c: Always include time.h. Don't include
pci.h on non-loongson.
(envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
(grub_linux_boot): Set unused registers to 0.
(grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
* grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
* grub-core/mmap/mips/uppermem.c: ...here.
* grub-core/partmap/dvh.c: New file.
* grub-core/term/arc/console.c: Likewise.
* grub-core/term/terminfo.c (ANSI_C0_STR): New const.
(grub_terminfo_set_current): Add terminal "arc".
(grub_terminfo_readkey): Support ARC sequences.
* include/grub/arc/arc.h: New file.
* include/grub/arc/console.h: Likewise.
* include/grub/disk.h (grub_disk_dev_id): Add
GRUB_DISK_DEVICE_ARCDISK_ID.
* include/grub/mips/arc/kernel.h: New file.
* include/grub/mips/arc/memory.h: Likewise.
* include/grub/mips/arc/time.h: Likewise.
* include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
* include/grub/mips/kernel.h (grub_halt): ... here.
* include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
here...
* include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
(GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
* include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
* include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
proto.
* include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
from here ...
* include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
(GRUB_ARCH_LOWMEMPSTART): Moved from here ...
* include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
(GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
* include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
(GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
* include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
(grub_phys_addr_t): Moved from here ...
* include/grub/mips/memory.h (grub_phys_addr_t): ... here.
(grub_vtop): Moved from here ...
* include/grub/mips/memory.h (grub_vtop): ... here.
(grub_map_memory): Moved from here ...
* include/grub/mips/memory.h (grub_map_memory): ... here.
(grub_unmap_memory): Moved from here ...
* include/grub/mips/memory.h (grub_unmap_memory): ... here.
(grub_machine_mmap_iterate): Moved from here ...
* include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
(grub_mmap_get_lower): Moved from here ...
* include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
(grub_mmap_get_upper): Moved from here ...
* include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
* include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
here ...
* include/grub/mips/time.h (grub_arch_cpuclock): ... here.
* include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
here ...
* include/grub/mips/time.h (grub_get_rtc): ... here.
* include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
here ...
* include/grub/mips/time.h (grub_arch_cpuclock): ... here.
* include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
here ...
* include/grub/mips/time.h (grub_cpu_idle): ... here.
* include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
definition.
(GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
(GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
(GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
(GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
(GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
(GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
(GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
(GRUB_MACHINE_LINK_ADDR): Likewise.
* include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
to 6.
* util/grub-install.in: Run dvhtool on ARC.
* util/grub-mkimage.c (image_targets): Add mips-arc.

13 years agoFix install message
Vladimir 'phcoder' Serbinenko [Mon, 16 May 2011 19:50:24 +0000 (21:50 +0200)]
Fix install message

13 years agoset id on arc disks
Vladimir 'phcoder' Serbinenko [Mon, 16 May 2011 19:50:14 +0000 (21:50 +0200)]
set id on arc disks

13 years agomerge mainline into ahci
Vladimir 'phcoder' Serbinenko [Mon, 16 May 2011 15:17:04 +0000 (17:17 +0200)]
merge mainline into ahci