diff options
author | jkh <jkh@FreeBSD.org> | 1999-07-16 22:07:09 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1999-07-16 22:07:09 +0000 |
commit | c97b6ef1f6a31f79e1e767e63d1021d3ead85ffd (patch) | |
tree | 50bdf9d3c92c3ee6e74e8f13e3aea53f0ed269c1 /release/sysinstall | |
parent | 22b6c0cd79c01b257f69e8ece97344c15f826291 (diff) | |
download | FreeBSD-src-c97b6ef1f6a31f79e1e767e63d1021d3ead85ffd.zip FreeBSD-src-c97b6ef1f6a31f79e1e767e63d1021d3ead85ffd.tar.gz |
Add in a hack to turn off unaligned access warnings for alpha.
Submitted by: msmith
Diffstat (limited to 'release/sysinstall')
-rw-r--r-- | release/sysinstall/system.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/release/sysinstall/system.c b/release/sysinstall/system.c index f916555..2f618c9 100644 --- a/release/sysinstall/system.c +++ b/release/sysinstall/system.c @@ -4,7 +4,7 @@ * This is probably the last program in the `sysinstall' line - the next * generation being essentially a complete rewrite. * - * $Id: system.c,v 1.90 1999/02/14 21:26:29 jkh Exp $ + * $Id: system.c,v 1.91 1999/02/15 00:49:33 jkh Exp $ * * Jordan Hubbard * @@ -109,11 +109,15 @@ systemInitialize(int argc, char **argv) close(1); dup(0); close(2); dup(0); printf("%s running as init on %s\n", argv[0], OnVTY ? "vty0" : "serial console"); - i = ioctl(0, TIOCSCTTY, (char *)NULL); + ioctl(0, TIOCSCTTY, (char *)NULL); setlogin("root"); 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 } else { char hname[256]; |