Skip to content

Commit

Permalink
Clean out the remaining alpha-isms.
Browse files Browse the repository at this point in the history
  • Loading branch information
kensmith authored and kensmith committed Dec 14, 2008
1 parent b49ff94 commit 3d47916
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 34 deletions.
4 changes: 1 addition & 3 deletions usr.sbin/sysinstall/cdrom.c
Expand Up @@ -164,9 +164,7 @@ mediaInitCDROM(Device *dev)
}
if ((cp = property_find(cd_attr, "CD_MACHINE_ARCH")) != NULL) {
if (strcmp(cp, "any") &&
#ifdef __alpha__
strcmp(cp, "alpha")) {
#elif defined(PC98)
#if defined(PC98)
strcmp(cp, "pc98")) {
#elif defined(__sparc64__)
strcmp(cp, "sparc64")) {
Expand Down
23 changes: 1 addition & 22 deletions usr.sbin/sysinstall/label.c
Expand Up @@ -61,7 +61,7 @@
/*
* Minimum partition sizes
*/
#if defined(__alpha__) || defined(__ia64__) || defined(__sparc64__) || defined(__amd64__)
#if defined(__ia64__) || defined(__sparc64__) || defined(__amd64__)
#define ROOT_MIN_SIZE 128
#else
#define ROOT_MIN_SIZE 118
Expand Down Expand Up @@ -1094,27 +1094,6 @@ diskLabel(Device *dev)
break;
}

#ifdef __alpha__
/*
* SRM requires that the root partition is at the
* begining of the disk and cannot boot otherwise.
* Warn Alpha users if they are about to shoot themselves in
* the foot in this way.
*
* Since partitions may not start precisely at offset 0 we
* check for a "close to 0" instead. :-(
*/
if ((flags & CHUNK_IS_ROOT) && (tmp->offset > 1024)) {
msgConfirm("Your root partition `a' does not seem to be the first\n"
"partition. The Alpha's firmware can only boot from the\n"
"first partition. So it is unlikely that your current\n"
"disk layout will be bootable boot after installation.\n"
"\n"
"Please allocate the root partition before allocating\n"
"any others.\n");
}
#endif /* alpha */

tmp->private_data = p;
tmp->private_free = safe_free;
if (variable_cmp(DISK_LABELLED, "written"))
Expand Down
2 changes: 1 addition & 1 deletion usr.sbin/sysinstall/main.c
Expand Up @@ -198,7 +198,7 @@ main(int argc, char **argv)
choice = scroll = curr = max = 0;
dmenuOpen(&MenuInitial, &choice, &scroll, &curr, &max, TRUE);
if (getpid() != 1
#if defined(__alpha__) || defined(__sparc64__)
#if defined(__sparc64__)
|| !msgNoYes("Are you sure you wish to exit? The system will halt.")
#else
|| !msgNoYes("Are you sure you wish to exit? The system will reboot\n"
Expand Down
4 changes: 2 additions & 2 deletions usr.sbin/sysinstall/sysinstall.8
Expand Up @@ -878,9 +878,9 @@ This property is normally only used with
.Fx
products that contain
CDs for different architectures, to provide better error messages if
users try to install Alpha packages on an i386 machine.
users try to install packages built for the wrong architecture.
For example,
.Dq Li "CD_MACHINE_ARCH = alpha" .
.Dq Li "CD_MACHINE_ARCH = amd64" .
.It Va CD_VOLUME
In a multi-volume collection (such as the
.Fx
Expand Down
2 changes: 1 addition & 1 deletion usr.sbin/sysinstall/sysinstall.h
Expand Up @@ -52,7 +52,7 @@

/*** Defines ***/

#if defined(__i386__) || defined(__alpha__) || defined(__amd64__)
#if defined(__i386__) || defined(__amd64__)
#define WITH_SYSCONS
#define WITH_MICE
#endif
Expand Down
6 changes: 1 addition & 5 deletions usr.sbin/sysinstall/system.c
Expand Up @@ -190,10 +190,6 @@ systemInitialize(int argc, char **argv)
setenv("PATH", "/stand:/bin:/sbin:/usr/sbin:/usr/bin:/mnt/bin:/mnt/sbin:/mnt/usr/sbin:/mnt/usr/bin:/usr/X11R6/bin", 1);
setbuf(stdin, 0);
setbuf(stderr, 0);
#ifdef __alpha__
i = 0;
sysctlbyname("machdep.unaligned_print", NULL, 0, &i, sizeof(i));
#endif
#if 0
signal(SIGCHLD, reap_children);
#endif
Expand Down Expand Up @@ -261,7 +257,7 @@ systemShutdown(int status)
if (RunningAsInit) {
/* Put the console back */
ioctl(0, VT_ACTIVATE, 2);
#if defined(__alpha__) || defined(__sparc64__)
#if defined(__sparc64__)
reboot(RB_HALT);
#else
reboot(RB_AUTOBOOT);
Expand Down

0 comments on commit 3d47916

Please sign in to comment.