]> git.proxmox.com Git - grub2.git/log
grub2.git
15 years ago2008-09-22 Bean <bean123ch@gmail.com>
bean [Mon, 22 Sep 2008 04:18:57 +0000 (04:18 +0000)]
2008-09-22  Bean  <bean123ch@gmail.com>

* fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
resident and in attribute list.

* include/grub/ntfs.h (BMP_LEN): Removed.

15 years ago2008-09-22 Bean <bean123ch@gmail.com>
bean [Mon, 22 Sep 2008 03:49:26 +0000 (03:49 +0000)]
2008-09-22  Bean  <bean123ch@gmail.com>

* disk/ata.c (grub_apapi_open): Initialize devfnd, no need to set
scsi->name and scsi->luns, as they will be set in grub_scsi_open.

* disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
error occurs, as grub_disk_open will call grub_disk_close, which will
call p->close (scsi).

15 years agourm configure.ac/PREREQ should be 2.59 not 2.61
fzielcke [Sun, 21 Sep 2008 17:40:13 +0000 (17:40 +0000)]
urm configure.ac/PREREQ should be 2.59 not 2.61

15 years ago008-09-21 Felix Zielcke <fzielcke@z-51.de>
fzielcke [Sun, 21 Sep 2008 17:38:33 +0000 (17:38 +0000)]
008-09-21  Felix Zielcke  <fzielcke@z-51.de>

* configure.ac (AC_INIT): Quote version number.
(AC_PREREQ): Bumped to 2.59.
(AC_TRY_COMPILE): Replace obsolete macro with ...
(AC_COMPILE_IFELSE): ... this.
* aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
(AC_LINK_IFELSE): ... this.

15 years agoUpdate DISTLIST
fzielcke [Sun, 21 Sep 2008 16:41:55 +0000 (16:41 +0000)]
Update DISTLIST

15 years ago2008-09-21 Felix Zielcke <fzielcke@z-51.de>
fzielcke [Sun, 21 Sep 2008 16:39:28 +0000 (16:39 +0000)]
2008-09-21  Felix Zielcke  <fzielcke@z-51.de>

* autogen.sh: Add a call to `gendistlist.sh'.

16 years ago2008-09-19 Christian Franke <franke@computer.org>
chrfranke [Fri, 19 Sep 2008 06:55:20 +0000 (06:55 +0000)]
2008-09-19  Christian Franke  <franke@computer.org>

* aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
* configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
* include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
Export __enable_execute_stack() to modules.
* kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
New function.

16 years ago008-09-09 Felix Zielcke <fzielcke@z-51.de>
fzielcke [Tue, 9 Sep 2008 13:58:21 +0000 (13:58 +0000)]
008-09-09  Felix Zielcke  <fzielcke@z-51.de>

        * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
        Sort the list.

16 years ago2008-09-09 Felix Zielcke <fzielcke@z-51.de>
fzielcke [Tue, 9 Sep 2008 07:28:17 +0000 (07:28 +0000)]
2008-09-09  Felix Zielcke  <fzielcke@z-51.de>

        * util/hostdisk.c: Change #include <grub/util/biosdisk.h> to
        #include <grub/util/hostdisk.h>.

16 years ago2008-09-08 Robert Millan <rmh@aybabtu.com>
robertmh [Mon, 8 Sep 2008 19:10:16 +0000 (19:10 +0000)]
2008-09-08  Robert Millan  <rmh@aybabtu.com>

        * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
        segments when their filesz is zero (grub_file_read() interprets
        zero-size as "read untill EOF", which results in memory corruption).
        Use `lowest_segment' rather than 0 for calculating the current
        segment load address.

16 years ago2008-09-08 Robert Millan <rmh@aybabtu.com>
robertmh [Mon, 8 Sep 2008 14:00:29 +0000 (14:00 +0000)]
2008-09-08  Robert Millan  <rmh@aybabtu.com>

        * util/hostdisk.c (open_device): Replace a grub_util_info() call
        with grub_dprintf("hostdisk", ...), as it was so verbose that it
        clobbered useful information.

16 years ago2008-09-08 Robert Millan <rmh@aybabtu.com>
robertmh [Mon, 8 Sep 2008 13:52:30 +0000 (13:52 +0000)]
2008-09-08  Robert Millan  <rmh@aybabtu.com>

        * include/grub/util/biosdisk.h: Move to ...
        * include/grub/util/hostdisk.h: ... here.  Update all users.
        * util/biosdisk.c: Move to ...
        * util/hostdisk.c: ... here.  Update all users.

