# HG changeset patch # User Pascal Bellard # Date 1519902376 -3600 # Node ID 12f947645264e4de931f0c612cc17343095fb961 # Parent b4680310d62ad02d82e2e5771044ef0f01e883a4 grub: add ext4 patch (again) diff -r b4680310d62a -r 12f947645264 grub/stuff/ext3_256byte_inode+ext4.diff --- a/grub/stuff/ext3_256byte_inode+ext4.diff Thu Mar 01 11:55:46 2018 +0100 +++ b/grub/stuff/ext3_256byte_inode+ext4.diff Thu Mar 01 12:06:16 2018 +0100 @@ -262,7 +262,7 @@ /* ext2/super.c */ -#define log2(n) ffz(~(n)) -+//#define log2(n) ffz(~(n)) ++#define log2(n) ffz(~(n)) #define EXT2_SUPER_MAGIC 0xEF53 /* include/linux/ext2_fs.h */ #define EXT2_ROOT_INO 2 /* include/linux/ext2_fs.h */ @@ -344,14 +344,14 @@ -: "r" (~word)); - return word; -} -+//static __inline__ unsigned long -+//ffz (unsigned long word) -+//{ -+// __asm__ ("bsfl %1,%0" -+//: "=r" (word) -+//: "r" (~word)); -+// return word; -+//} ++static __inline__ unsigned long ++ffz (unsigned long word) ++{ ++ __asm__ ("bsfl %1,%0" ++: "=r" (word) ++: "r" (~word)); ++ return word; ++} /* check filesystem types and read superblock into memory buffer */ int