* devices.h (_major): Revert previous ill-advised change.

(_minor): Ditto.
This commit is contained in:
Christopher Faylor 2005-12-02 00:37:21 +00:00
parent 8b3c84227f
commit 032295a988
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2005-12-01 Christopher Faylor <cgf@timesys.com>
* devices.h (_major): Revert previous ill-advised change.
(_minor): Ditto.
2005-12-01 Christopher Faylor <cgf@timesys.com> 2005-12-01 Christopher Faylor <cgf@timesys.com>
* exceptions.cc (handle_exceptions): Translate a guard page exception * exceptions.cc (handle_exceptions): Translate a guard page exception

View File

@ -14,8 +14,8 @@ typedef mode_t _mode_t;
typedef __dev32_t _dev_t; typedef __dev32_t _dev_t;
#define FHDEV(maj, min) ((((unsigned) (maj)) << (sizeof (_major_t) * 8)) | (unsigned) (min)) #define FHDEV(maj, min) ((((unsigned) (maj)) << (sizeof (_major_t) * 8)) | (unsigned) (min))
#define _minor(dev) (((_minor_t) dev) & ((1 << (sizeof (_minor_t) * 8)) - 1)) #define _minor(dev) ((dev) & ((1 << (sizeof (_minor_t) * 8)) - 1))
#define _major(dev) (((_major_t) dev) >> (sizeof (_major_t) * 8)) #define _major(dev) ((dev) >> (sizeof (_major_t) * 8))
enum fh_devices enum fh_devices
{ {