16 years ago2008-09-07 Robert Millan <rmh@aybabtu.com>
robertmh [Sun, 7 Sep 2008 17:13:00 +0000 (17:13 +0000)]
2008-09-07  Robert Millan  <rmh@aybabtu.com>

        * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
        variables.
        (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
        and length can be stored directly in the `mbi->mmap_addr' and
        `mbi->mmap_length' struct fields.

16 years ago2008-09-07 Robert Millan <rmh@aybabtu.com>
robertmh [Sun, 7 Sep 2008 16:09:21 +0000 (16:09 +0000)]
2008-09-07  Robert Millan  <rmh@aybabtu.com>

        * conf/i386.rmk: New file.  Provides declaration for building
        `cpuid.mod'.
        * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
        (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
        variables.
        Include `conf/i386.mk'.
        * conf/i386-efi.rmk: Likewise.
        * conf/x86_64-efi.rmk: Likewise.
        * conf/i386-coreboot.rmk: Likewise.
        * conf/i386-ieee1275.rmk: Likewise.

16 years ago2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
chaac [Sun, 7 Sep 2008 15:55:58 +0000 (15:55 +0000)]
2008-09-07  Vesa Jääskeläinen  <chaac@nic.fi>

Based on patch created by Colin D Bennett <colin@gibibit.com>.
Adds optimization support for BGR based modes.

* include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
(grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
(grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
(grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
(grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
(grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
(grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
(grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
(grub_video_i386_vbeblit_index_R8G8B8): Likewise.
(grub_video_i386_vbeblit_index_index): Likewise.
(grub_video_i386_vbeblit_replace_directN): Added.
(grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
(grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
(grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
(grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
(grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
(grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
(grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
(grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
(grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
(grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
(grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
(grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
(grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.

* include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
(grub_video_i386_vbefill_R8G8B8): Likewise.
(grub_video_i386_vbefill_index): Likewise.
(grub_video_i386_vbefill_direct32): Added.
(grub_video_i386_vbefill_direct24): Likewise.
(grub_video_i386_vbefill_direct16): Likewise.
(grub_video_i386_vbefill_direct8): Likewise.

* include/grub/video.h (grub_video_blit_format): Removed
GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
(grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
GRUB_VIDEO_BLIT_FORMAT_BGR_565.

* video/video.c (grub_video_get_blit_format): Updated to use new
blit formats.  Added handling for 16 bit color modes.

* video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
fillers.
(common_blitter): Updated to use new blitters.

* video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
Removed.
(grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
(grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
(grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
(grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
(grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
(grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
(grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
(grub_video_i386_vbeblit_index_R8G8B8): Likewise.
(grub_video_i386_vbeblit_index_index): Likewise.
(grub_video_i386_vbeblit_replace_directN): Added.
(grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
(grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
(grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
(grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
(grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
(grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
(grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
(grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
(grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
(grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
(grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
(grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
(grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.

* video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
(grub_video_i386_vbefill_R8G8B8): Likewise.
(grub_video_i386_vbefill_index): Likewise.
(grub_video_i386_vbefill_direct32): Added.
(grub_video_i386_vbefill_direct24): Likewise.
(grub_video_i386_vbefill_direct16): Likewise.
(grub_video_i386_vbefill_direct8): Likewise.

* video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
types.

* video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
types.

* video/readers/png.c (grub_png_decode_image_header): Adapt to new
blitter types.

* video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
types.

16 years ago2008-09-04 Felix Zielcke <fzielcke@z-51.de>
fzielcke [Sat, 6 Sep 2008 13:56:15 +0000 (13:56 +0000)]
2008-09-04  Felix Zielcke  <fzielcke@z-51.de>

        * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
        RAID level 1.

16 years agourgs commited a bit too fast the changelog ..
fzielcke [Sat, 6 Sep 2008 11:18:06 +0000 (11:18 +0000)]
urgs commited a bit too fast the changelog ..

16 years ago2008-08-31 Felix Zielcke <fzielcke@z-51.de>
fzielcke [Sat, 6 Sep 2008 11:16:52 +0000 (11:16 +0000)]
2008-08-31  Felix Zielcke  <fzielcke@z-51.de>

        * fs/iso9660.c (grub_iso9660_date): New structure.
        (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
        (grub_iso9660_uuid): New function.

16 years ago2008-09-05 Bean <bean123ch@gmail.com>
bean [Fri, 5 Sep 2008 15:48:37 +0000 (15:48 +0000)]
2008-09-05  Bean  <bean123ch@gmail.com>

* fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.

* fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
insensitive bit for names in Win32 and Win32 & DOS namespace.

* include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.

* include/grub/types.h (LONG_MAX): Likewise.

16 years ago2008-09-04 Felix Zielcke <fzielcke@z-51.de>
fzielcke [Thu, 4 Sep 2008 19:54:59 +0000 (19:54 +0000)]
2008-09-04  Felix Zielcke  <fzielcke@z-51.de>

        * util/getroot.c: Include <config.h>.
        (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
        add support for /dev/md/N devices and handle LVM double dash escaping.

16 years ago2008-09-04 Felix Zielcke <fzielcke@z-51.de>
fzielcke [Thu, 4 Sep 2008 07:54:06 +0000 (07:54 +0000)]
2008-09-04  Felix Zielcke  <fzielcke@z-51.de>

        * config.guess: Update to latest version from config.git.
        * config.sub: Likewise.

16 years agochanging mime-type of docs/*.texi and docs/texinfo.tex to text/plain
fzielcke [Wed, 3 Sep 2008 21:55:14 +0000 (21:55 +0000)]
changing mime-type of docs/*.texi and docs/texinfo.tex to text/plain

16 years ago2008-09-03 Robert Millan <rmh@aybabtu.com>
robertmh [Wed, 3 Sep 2008 10:52:07 +0000 (10:52 +0000)]
2008-09-03  Robert Millan  <rmh@aybabtu.com>

        * disk/scsi.c (grub_scsi_open): Remove size limit when printing
        `disk->total_sectors'.

16 years ago2008-09-01 Colin D Bennett <colin@gibibit.com>
chaac [Mon, 1 Sep 2008 19:03:16 +0000 (19:03 +0000)]
2008-09-01  Colin D Bennett <colin@gibibit.com>

* include/grub/normal.h: Fixed incorrect comment for
GRUB_COMMAND_FLAG_NO_ARG_PARSE.

16 years ago2008-09-01 Colin D Bennett <colin@gibibit.com>
chaac [Mon, 1 Sep 2008 15:58:13 +0000 (15:58 +0000)]
2008-09-01  Colin D Bennett <colin@gibibit.com>

        * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
        values with defines.

        * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
        (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
        (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
        (GRUB_VBE_MODEATTR_COLOR): Likewise.
        (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
        (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
        (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
        (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
        (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
        (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
        (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
        (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
        (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
        (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
        (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
        (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
        (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
        (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
        (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.

16 years ago2008-08-31 Robert Millan <rmh@aybabtu.com>
robertmh [Sun, 31 Aug 2008 20:43:03 +0000 (20:43 +0000)]
2008-08-31  Robert Millan  <rmh@aybabtu.com>

        * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
        declaration.
        (grub_multiboot): Fix a few warnings.

16 years ago2008-08-31 Robert Millan <rmh@aybabtu.com>
robertmh [Sun, 31 Aug 2008 19:25:41 +0000 (19:25 +0000)]
2008-08-31  Robert Millan  <rmh@aybabtu.com>

        * loader/i386/pc/multiboot.c: Update comment not to say that
        boot_device support is unimplemented.

16 years ago2008-08-31 Robert Millan <rmh@aybabtu.com>
robertmh [Sun, 31 Aug 2008 19:12:02 +0000 (19:12 +0000)]
2008-08-31  Robert Millan  <rmh@aybabtu.com>

        * loader/i386/pc/multiboot.c: Update comment not to say that a.out
        or memory map support are unimplemented.

16 years ago2008-08-31 Colin D Bennett <colin@gibibit.com>
robertmh [Sun, 31 Aug 2008 16:28:32 +0000 (16:28 +0000)]
2008-08-31  Colin D Bennett <colin@gibibit.com>

        * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.

16 years ago2008-08-31 Colin D Bennett <colin@gibibit.com>
chaac [Sun, 31 Aug 2008 09:28:36 +0000 (09:28 +0000)]
2008-08-31  Colin D Bennett <colin@gibibit.com>

        * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
        total video memory in 'vbeinfo' output; show color format details for
        each video mode.

16 years ago2008-08-30 Pavel Roskin <proski@gnu.org>
proski [Sun, 31 Aug 2008 02:19:17 +0000 (02:19 +0000)]
2008-08-30  Pavel Roskin  <proski@gnu.org>

* util/genmoddep.c: Remove for real this time.
* DISTLIST: Remove util/genmoddep.c.

16 years ago2008-08-30 Robert Millan <rmh@aybabtu.com>
robertmh [Sat, 30 Aug 2008 17:51:24 +0000 (17:51 +0000)]
2008-08-30  Robert Millan  <rmh@aybabtu.com>

        * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
        as required by Multiboot spec (it was already 4-byte aligned, but
        only by chance).

16 years ago2008-08-29 Pavel Roskin <proski@gnu.org>
proski [Fri, 29 Aug 2008 21:54:26 +0000 (21:54 +0000)]
2008-08-29  Pavel Roskin  <proski@gnu.org>

* kern/powerpc/ieee1275/crt0.S: Rename to ...
* kern/powerpc/ieee1275/startup.S: ... this.
* conf/powerpc-ieee1275.rmk: Adjust for the above.
* DISTLIST: Likewise.

16 years ago2008-08-29 Pavel Roskin <proski@gnu.org>
proski [Fri, 29 Aug 2008 21:46:17 +0000 (21:46 +0000)]
2008-08-29  Pavel Roskin  <proski@gnu.org>

* kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
grub/cpu/kernel.h.  Add start label for consistency with other
platforms.  Add grub_prefix immediately after start.  Add jump
to the code after grub_prefix.
* include/grub/powerpc/kernel.h: Provide valid values for
GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.

16 years ago2008-08-29 Bean <bean123ch@gmail.com>
bean [Fri, 29 Aug 2008 19:55:23 +0000 (19:55 +0000)]
2008-08-29  Bean  <bean123ch@gmail.com>

* configure.ac: Change host_os to cygwin for mingw.
(asprintf): New check for function.

* include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
#if ! defined (__CYGWIN__) && ! defined (__MINGW32__).

* include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
declear asprintf if HAVE_ASPRINTF is not set, declear fseeko, ftello,
sync, sleep and grub_util_get_disk_size for mingw.

* util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
to get size in mingw.
(open_device): Use flag O_BINARY if it's defined.
(find_root_device): Add dummy code for mingw.

* util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
(get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
(get_scsi_disk_name): Return 0 for mingw.

* util/hostfs.c: #include <grub/util/misc.h>.
(grub_hostfs_open): Use "rb" flag to open file, use
grub_util_get_disk_size to get disk size for mingw.

* util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
(asprintf): New function if HAVE_ASPRINTF is not set.
(sync): New function for mingw.
(sleep): Likewise.
(grub_util_get_disk_size): Likewise.

16 years ago2008-08-28 Pavel Roskin <proski@gnu.org>
proski [Fri, 29 Aug 2008 01:08:05 +0000 (01:08 +0000)]
2008-08-28  Pavel Roskin  <proski@gnu.org>

* conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
kern/time.c.

16 years ago2008-08-28 Robert Millan <rmh@aybabtu.com>
robertmh [Thu, 28 Aug 2008 19:08:21 +0000 (19:08 +0000)]
2008-08-28  Robert Millan  <rmh@aybabtu.com>

        * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.

16 years ago2008-08-28 Robert Millan <rmh@aybabtu.com>
robertmh [Thu, 28 Aug 2008 14:36:18 +0000 (14:36 +0000)]
2008-08-28  Robert Millan  <rmh@aybabtu.com>

        Change find_grub_drive() syntax so it doesn't prevent it from
        detecting NULL names as errors.

        * util/biosdisk.c (find_grub_drive): Move free slot search code
        from here ...
        (find_free_slot): ... to here.
        (read_device_map): Use find_free_slot() to search for free slots.

16 years ago2008-08-27 Marco Gerards <marco@gnu.org>
marco_g [Wed, 27 Aug 2008 15:05:00 +0000 (15:05 +0000)]
2008-08-27  Marco Gerards  <marco@gnu.org>

* conf/common.rmk (pkglib_MODULES): Add scsi.mod.
(scsi_mod_SOURCES): New variable.
(scsi_mod_CFLAGS): Likewise
(scsi_mod_LDFLAGS): Likewise.

* disk/scsi.c: New file.

* include/grub/scsi.h: Likewise.

* include/grub/scsicmd.h: Likewise.

* disk/ata.c: Include <grub/scsi.h>.
(grub_atapi_packet): Do not use grub_ata_cmd, use registers
instead.
(grub_ata_iterate): Skip ATAPI devices.
(grub_ata_open): Only handle ATAPI devices.
(struct grub_atapi_read): Removed.
(grub_atapi_readsector): Likewise.
(grub_ata_read): No longer handle ATAPI devices.
(grub_ata_write): Likewise.
(grub_atapi_iterate): New function.
(grub_atapi_read): Likewise.
(grub_atapi_write): Likewise.
(grub_atapi_open): Likewise.
(grub_atapi_close): Likewise.
(grub_atapi_dev): New variable.
(GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
(GRUB_MOD_FINI(ata)): Unregister ATAPI.

* include/grub/disk.h (enum grub_disk_dev_id): Add
`GRUB_DISK_DEVICE_SCSI_ID'.

16 years ago2008-08-26 Robert Millan <rmh@aybabtu.com>
robertmh [Tue, 26 Aug 2008 19:09:07 +0000 (19:09 +0000)]
2008-08-26  Robert Millan  <rmh@aybabtu.com>

        * util/biosdisk.c (grub_util_biosdisk_open, open_device)
        (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
        descriptive.

16 years ago2008-08-23 Bean <bean123ch@gmail.com>
bean [Sat, 23 Aug 2008 14:51:19 +0000 (14:51 +0000)]
2008-08-23  Bean  <bean123ch@gmail.com>

* conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
(grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
(pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
dm_nv.mod.
(raid5rec_mod_SOURCES): New macro.
(raid5rec_mod_CFLAGS): Likewise.
(raid5rec_mod_LDFLAGS): Likewise.
(raid6rec_mod_SOURCES): Likewise.
(raid6rec_mod_CFLAGS): Likewise.
(raid6rec_mod_LDFLAGS): Likewise.
(mdraid_mod_SOURCES): Likewise.
(mdraid_mod_CFLAGS): Likewise.
(mdraid_mod_LDFLAGS): Likewise.
(dm_nv_mod_SOURCES): Likewise.
(dm_nv_mod_CFLAGS): Likewise.
(dm_nv_mod_LDFLAGS): Likewise.

* conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
(grub_emu_SOURCES):  Add disk/raid5_recover.c, disk/raid6_recover.c,
disk/mdraid_linux.c and disk/dmraid_nvidia.c.

* conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.

* conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.

* conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.

* conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.

* conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.

* disk/raid5_recover.c: New file.

* disk/raid6_recover.c: Likewise.

* disk/mdraid_linux.c: Likewise.

* disk/dmraid_nvidia.c: Likewise.

* disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
ULONG_MAX.

* disk/raid.c (grub_raid_open): Use the size of the smallest disk to
calculate the size of raid device.
(grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
different layout of raid5.
(grub_raid_scan_device): Remove code specific to mdraid.
(grub_raid_list): New variable.
(free_array): New function.
(grub_raid_register): Likewise.
(grub_raid_unregister): Likewise.
(grub_raid_rescan): Likewise.
(GRUB_MOD_INIT): Don't iterate device here.
(GRUB_MOD_FINI): Use free_array to release resource.

* include/grub/raid.h: Remove macro and structure specific to mdraid.
(grub_raid5_recover_func_t): New function variable type.
(grub_raid6_recover_func_t): Likewise.
(grub_raid5_recover_func): New variable.
(grub_raid6_recover_func): Likewise.
(grub_raid_register): New function.
(grub_raid_unregister): Likewise.
(grub_raid_rescan): Likewise.
(grub_raid_block_xor): Likewise.

* util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
(CMD_CRC): New macro.
(part): Removed.
(read_file): Handle device as well as file.
(cmd_crc): New function.
(fstest): Handle multiple disks.
(options): Remove part, raw and long, add root and diskcount.
(usage): Add crc, remove -p, -r, -l, add -r and -c.
(main): Find the first non option entry and ignore subsequence options,
add handling for the new options, support multiple disks.

* util/grub-probe.c (probe): Add mdraid to abstraction_name.

16 years ago2008-08-22 Bean <bean123ch@gmail.com>
bean [Sat, 23 Aug 2008 14:20:45 +0000 (14:20 +0000)]
2008-08-22  Bean  <bean123ch@gmail.com>

* normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.

* genfslist.sh: Ignore kernel.mod.

* genpartmaplist.sh: Likewise.

16 years ago2008-08-23 Robert Millan <rmh@aybabtu.com>
robertmh [Sat, 23 Aug 2008 12:19:43 +0000 (12:19 +0000)]
2008-08-23  Robert Millan  <rmh@aybabtu.com>

        * util/getroot.c (find_root_device): Skip anything that starts with
        a dot, not just directories.  This avoids things like /dev/.tmp.md0.

16 years ago2008-08-22 Felix Zielcke <fzielcke@z-51.de>
fzielcke [Fri, 22 Aug 2008 12:58:46 +0000 (12:58 +0000)]
2008-08-22  Felix Zielcke  <fzielcke@z-51.de>

* util/update-grub.in (GRUB_GFXMODE): Export variable.
* util/grub.d/00_header.in: Allow the administrator to change default
gfxmode via ${GRUB_GFXMODE}.

16 years ago2008-08-21 Felix Zielcke <fzielcke@z-51.de>
fzielcke [Thu, 21 Aug 2008 13:30:32 +0000 (13:30 +0000)]
2008-08-21  Felix Zielcke  <fzielcke@z-51.de>

        * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.

16 years ago2008-08-21 Robert Millan <rmh@aybabtu.com>
robertmh [Thu, 21 Aug 2008 13:18:07 +0000 (13:18 +0000)]
2008-08-21  Robert Millan  <rmh@aybabtu.com>

        * loader/i386/linux.c: New file.  Implements generic 32-bit Linux
        loader.
        * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
        `loader/i386/pc/linux.c' with `loader/i386/linux.c'.

16 years ago2008-08-20 Carles Pina i Estany <carles@pina.cat>
robertmh [Wed, 20 Aug 2008 10:07:56 +0000 (10:07 +0000)]
2008-08-20  Carles Pina i Estany  <carles@pina.cat>

        * menu/normal.c (run_menu): Replace hardcoded numbers with macros
        (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)

16 years ago2008-08-19 Robert Millan <rmh@aybabtu.com>
robertmh [Tue, 19 Aug 2008 19:20:33 +0000 (19:20 +0000)]
2008-08-19  Robert Millan  <rmh@aybabtu.com>

        * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
        (struct grub_virtual_screen): Remove `cursor_color'.
        (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
        initialization.
        (write_cursor): Use `virtual_screen.fg_color' to draw cursor.

16 years ago2008-08-18 Robert Millan <rmh@aybabtu.com>
robertmh [Mon, 18 Aug 2008 13:46:31 +0000 (13:46 +0000)]
2008-08-18  Robert Millan  <rmh@aybabtu.com>

        Unify (identical) linux_normal.c files.
        * loader/i386/efi/linux_normal.c: Move from here ...
        * loader/linux_normal.c: ... to here.  Update all users.
        * loader/i386/pc/linux_normal.c: Delete.  Update all users.
        * loader/i386/ieee1275/linux_normal.c: Likewise.

16 years ago2008-08-18 Robert Millan <rmh@aybabtu.com>
robertmh [Mon, 18 Aug 2008 13:01:01 +0000 (13:01 +0000)]
2008-08-18  Robert Millan  <rmh@aybabtu.com>

        * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
        (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
        (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
        (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
        (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
        New macros.
        (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
        * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
        (GRUB_LINUX_CL_END_OFFSET): ... to here.
        * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
        (GRUB_LINUX_CL_OFFSET): ... this.  Update all users.
        (GRUB_EFI_CL_END_OFFSET): Rename to ...
        (GRUB_LINUX_CL_END_OFFSET): ... this.  Update all users.
        (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
        Initialize `params->video_cursor_x' and `params->video_cursor_y'
        portably using grub_getxy().
        Replace `-EFI' with `-bzImage' in boot message.

16 years ago2008-08-17 Robert Millan <rmh@aybabtu.com>
robertmh [Sun, 17 Aug 2008 20:28:00 +0000 (20:28 +0000)]
2008-08-17  Robert Millan  <rmh@aybabtu.com>

        * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).

16 years ago2008-08-17 Robert Millan <rmh@aybabtu.com>
robertmh [Sun, 17 Aug 2008 16:32:18 +0000 (16:32 +0000)]
2008-08-17  Robert Millan  <rmh@aybabtu.com>

        * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.

        * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
        (GRUB_MACHINE_MEMORY_RESERVED): New macros.
        (grub_machine_mmap_iterate): New function declaration.
        * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
        structure.
        (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
        macros.

        * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
        type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
        Move e820 parsing from here ...
        * kern/i386/pc/mmap.c: New file.
        (grub_machine_mmap_iterate): ... to here.

        * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
        (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
        (GRUB_MACHINE_MEMORY_AVAILABLE): ... this.  Update all users.
        (grub_available_iterate): Redeclare to return `void', and redeclare
        its hook to use grub_uint64_t as addr and size parameters, and rename
        to ...
        (grub_machine_mmap_iterate): ... this.  Update all users.

        * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
        to make it more readable.  Rename to ...
        (grub_machine_mmap_iterate): ... this.

        * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
        (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
        (grub_multiboot): Allocate an extra region after the payload, and fill
        it with a Multiboot memory map.  Adjust a.out loader to calculate size
        with the extra space.
        (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
        with the extra space.

16 years agochanging spaces to \t again sigh
fzielcke [Sun, 17 Aug 2008 15:50:36 +0000 (15:50 +0000)]
changing spaces to \t again sigh

16 years ago2008-08-17 Carles Pina i Estany <carles@pina.cat>
fzielcke [Sun, 17 Aug 2008 10:30:25 +0000 (10:30 +0000)]
2008-08-17  Carles Pina i Estany  <carles@pina.cat>

        * menu/normal.c (run_menu): Add Home and End keys in grub-menu.

16 years ago2008-08-17 Felix Zielcke <fzielcke@z-51.de>
fzielcke [Sun, 17 Aug 2008 09:12:59 +0000 (09:12 +0000)]
2008-08-17  Felix Zielcke  <fzielcke@z-51.de>

        * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
        mdate-sh to the list `find' searches for.
        * DISTLIST: Regenerated.

16 years agofix previous changelog commit
fzielcke [Sat, 16 Aug 2008 20:25:46 +0000 (20:25 +0000)]
fix previous changelog commit

16 years ago2008-08-16 Felix Zielcke <fzielcke@z-51.de>
fzielcke [Sat, 16 Aug 2008 20:21:07 +0000 (20:21 +0000)]
2008-08-16  Felix Zielcke  <fzielcke@z-51.de>

        * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
        genkernsyms.sh.  Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
        genmoddep.awk, gensymlist.sh.in
        (DISTDIRS): Add bus, docs, hook, lib
        * DISTLIST: Regenerated.
        * NEWS: Add cygwin support and change `os-prober' entry a bit.

(NEWS is in previous commit.)

16 years agoAdd Cygwin support and update `os-prober' item in NEWS.
fzielcke [Sat, 16 Aug 2008 18:56:49 +0000 (18:56 +0000)]
Add Cygwin support and update `os-prober' item in NEWS.

16 years agochange spaces to tabs for changelog entry of r1805
fzielcke [Sat, 16 Aug 2008 13:16:36 +0000 (13:16 +0000)]
change spaces to tabs for changelog entry of r1805

16 years ago2008-08-16 Robert Millan <rmh@aybabtu.com>
robertmh [Sat, 16 Aug 2008 12:52:34 +0000 (12:52 +0000)]
2008-08-16  Robert Millan  <rmh@aybabtu.com>

        * disk/raid.c (grub_raid_init): Handle/report errors set by
        grub_device_iterate().
        * disk/lvm.c (grub_lvm_init): Likewise.

16 years ago2008-08-15 Bean <bean123ch@gmail.com>
bean [Fri, 15 Aug 2008 15:39:02 +0000 (15:39 +0000)]
2008-08-15  Bean  <bean123ch@gmail.com>

* conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
and datehook.mod.
(datetime_mod_SOURCES): New macro.
(datetime_mod_CFLAGS): Likewise.
(datetime_mod_LDFLAGS): Likewise.
(date_mod_SOURCES): Likewise.
(date_mod_CFLAGS): Likewise.
(date_mod_LDFLAGS): Likewise.
(datehook_mod_SOURCES): Likewise.
(datehook_mod_CFLAGS): Likewise.
(datehook_mod_LDFLAGS): Likewise.

* conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
and datehook.mod.
(datetime_mod_SOURCES): New macro.
(datetime_mod_CFLAGS): Likewise.
(datetime_mod_LDFLAGS): Likewise.
(date_mod_SOURCES): Likewise.
(date_mod_CFLAGS): Likewise.
(date_mod_LDFLAGS): Likewise.
(datehook_mod_SOURCES): Likewise.
(datehook_mod_CFLAGS): Likewise.
(datehook_mod_LDFLAGS): Likewise.

* conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
and datehook.mod.
(datetime_mod_SOURCES): New macro.
(datetime_mod_CFLAGS): Likewise.
(datetime_mod_LDFLAGS): Likewise.
(date_mod_SOURCES): Likewise.
(date_mod_CFLAGS): Likewise.
(date_mod_LDFLAGS): Likewise.
(datehook_mod_SOURCES): Likewise.
(datehook_mod_CFLAGS): Likewise.
(datehook_mod_LDFLAGS): Likewise.

* conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
and datehook.mod.
(datetime_mod_SOURCES): New macro.
(datetime_mod_CFLAGS): Likewise.
(datetime_mod_LDFLAGS): Likewise.
(date_mod_SOURCES): Likewise.
(date_mod_CFLAGS): Likewise.
(date_mod_LDFLAGS): Likewise.
(datehook_mod_SOURCES): Likewise.
(datehook_mod_CFLAGS): Likewise.
(datehook_mod_LDFLAGS): Likewise.

* conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
and datehook.mod.
(datetime_mod_SOURCES): New macro.
(datetime_mod_CFLAGS): Likewise.
(datetime_mod_LDFLAGS): Likewise.
(date_mod_SOURCES): Likewise.
(date_mod_CFLAGS): Likewise.
(date_mod_LDFLAGS): Likewise.
(datehook_mod_SOURCES): Likewise.
(datehook_mod_CFLAGS): Likewise.
(datehook_mod_LDFLAGS): Likewise.

* kern/env.c (grub_env_insert): Fix a bug in prevp pointer.

* commands/date.c: New file.

* hook/datehook.c: Likewise.

* include/grub/lib/datetime.h: Likewise.

* include/grub/i386/cmos.h: Likewise.

* lib/datetime.c: Likewise.

* lib/i386/datetime.c: Likewise.

* lib/efi/datetime.c: Likewise.

16 years agooops, missed the changelog entry
robertmh [Thu, 14 Aug 2008 19:05:28 +0000 (19:05 +0000)]
oops, missed the changelog entry

16 years ago2008-08-14 Robert Millan <rmh@aybabtu.com>
robertmh [Thu, 14 Aug 2008 18:59:33 +0000 (18:59 +0000)]
2008-08-14  Robert Millan  <rmh@aybabtu.com>

        * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
        (grub_mkelfimage_SOURCES): New variable.
        (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.

        * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
        (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
        * conf/powerpc-ieee1275.rmk: Likewise.
        * conf/i386-ieee1275.rmk: Likewise.

        * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
        * kern/i386/coreboot/init.c: Likewise.

        * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
        with `<grub/cpu/kernel.h>'.
        (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
        to ...
        (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
        * kern/i386/coreboot/startup.S: Likewise.

        * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
        (GRUB_MOD_GAP): Remove.
        * include/grub/powerpc/kernel.h: New file.
        * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
        (GRUB_KERNEL_MACHINE_DATA_END): Remove.
        * include/grub/i386/kernel.h: New file.
        * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
        (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
        (GRUB_KERNEL_MACHINE_DATA_END): Remove.

        * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
        `grub-mkelfimage'.
        Use --directory when invoking grub_mkimage.

        * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
        (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
        GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
        and GRUB_KERNEL_CPU_PREFIX.

16 years ago2008-08-14 Felix Zielcke <fzielcke@z-51.de>
fzielcke [Thu, 14 Aug 2008 18:46:47 +0000 (18:46 +0000)]
2008-08-14  Felix Zielcke  <fzielcke@z-51.de>

        * include/grub/err.h (grub_err_printf): New function prototype.
        * util/misc.c (grub_err_printf): New function.
        * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
        grub_printf.
        * kern/err.c (grub_print_error): Use grub_err_printf.

16 years ago2008-08-13 Robert Millan <rmh@aybabtu.com>
robertmh [Wed, 13 Aug 2008 16:59:12 +0000 (16:59 +0000)]
2008-08-13  Robert Millan  <rmh@aybabtu.com>

        * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.

16 years ago2008-08-13 Robert Millan <rmh@aybabtu.com>
robertmh [Wed, 13 Aug 2008 16:55:06 +0000 (16:55 +0000)]
2008-08-13  Robert Millan  <rmh@aybabtu.com>

        * docs/grub.cfg: Use the native device name for the example GNU/Hurd
        boot entry.

16 years ago2008-08-12 Robert Millan <rmh@aybabtu.com>
robertmh [Tue, 12 Aug 2008 15:40:26 +0000 (15:40 +0000)]
2008-08-12  Robert Millan  <rmh@aybabtu.com>

        * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
        of the relocation code from here ...
        (grub_multiboot): ... to here.
        (forward_relocator, backward_relocator): Move from here ...
        * kern/i386/loader.S (grub_multiboot_forward_relocator)
        (grub_multiboot_backward_relocator): ... to here.
        (grub_multiboot_real_boot): Use %edx for entry offset.  Put Multiboot
        magic in %eax.  Use %ebp for jumping (so %edx is not trashed).
        * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
        (grub_multiboot_forward_relocator_end)
        (grub_multiboot_backward_relocator)
        (grub_multiboot_backward_relocator_end): New variables.

16 years ago2008-08-12 Bean <bean123ch@gmail.com>
bean [Tue, 12 Aug 2008 13:58:29 +0000 (13:58 +0000)]
2008-08-12  Bean  <bean123ch@gmail.com>

* disk/raid.c (grub_raid_read): Fix a bug in raid0 code.

16 years ago2008-08-11 Robert Millan <rmh@aybabtu.com>
robertmh [Mon, 11 Aug 2008 14:57:39 +0000 (14:57 +0000)]
2008-08-11  Robert Millan  <rmh@aybabtu.com>

        * kern/i386/linuxbios/startup.S: Move from here ...
        * kern/i386/coreboot/startup.S: ... to here.

        * kern/i386/linuxbios/init.c: Move from here ...
        * kern/i386/coreboot/init.c: ... to here.

        * kern/i386/linuxbios/table.c: Move from here ...
        * kern/i386/coreboot/mmap.c: ... to here.

        * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.

16 years ago2008-08-11 Robert Millan <rmh@aybabtu.com>
robertmh [Mon, 11 Aug 2008 10:33:14 +0000 (10:33 +0000)]
2008-08-11  Robert Millan  <rmh@aybabtu.com>

        * kern/device.c (grub_device_open): Do not handle grub_disk_open()
        errors.  Leave it to the upper layer to handle them.

16 years ago2008-08-09 Christian Franke <franke@computer.org>
chrfranke [Sat, 9 Aug 2008 12:30:26 +0000 (12:30 +0000)]
2008-08-09  Christian Franke  <franke@computer.org>

* Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
* conf/common.rmk: Install `grub-pe2elf' only if requested.
Install `grub.d/10_windows' only on Cygwin.
* configure.ac: Add subst of `target_os'.
Check `target_os' also before setting TARGET_OBJ2ELF.
Add `--enable-grub-pe2elf'.

16 years ago2008-08-08 Robert Millan <rmh@aybabtu.com>
robertmh [Thu, 7 Aug 2008 23:48:13 +0000 (23:48 +0000)]
2008-08-08  Robert Millan  <rmh@aybabtu.com>

        * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
        (grub_last_time): Change type to grub_uint64_t.
        (grub_disk_open): Migrate code from to using grub_get_time_ms().
        (grub_disk_close): Likewise.

        * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
        (run_menu): Migrate code from to using grub_get_time_ms().

        * util/misc.c (grub_get_time_ms): New function.

16 years ago2008-08-08 Marco Gerards <marco@gnu.org>
marco_g [Thu, 7 Aug 2008 23:37:33 +0000 (23:37 +0000)]
2008-08-08  Marco Gerards  <marco@gnu.org>

* disk/ata.c (grub_ata_regget): Change return type to
`grub_uint8_t'.
(grub_ata_regget2): Likewise.
(grub_ata_wait_status): New function.
(grub_ata_wait_busy): Removed function, updated all users to use
`grub_ata_wait_status'.
(grub_ata_wait_drq): Likewise.
(grub_ata_cmd): New function.
(grub_ata_pio_read): Change return type to `grub_uint8_t'.  Add
error handling.
(grub_ata_pio_write): Add error handling.
(grub_atapi_identify): Likewise.
(grub_atapi_packet): Use `grub_ata_cmd' and improve error
handling.
(grub_ata_identify): Use `grub_ata_cmd' and improve error
handling.  Actually use the detected registers.  Reorder the
detection logic such that it is easier to read.
(grub_ata_pciinit): Do not assign the same ID to each controller.
(grub_ata_setaddress): Use `grub_ata_cmd' and improve error
handling.
(grub_atapi_readsector): Check the result of `grub_ata_pio_read'.

* include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.

16 years agoSome fixes to the last commit
marco_g [Thu, 7 Aug 2008 22:55:50 +0000 (22:55 +0000)]
Some fixes to the last commit

16 years ago2008-08-08 Marco Gerards <marco@gnu.org>
marco_g [Thu, 7 Aug 2008 22:43:03 +0000 (22:43 +0000)]
2008-08-08  Marco Gerards  <marco@gnu.org>

* NEWS: Update.

16 years ago2008-08-07 Bean <bean123ch@gmail.com>
bean [Thu, 7 Aug 2008 20:16:59 +0000 (20:16 +0000)]
2008-08-07  Bean  <bean123ch@gmail.com>

* include/grub/x86_64/pci.h: New file.

16 years ago2008-08-07 Christian Franke <franke@computer.org>
chrfranke [Thu, 7 Aug 2008 19:43:36 +0000 (19:43 +0000)]
2008-08-07  Christian Franke  <franke@computer.org>

* kern/i386/pit.c (TIMER2_SPEAKER): New define.
(TIMER2_GATE): Likewise.
(grub_pit_wait): Add enable/disable of the timer2 gate
bit of port 0x61.  This fixes a possible infinite loop.

16 years ago2008-08-07 Bean <bean123ch@gmail.com>
bean [Thu, 7 Aug 2008 19:21:25 +0000 (19:21 +0000)]
2008-08-07  Bean  <bean123ch@gmail.com>

* conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
kern/i386/tsc.c and kern/i386/pit.c.

* include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
x86_64 platform.

* kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
<grub/i386/tsc.h>.

* kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.

16 years agoMigrate .cvsignore to svn:ignore property
robertmh [Thu, 7 Aug 2008 14:34:19 +0000 (14:34 +0000)]
Migrate .cvsignore to svn:ignore property

16 years ago2008-08-07 Bean <bean123ch@gmail.com>
bean [Thu, 7 Aug 2008 11:58:55 +0000 (11:58 +0000)]
2008-08-07  Bean  <bean123ch@gmail.com>

* conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.

* conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,

* include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
multiple inclusion. Add #include <grub/types.h>.

16 years agoAdd 10_windows.in to DISTLIST.
robertmh [Thu, 7 Aug 2008 10:49:06 +0000 (10:49 +0000)]
Add 10_windows.in to DISTLIST.

16 years ago2008-08-06 Christian Franke <franke@computer.org>
chrfranke [Wed, 6 Aug 2008 18:45:51 +0000 (18:45 +0000)]
2008-08-06  Christian Franke  <franke@computer.org>

* conf/common.rmk: Build and install `10_windows'.
* util/grub.d/10_windows.in: New script.

16 years agoRemove executable flag
proski [Wed, 6 Aug 2008 13:42:02 +0000 (13:42 +0000)]
Remove executable flag

16 years ago2008-08-06 Pavel Roskin <proski@gnu.org>
proski [Wed, 6 Aug 2008 13:28:28 +0000 (13:28 +0000)]
2008-08-06  Pavel Roskin  <proski@gnu.org>

* kern/i386/pit.c: Include `<grub/i386/pit.h>'.

16 years ago2008-08-06 Robert Millan <rmh@aybabtu.com>
robertmh [Wed, 6 Aug 2008 12:27:28 +0000 (12:27 +0000)]
2008-08-06  Robert Millan  <rmh@aybabtu.com>

        * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
        * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.

16 years ago2008-08-06 Bean <bean123ch@gmail.com>
bean [Wed, 6 Aug 2008 06:17:14 +0000 (06:17 +0000)]
2008-08-06  Bean  <bean123ch@gmail.com>

* fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
(grub_pxefs_fs_int): Remove dummy definition.
(grub_pxefs_open): Use data->block_size to store the current block
size setting.
(grub_pxefs_read): Use block size stored in data->block_size. As the
value of grub_pxe_blksize can be changed after the file is opened.

16 years ago2008-08-06 Bean <bean123ch@gmail.com>
bean [Wed, 6 Aug 2008 04:05:12 +0000 (04:05 +0000)]
2008-08-06  Bean  <bean123ch@gmail.com>

* fs/i386/pc/pxe.c (curr_file): new variable.
(grub_pxefs_open): Simply the handling of pxe file system. Don't
require the dummy internal file system anymore.
(grub_pxefs_read): Removed.
(grub_pxefs_close): Likewise.
(grub_pxefs_fs_int): Likewise.
(grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
connection when we switch file.
(grub_pxefs_close_int): Renamed to grub_pxefs_close.

16 years ago2008-08-06 Robert Millan <rmh@aybabtu.com>
robertmh [Wed, 6 Aug 2008 00:20:04 +0000 (00:20 +0000)]
2008-08-06  Robert Millan  <rmh@aybabtu.com>

        * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
        `halt.mod'.
        (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
        (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.

        * kern/i386/halt.c: New file.
        * kern/i386/reboot.c: Likewise.
        * include/grub/i386/reboot.h: Likewise.
        * include/grub/i386/halt.h: Likewise.

        * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
        Include `<grub/cpu/halt.h>'.
        * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
        [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.

        * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
        (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
        (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
        (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
        (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
        (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
        from here ...
        * include/grub/i386/at_keyboard.h: ... to here.

16 years ago2008-08-05 Robert Millan <rmh@aybabtu.com>
robertmh [Tue, 5 Aug 2008 20:24:00 +0000 (20:24 +0000)]
2008-08-05  Robert Millan  <rmh@aybabtu.com>

        * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
        * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
        * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
        `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
        `kern/generic/millisleep.c'.

        * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
        instead of grub_get_rtc().
        (grub_tsc_init): Initialize `tsc_boot_time'.

        * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
        (grub_machine_init): Use grub_tsc_init() rather than
        installing an RTC-based handler via grub_install_get_time_ms().

        * kern/i386/pit.c: New file.
        * include/grub/i386/pit.h: Likewise.

16 years ago2008-08-05 Bean <bean123ch@gmail.com>
bean [Tue, 5 Aug 2008 15:15:59 +0000 (15:15 +0000)]
2008-08-05  Bean  <bean123ch@gmail.com>

* boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.

* conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
(pkglib_MODULES): Add pxe.mod and pxecmd.mod.
(pxe_mod_SOURCES): New macro.
(pxe_mod_CFLAGS): Likewise.
(pxe_mod_LDFLAGS): Likewise.
(pxecmd_mod_SOURCES): Likewise.
(pxecmd_mod_CFLAGS): Likewise.
(pxecmd_mod_LDFLAGS): Likewise.

* kern/i386/pc/startup.S (grub_pxe_scan): New function.
(grub_pxe_call): Likewise.

* include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.

* commands/i386/pc/pxecmd.c: New file.

* disk/i386/pc/pxe.c: Likewise.

* include/grub/i386/pc/pxe.h: Likewise.

16 years ago2008-08-05 Bean <bean123ch@gmail.com>
bean [Tue, 5 Aug 2008 14:20:00 +0000 (14:20 +0000)]
2008-08-05  Bean  <bean123ch@gmail.com>

* util/console.c (grub_console_cur_color): New variable.
(grub_console_standard_color): Likewise.
(grub_console_normal_color): Likewise.
(grub_console_highlight_color): Likewise.
(color_map): Likewise.
(use_color): Likewise.
(NUM_COLORS): New macro.
(grub_ncurses_setcolorstate): Handle color properly.
(grub_ncurses_setcolor): Don't change color here, just remember the
settings, color will be set in grub_ncurses_setcolorstate.
(grub_ncurses_getcolor): New function.
(grub_ncurses_init): Initialize color pairs.
(grub_ncurses_term): New member grub_ncurses_getcolor.

16 years agoactually add kern/time.c
marco_g [Tue, 5 Aug 2008 12:38:12 +0000 (12:38 +0000)]
actually add kern/time.c

16 years agoUrgh, and now actually add the files :-)
marco_g [Tue, 5 Aug 2008 12:30:42 +0000 (12:30 +0000)]
Urgh, and now actually add the files :-)

16 years agoUrgh, and now actually add the files :-)
marco_g [Tue, 5 Aug 2008 12:26:29 +0000 (12:26 +0000)]
Urgh, and now actually add the files :-)

16 years ago2008-08-05 Colin D Bennett <colin@gibibit.com>
marco_g [Tue, 5 Aug 2008 11:54:37 +0000 (11:54 +0000)]
2008-08-05  Colin D Bennett  <colin@gibibit.com>

High resolution timer support.  Implemented for x86 CPUs using TSC.
Extracted generic grub_millisleep() so it's linked in only as needed.
This requires a Pentium compatible CPU; if the RDTSC instruction is
not supported, then it falls back on the generic grub_get_time_ms()
implementation that uses the machine's RTC.

* conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
`kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
`kern/generic/millisleep.c'.

* conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
`kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.

* conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
`kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.

* conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.

* conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
`kern/generic/millisleep.c'.

* conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.

* conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.

* kern/generic/rtc_get_time_ms.c: New file.

* kern/generic/millisleep.c: New file.

* kern/misc.c: Don't include
<kern/time.h> anymore.
(grub_millisleep_generic): Removed.

* commands/sleep.c (grub_interruptible_millisleep): Uses
grub_get_time_ms() instead of grub_get_rtc().

* include/grub/i386/tsc.h (grub_get_tsc): New file.  New inline
function.
(grub_cpu_is_cpuid_supported): New inline function.
(grub_cpu_is_tsc_supported): New inline function.
(grub_tsc_init): New function prototype.
(grub_tsc_get_time_ms): New function prototype.

* kern/i386/tsc.c (grub_get_time_ms): New file.

* include/grub/time.h: Include <grub/types.h.
(grub_millisleep_generic): Removed.
(grub_get_time_ms): New prototype.
(grub_install_get_time_ms): New prototype.
(grub_rtc_get_time_ms): New prototype.

* kern/time.c (grub_get_time_ms): New function.
(grub_install_get_time_ms): New function.

* kern/i386/efi/init.c: Include <grub/cpu/tsc.h>.  Don't include
<grub/time.h> anymore.
(grub_millisleep): Removed.
(grub_machine_init): Call grub_tsc_init.

* kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
get_time_ms() implementation.

* kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
(ieee1275_get_time_ms): New function.
(grub_machine_init): Install get_time_ms() implementation.

* kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
(grub_machine_init): Call grub_tsc_init().
(grub_millisleep): Removed.

* kern/ieee1275/init.c (grub_millisleep): Removed.
(grub_machine_init): Install ieee1275_get_time_ms()
implementation.
(ieee1275_get_time_ms): New function.
(grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
real work.

16 years ago2008-08-05 Marco Gerards <marco@gnu.org>
marco_g [Tue, 5 Aug 2008 09:41:10 +0000 (09:41 +0000)]
2008-08-05  Marco Gerards  <marco@gnu.org>

* disk/ata.c: Include <grub/pci.h>.
(enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
(grub_ata_initialize): Rewritten.
(grub_ata_device_initialize): New function.

16 years ago2008-08-04 Pavel Roskin <proski@gnu.org>
proski [Mon, 4 Aug 2008 22:54:06 +0000 (22:54 +0000)]
2008-08-04  Pavel Roskin  <proski@gnu.org>

* kern/main.c: Include grub/mm.h.

16 years agoTypos, spacing
proski [Mon, 4 Aug 2008 22:50:09 +0000 (22:50 +0000)]
Typos, spacing

16 years ago2008-08-04 Robert Millan <rmh@aybabtu.com>
robertmh [Mon, 4 Aug 2008 11:38:45 +0000 (11:38 +0000)]
2008-08-04  Robert Millan  <rmh@aybabtu.com>

        * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
        (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
        corruption problem).

16 years ago2008-08-04 Robert Millan <rmh@aybabtu.com>
robertmh [Mon, 4 Aug 2008 09:30:36 +0000 (09:30 +0000)]
2008-08-04  Robert Millan  <rmh@aybabtu.com>

        * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
        warnings introduced in my last commit.