silly style fixes
This commit is contained in:
@@ -43,10 +43,13 @@
|
|||||||
|
|
||||||
#define BSD_LINUX_BOOTDIR "/usr/ucb/mdec"
|
#define BSD_LINUX_BOOTDIR "/usr/ucb/mdec"
|
||||||
|
|
||||||
#if defined (i386) || defined (__sparc__) || defined (__arm__) || defined (__m68k__) || defined (__mips__) || defined (__s390__) || defined (__sh__) || defined(__x86_64__)
|
#if defined(i386) || defined(__sparc__) || defined(__arm__) \
|
||||||
|
|| defined(__m68k__) || defined(__mips__) || defined(__s390__) \
|
||||||
|
|| defined(__sh__) || defined(__x86_64__)
|
||||||
#define BSD_LABELSECTOR 1
|
#define BSD_LABELSECTOR 1
|
||||||
#define BSD_LABELOFFSET 0
|
#define BSD_LABELOFFSET 0
|
||||||
#elif defined (__alpha__) || defined (__powerpc__) || defined (__ia64__) || defined (__hppa__)
|
#elif defined(__alpha__) || defined(__powerpc__) || defined(__ia64__) \
|
||||||
|
|| defined(__hppa__)
|
||||||
#define BSD_LABELSECTOR 0
|
#define BSD_LABELSECTOR 0
|
||||||
#define BSD_LABELOFFSET 64
|
#define BSD_LABELOFFSET 64
|
||||||
#elif defined(__s390__) || defined(__s390x__)
|
#elif defined(__s390__) || defined(__s390x__)
|
||||||
@@ -887,13 +890,13 @@ xbsd_initlabel(struct partition *p, struct xbsd_disklabel *d)
|
|||||||
|
|
||||||
#if !defined(__alpha__)
|
#if !defined(__alpha__)
|
||||||
d->d_npartitions = 4;
|
d->d_npartitions = 4;
|
||||||
pp = &d->d_partitions[2]; /* Partition C should be
|
pp = &d->d_partitions[2]; /* Partition C should be NetBSD partition */
|
||||||
the NetBSD partition */
|
|
||||||
pp->p_offset = get_start_sect(p);
|
pp->p_offset = get_start_sect(p);
|
||||||
pp->p_size = get_nr_sects(p);
|
pp->p_size = get_nr_sects(p);
|
||||||
pp->p_fstype = BSD_FS_UNUSED;
|
pp->p_fstype = BSD_FS_UNUSED;
|
||||||
pp = &d->d_partitions[3]; /* Partition D should be
|
pp = &d->d_partitions[3]; /* Partition D should be whole disk */
|
||||||
the whole disk */
|
|
||||||
pp->p_offset = 0;
|
pp->p_offset = 0;
|
||||||
pp->p_size = d->d_secperunit;
|
pp->p_size = d->d_secperunit;
|
||||||
pp->p_fstype = BSD_FS_UNUSED;
|
pp->p_fstype = BSD_FS_UNUSED;
|
||||||
@@ -1026,10 +1029,6 @@ xbsd_link_part(void)
|
|||||||
|
|
||||||
#if defined(__alpha__)
|
#if defined(__alpha__)
|
||||||
|
|
||||||
#if !defined(__GLIBC__)
|
|
||||||
typedef unsigned long long uint64_t;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
alpha_bootblock_checksum(char *boot)
|
alpha_bootblock_checksum(char *boot)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user