linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Remove silly beep macro from pgtable.h
@ 2001-05-15 16:45 Jeff Golds
  2001-05-15 17:36 ` Mike Galbraith
  0 siblings, 1 reply; 4+ messages in thread
From: Jeff Golds @ 2001-05-15 16:45 UTC (permalink / raw)
  To: linux-kernel

Hi folks,

Found this bit of unused code in the i386 and sh architectures.  As it's not being used, let's get rid of it.  Also, pgtable.h seems to be an odd place for this.

-Jeff

diff -u -r linux-2.4.4.pure/include/asm-i386/pgtable.h linux-2.4.4/include/asm-i386/pgtable.h
--- linux-2.4.4.pure/include/asm-i386/pgtable.h Fri Apr 27 15:48:21 2001
+++ linux-2.4.4/include/asm-i386/pgtable.h      Tue May 15 09:12:24 2001
@@ -110,8 +110,6 @@
 #endif
 #endif

-#define __beep() asm("movb $0x3,%al; outb %al,$0x61")
-
 #define PMD_SIZE       (1UL << PMD_SHIFT)
 #define PMD_MASK       (~(PMD_SIZE-1))
 #define PGDIR_SIZE     (1UL << PGDIR_SHIFT)
diff -u -r linux-2.4.4.pure/include/asm-sh/pgtable.h linux-2.4.4/include/asm-sh/pgtable.h
--- linux-2.4.4.pure/include/asm-sh/pgtable.h   Wed Apr 11 21:24:52 2001
+++ linux-2.4.4/include/asm-sh/pgtable.h        Tue May 15 09:35:29 2001
@@ -72,8 +72,6 @@

 #include <asm/pgtable-2level.h>

-#define __beep() asm("")
-
 #define PMD_SIZE       (1UL << PMD_SHIFT)
 #define PMD_MASK       (~(PMD_SIZE-1))
 #define PGDIR_SIZE     (1UL << PGDIR_SHIFT)

-- 
Jeff Golds
jgolds@resilience.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] Remove silly beep macro from pgtable.h
  2001-05-15 16:45 [PATCH] Remove silly beep macro from pgtable.h Jeff Golds
@ 2001-05-15 17:36 ` Mike Galbraith
  2001-05-15 18:57   ` Jonathan Lundell
  0 siblings, 1 reply; 4+ messages in thread
From: Mike Galbraith @ 2001-05-15 17:36 UTC (permalink / raw)
  To: Jeff Golds; +Cc: linux-kernel

On Tue, 15 May 2001, Jeff Golds wrote:

> Hi folks,
>
> Found this bit of unused code in the i386 and sh architectures.  As it's not being used, let's get rid of it.  Also, pgtable.h seems to be an odd place for this.

I'd leave it.. folks with early boot troubles might find it useful.

	-Mike


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] Remove silly beep macro from pgtable.h
  2001-05-15 17:36 ` Mike Galbraith
@ 2001-05-15 18:57   ` Jonathan Lundell
  2001-05-16  6:15     ` Mike Galbraith
  0 siblings, 1 reply; 4+ messages in thread
From: Jonathan Lundell @ 2001-05-15 18:57 UTC (permalink / raw)
  To: linux-kernel

At 7:36 PM +0200 2001-05-15, Mike Galbraith wrote:
>On Tue, 15 May 2001, Jeff Golds wrote:
>
>>  Hi folks,
>>
>>  Found this bit of unused code in the i386 and sh architectures. 
>>As it's not being used, let's get rid of it.  Also, pgtable.h seems 
>>to be an odd place for this.
>
>I'd leave it.. folks with early boot troubles might find it useful.
>
>	-Mike

Consider small rant about literal IO references to magic locations 
hereby ranted. Especially in header files completely unrelated to the 
IO function in question.

-#define __beep() asm("movb $0x3,%al; outb %al,$0x61")

Let's please not assume that every i386 implementation has a full set 
of legacy PC IO hardware.
-- 
/Jonathan Lundell.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] Remove silly beep macro from pgtable.h
  2001-05-15 18:57   ` Jonathan Lundell
@ 2001-05-16  6:15     ` Mike Galbraith
  0 siblings, 0 replies; 4+ messages in thread
From: Mike Galbraith @ 2001-05-16  6:15 UTC (permalink / raw)
  To: linux-kernel

On Tue, 15 May 2001, Jonathan Lundell wrote:

> At 7:36 PM +0200 2001-05-15, Mike Galbraith wrote:
> >On Tue, 15 May 2001, Jeff Golds wrote:
> >
> >>  Hi folks,
> >>
> >>  Found this bit of unused code in the i386 and sh architectures.
> >>As it's not being used, let's get rid of it.  Also, pgtable.h seems
> >>to be an odd place for this.
> >
> >I'd leave it.. folks with early boot troubles might find it useful.
> >
> >	-Mike
>
> Consider small rant about literal IO references to magic locations
> hereby ranted. Especially in header files completely unrelated to the
> IO function in question.
>
> -#define __beep() asm("movb $0x3,%al; outb %al,$0x61")
>
> Let's please not assume that every i386 implementation has a full set
> of legacy PC IO hardware.

Is there a generic form of hello() that could be tucked away somewhere?

	-Mike


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2001-05-16  6:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-05-15 16:45 [PATCH] Remove silly beep macro from pgtable.h Jeff Golds
2001-05-15 17:36 ` Mike Galbraith
2001-05-15 18:57   ` Jonathan Lundell
2001-05-16  6:15     ` Mike Galbraith

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).