summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>2000-10-04 18:58:46 +0000
committerbrian <brian@FreeBSD.org>2000-10-04 18:58:46 +0000
commit12f7c0812bc9307092b240ca79bd7b3670345cd6 (patch)
treea074e986be87ca2bbf5cfda73da3f9e780e2ea64 /etc
parent5135c38a27d3cf791a98f149db31afd9e1a5294a (diff)
downloadFreeBSD-src-12f7c0812bc9307092b240ca79bd7b3670345cd6.zip
FreeBSD-src-12f7c0812bc9307092b240ca79bd7b3670345cd6.tar.gz
Add a unaligned_print option (alpha only)
Document osf1_enable Submitted by: Eric D. Futch <efutch@nyct.net> PR: 21649
Diffstat (limited to 'etc')
-rw-r--r--etc/defaults/rc.conf1
-rw-r--r--etc/etc.alpha/rc.alpha8
2 files changed, 9 insertions, 0 deletions
diff --git a/etc/defaults/rc.conf b/etc/defaults/rc.conf
index abe2390..40e621a 100644
--- a/etc/defaults/rc.conf
+++ b/etc/defaults/rc.conf
@@ -296,6 +296,7 @@ kern_securelevel_enable="NO" # kernel security level (see init(8)),
kern_securelevel="-1" # range: -1..3 ; `-1' is the most insecure
update_motd="YES" # update version info in /etc/motd (or NO)
start_vinum="" # set to YES to start vinum
+unaligned_print="YES" # print unaligned access warnings on the alpha (or NO).
entropy_file="/var/db/entropy"
# Set to NO to disable caching entropy through reboots
diff --git a/etc/etc.alpha/rc.alpha b/etc/etc.alpha/rc.alpha
index 882197a..9be56e3 100644
--- a/etc/etc.alpha/rc.alpha
+++ b/etc/etc.alpha/rc.alpha
@@ -165,3 +165,11 @@ if [ -n "${allscreens_flags}" ] ; then
fi
echo '.'
+
+# knob for wether or not we should print out unaligned access warnings
+#
+case ${unaligned_print} in
+[Nn][Oo])
+ sysctl -w machdep.unaligned_print=0
+ ;;
+esac
OpenPOWER on IntegriCloud