summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sysinstall
diff options
context:
space:
mode:
authorkensmith <kensmith@FreeBSD.org>2008-12-14 06:40:04 +0000
committerkensmith <kensmith@FreeBSD.org>2008-12-14 06:40:04 +0000
commit3d479167c5e2fbfd86505a5c2aeedda62323cc7d (patch)
treeda6bb977f700119a51d5c4020347bd10a51daeed /usr.sbin/sysinstall
parentb49ff9470f7dbb22bdaf2559126968d5394d4c9f (diff)
downloadFreeBSD-src-3d479167c5e2fbfd86505a5c2aeedda62323cc7d.zip
FreeBSD-src-3d479167c5e2fbfd86505a5c2aeedda62323cc7d.tar.gz
Clean out the remaining alpha-isms.
Diffstat (limited to 'usr.sbin/sysinstall')
-rw-r--r--usr.sbin/sysinstall/cdrom.c4
-rw-r--r--usr.sbin/sysinstall/label.c23
-rw-r--r--usr.sbin/sysinstall/main.c2
-rw-r--r--usr.sbin/sysinstall/sysinstall.84
-rw-r--r--usr.sbin/sysinstall/sysinstall.h2
-rw-r--r--usr.sbin/sysinstall/system.c6
6 files changed, 7 insertions, 34 deletions
diff --git a/usr.sbin/sysinstall/cdrom.c b/usr.sbin/sysinstall/cdrom.c
index 7264c47..a5029ec 100644
--- a/usr.sbin/sysinstall/cdrom.c
+++ b/usr.sbin/sysinstall/cdrom.c
@@ -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")) {
diff --git a/usr.sbin/sysinstall/label.c b/usr.sbin/sysinstall/label.c
index a60c8dc..08690f6 100644
--- a/usr.sbin/sysinstall/label.c
+++ b/usr.sbin/sysinstall/label.c
@@ -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
@@ -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"))
diff --git a/usr.sbin/sysinstall/main.c b/usr.sbin/sysinstall/main.c
index abea76c..2920380 100644
--- a/usr.sbin/sysinstall/main.c
+++ b/usr.sbin/sysinstall/main.c
@@ -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"
diff --git a/usr.sbin/sysinstall/sysinstall.8 b/usr.sbin/sysinstall/sysinstall.8
index cb1de79..9bdcf7f 100644
--- a/usr.sbin/sysinstall/sysinstall.8
+++ b/usr.sbin/sysinstall/sysinstall.8
@@ -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
diff --git a/usr.sbin/sysinstall/sysinstall.h b/usr.sbin/sysinstall/sysinstall.h
index 107a2ac..b1dd5b9 100644
--- a/usr.sbin/sysinstall/sysinstall.h
+++ b/usr.sbin/sysinstall/sysinstall.h
@@ -52,7 +52,7 @@
/*** Defines ***/
-#if defined(__i386__) || defined(__alpha__) || defined(__amd64__)
+#if defined(__i386__) || defined(__amd64__)
#define WITH_SYSCONS
#define WITH_MICE
#endif
diff --git a/usr.sbin/sysinstall/system.c b/usr.sbin/sysinstall/system.c
index a5d8aa9..4ee6e4f 100644
--- a/usr.sbin/sysinstall/system.c
+++ b/usr.sbin/sysinstall/system.c
@@ -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
@@ -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);
OpenPOWER on IntegriCloud