FreeBSD Bugzilla – Attachment 14382 Details for
Bug 27008
kernel function sysbeep(xxx, 0) does produce sound
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.34 KB, created by
Alex Kapranoff
on 2001-05-01 12:40:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Alex Kapranoff
Created:
2001-05-01 12:40:01 UTC
Size:
1.34 KB
patch
obsolete
>diff -ur /sys/alpha/alpha/clock.c ./alpha/alpha/clock.c >--- /sys/alpha/alpha/clock.c Sat Apr 28 16:55:03 2001 >+++ ./alpha/alpha/clock.c Tue May 1 15:12:06 2001 >@@ -636,6 +636,8 @@ > int > sysbeep(int pitch, int period) > { >+ if (!period) >+ return (0); > > mtx_lock_spin(&clock_lock); > >diff -ur /sys/i386/isa/clock.c ./i386/isa/clock.c >--- /sys/i386/isa/clock.c Sat Apr 28 05:37:44 2001 >+++ ./i386/isa/clock.c Tue May 1 14:04:55 2001 >@@ -524,7 +524,12 @@ > int > sysbeep(int pitch, int period) > { >- int x = splclock(); >+ int x; >+ >+ if (!period) >+ return (0); >+ >+ x = splclock(); > > if (acquire_timer2(TIMER_SQWAVE|TIMER_16BIT)) > if (!beeping) { >diff -ur /sys/ia64/ia64/clock.c ./ia64/ia64/clock.c >--- /sys/ia64/ia64/clock.c Thu Dec 14 22:10:21 2000 >+++ ./ia64/ia64/clock.c Tue May 1 15:12:36 2001 >@@ -471,7 +471,12 @@ > int > sysbeep(int pitch, int period) > { >- int x = splhigh(); >+ int x; >+ >+ if (!period) >+ return (0); >+ >+ x = splhigh(); > > if (acquire_timer2(TIMER_SQWAVE|TIMER_16BIT)) > if (!beeping) { >diff -ur /sys/pc98/pc98/clock.c ./pc98/pc98/clock.c >--- /sys/pc98/pc98/clock.c Sun Apr 1 12:06:08 2001 >+++ ./pc98/pc98/clock.c Tue May 1 15:13:01 2001 >@@ -577,7 +577,12 @@ > int > sysbeep(int pitch, int period) > { >- int x = splclock(); >+ int x; >+ >+ if (!period) >+ return (0); >+ >+ x = splclock(); > > #ifdef PC98 > if (acquire_timer1(TIMER_SQWAVE|TIMER_16BIT))
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 27008
: 14382