Bug 21649

Summary: [Patch] rc.conf knob for unaligned access warnings on Alpa
Product: Base System Reporter: efutch <efutch>
Component: confAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.1-STABLE   
Hardware: Any   
OS: Any   

Description efutch 2000-09-29 23:10:01 UTC
Here is a patch to provide users with a rc.conf knob to easily turn on/off the unaligned access warnings.  These can be kind of annoying at times.  Comments, questions, suggestions welcome.

Fix: 

Try the patch set found at:

http://quake.nyct.net/~efutch/FreeBSD/patches/conf/unaligned.patch
How-To-Repeat: Many 3rd party programs that run on the Alpha will cause unaligned access warnings.
Comment 1 Brian Somers freebsd_committer freebsd_triage 2000-10-02 22:58:07 UTC
State Changed
From-To: open->analyzed

The patch lacks an addition to rc.conf.5 - any chance of an update ? 


Comment 2 Brian Somers freebsd_committer freebsd_triage 2000-10-02 22:58:07 UTC
Responsible Changed
From-To: freebsd-bugs->brian

I'll do this
Comment 3 efutch 2000-10-04 15:43:46 UTC
Here's the patch for rc.conf.5.  While I was in there I also noticed that
that osf1_enable is not discussed.  Also included is a patch to add
osf1_enable to rc.conf.5.  I hope I got this right, I'm not good with man
pages :)


Patch to add unaligned_print to rc.conf.5:

Index: src/share/man/man5/rc.conf.5
===================================================================
RCS file: /home/ncvs/src/share/man/man5/rc.conf.5,v
retrieving revision 1.64.2.7
diff -u -r1.64.2.7 rc.conf.5
--- src/share/man/man5/rc.conf.5       2000/08/18 10:27:50     1.64.2.7
+++ src/share/man/man5/rc.conf.5       2000/10/04 14:35:41
@@ -1212,6 +1217,10 @@
 these are the flags to pass to the
 .Xr sshd 8
 daemon.
+.It Ar unaligned_print
+(bool) If set to  
+.Ar NO
+then unaligned access warnings will not be printed. (alpha)
 .Sh FILES
 .Bl -tag -width /etc/defaults/rc.conf -compact
 .It Pa /etc/defaults/rc.conf


Patch to add osf1_enable to rc.conf.5:

Index: src/share/man/man5/rc.conf.5
===================================================================
RCS file: /home/ncvs/src/share/man/man5/rc.conf.5,v
retrieving revision 1.64.2.7
diff -u -r1.64.2.7 rc.conf.5
--- src/share/man/man5/rc.conf.5       2000/08/18 10:27:50     1.64.2.7
+++ src/share/man/man5/rc.conf.5       2000/10/04 14:35:41
@@ -1157,6 +1157,11 @@
 .Ar YES
 if you wish to enable Linux/ELF binary emulation at system initial
 boot time.
+.It Ar osf1_enable
+(bool) Set to
+.Ar YES
+if you wish to enable OSF/1 (Digital UNIX) binary emulation at system
+initial boot time. (alpha)
 .It Ar rand_irqs
 (str) Set to the list of IRQs to monitor for random number creation
 (see the man page for


-- 
Eric Futch              New York Connect.Net, Ltd.
efutch@nyct.net         Technical Support Staff
http://www.nyct.net     (212) 293-2620
"Bringing New York The Internet Access It Deserves"
KNYC: 04-Oct-00 09:51 EDT: 64.9 F (18.3 C), overcast, humidity 70%
Comment 4 Brian Somers freebsd_committer freebsd_triage 2000-10-04 19:59:35 UTC
State Changed
From-To: analyzed->feedback

Put this in ``feedback'' state to indicate that it's due an MFC. 
I'll MFC in 3 weeks if there are no problems.
Comment 5 Brian Somers freebsd_committer freebsd_triage 2000-11-06 21:10:14 UTC
Responsible Changed
From-To: brian->freebsd-bugs

I don't wish to MFC this as it's a new feature rather than a bug fix.
Comment 6 jkh freebsd_committer freebsd_triage 2001-03-13 01:12:38 UTC
State Changed
From-To: feedback->closed

This has been fixed in both -current and -stable