mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-21 14:59:34 +00:00
2004-01-17 Yoshinori K. Okuji <okuji@enbug.org>
* lib/device.c [__linux__] (MAJOR): Support 32 bit and 64 bit dev_t. This code is stolen from glibc. Suggested by Shen Feng <shen@nanjing-fnst.com>.
This commit is contained in:
1 parent
a756a4a485
commit
7b7b9a3f1b
3 files changed
+13
-4
No files matched your search
@@ -1,3 +1,9 @@
|
||||
2004-01-17 Yoshinori K. Okuji <okuji@enbug.org>
|
||||
|
||||
* lib/device.c [__linux__] (MAJOR): Support 32 bit and 64 bit
|
||||
dev_t. This code is stolen from glibc.
|
||||
Suggested by Shen Feng <shen@nanjing-fnst.com>.
|
||||
|
||||
2004-01-11 Yoshinori K. Okuji <okuji@enbug.org>
|
||||
|
||||
* stage2/terminfo.c (ti_set_term): Use a pointer to struct
|
||||
|
||||
@@ -9,6 +9,7 @@ New:
|
||||
* Display "GNU GRUB" instead of "GRUB" in the menu.
|
||||
* Add support for QNX RTP into the grub shell.
|
||||
* Add support for the initrd max address of a kernel header in Linux.
|
||||
* Support 32 bit and 64 bit dev_t.
|
||||
|
||||
New in 0.93 - 2002-12-08:
|
||||
* Define the behavior of the boot loader when the load end address is
|
||||
|
||||
+6
-4
@@ -59,10 +59,12 @@ struct hd_geometry
|
||||
# define FLOPPY_MAJOR 2 /* the major number for floppy */
|
||||
# endif /* ! FLOPPY_MAJOR */
|
||||
# ifndef MAJOR
|
||||
# ifndef MINORBITS
|
||||
# define MINORBITS 8
|
||||
# endif /* ! MINORBITS */
|
||||
# define MAJOR(dev) ((unsigned int) ((dev) >> MINORBITS))
|
||||
# define MAJOR(dev) \
|
||||
({ \
|
||||
unsigned long long __dev = (dev); \
|
||||
(unsigned) ((__dev >> 8) & 0xfff) \
|
||||
| ((unsigned int) (__dev >> 32) & ~0xfff); \
|
||||
})
|
||||
# endif /* ! MAJOR */
|
||||
# ifndef CDROM_GET_CAPABILITY
|
||||
# define CDROM_GET_CAPABILITY 0x5331 /* get capabilities */
|
||||
|
||||
Reference in new issue
Block a user