diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2009-08-10 00:08:35 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-08-10 00:08:35 +0200 |
commit | e531759ef140c249fcab88a853567d2d31803105 (patch) | |
tree | 2c478d0e8fc22d48c64c0ed6c8e779a9fa0fd5c8 /util-linux/fdisk_osf.c | |
parent | a43df64eec6d02812b40d7e01edbeb47539866db (diff) | |
download | busybox-w32-e531759ef140c249fcab88a853567d2d31803105.tar.gz busybox-w32-e531759ef140c249fcab88a853567d2d31803105.tar.bz2 busybox-w32-e531759ef140c249fcab88a853567d2d31803105.zip |
fdisk: add handling of avr32. closes bug 555
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'util-linux/fdisk_osf.c')
-rw-r--r-- | util-linux/fdisk_osf.c | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/util-linux/fdisk_osf.c b/util-linux/fdisk_osf.c index ea5cd3c17..aeccc6913 100644 --- a/util-linux/fdisk_osf.c +++ b/util-linux/fdisk_osf.c | |||
@@ -45,18 +45,16 @@ | |||
45 | 45 | ||
46 | #if defined(i386) || defined(__sparc__) || defined(__arm__) \ | 46 | #if defined(i386) || defined(__sparc__) || defined(__arm__) \ |
47 | || defined(__m68k__) || defined(__mips__) || defined(__s390__) \ | 47 | || defined(__m68k__) || defined(__mips__) || defined(__s390__) \ |
48 | || defined(__sh__) || defined(__x86_64__) | 48 | || defined(__s390__) || defined(__s390x__) \ |
49 | #define BSD_LABELSECTOR 1 | 49 | || defined(__sh__) || defined(__x86_64__) || defined(__avr32__) |
50 | #define BSD_LABELOFFSET 0 | 50 | # define BSD_LABELSECTOR 1 |
51 | # define BSD_LABELOFFSET 0 | ||
51 | #elif defined(__alpha__) || defined(__powerpc__) || defined(__ia64__) \ | 52 | #elif defined(__alpha__) || defined(__powerpc__) || defined(__ia64__) \ |
52 | || defined(__hppa__) | 53 | || defined(__hppa__) |
53 | #define BSD_LABELSECTOR 0 | 54 | # define BSD_LABELSECTOR 0 |
54 | #define BSD_LABELOFFSET 64 | 55 | # define BSD_LABELOFFSET 64 |
55 | #elif defined(__s390__) || defined(__s390x__) | ||
56 | #define BSD_LABELSECTOR 1 | ||
57 | #define BSD_LABELOFFSET 0 | ||
58 | #else | 56 | #else |
59 | #error unknown architecture | 57 | # error unknown architecture |
60 | #endif | 58 | #endif |
61 | 59 | ||
62 | #define BSD_BBSIZE 8192 /* size of boot area, with label */ | 60 | #define BSD_BBSIZE 8192 /* size of boot area, with label */ |