2008-02-02 Bean <bean123ch@gmail.com>
* fs/ufs.c (INODE_BLKSZ): Fix incorrect value. (grub_ufs_get_file_block): Fix indirect block calculation problem. * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk. (grub_xfs_btree_node): New structure. (grub_xfs_btree_root): New structure. (grub_xfs_inode): New members nblocks, extsize, nextents and btree. (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents. (GRUB_XFS_EXTENT_BLOCK): Likewise. (GRUB_XFS_EXTENT_SIZE): Likewise. (grub_xfs_read_block): Support btree format type. (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook. Use directory block as basic unit. * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block. * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as __attribute__ ((__regparm__ (1))).
This commit is contained in:
parent
f95562bf52
commit
c004e1b477
6 changed files with 160 additions and 49 deletions
4
aclocal.m4
vendored
4
aclocal.m4
vendored
|
@ -333,13 +333,13 @@ AC_MSG_RESULT([$grub_cv_i386_check_nested_functions])
|
|||
|
||||
if test "x$grub_cv_i386_check_nested_functions" = xyes; then
|
||||
AC_DEFINE([NESTED_FUNC_ATTR],
|
||||
[__attribute__ ((__regparm__ (2)))],
|
||||
[__attribute__ ((__regparm__ (1)))],
|
||||
[Catch gcc bug])
|
||||
else
|
||||
dnl Unfortunately, the above test does not detect a bug in gcc-4.0.
|
||||
dnl So use regparm 2 until a better test is found.
|
||||
AC_DEFINE([NESTED_FUNC_ATTR],
|
||||
[__attribute__ ((__regparm__ (2)))],
|
||||
[__attribute__ ((__regparm__ (1)))],
|
||||
[Catch gcc bug])
|
||||
fi
|
||||
])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue