Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Tim Waugh <tmw20@cam.ac.uk>
Subject: Some patches for 2.1.34
Date: Tue, 15 Apr 1997 01:46:17 +0100 (BST)	[thread overview]
Message-ID: <607aa7749067674c89270ae3b7e428fe.axp-list@archive.invalid> (raw)

Hi,

I don't know if these are all correct, but here they are anyway (the first
one just looks like a typo).  Something also needs to be done to entry.S
(it's referring to intr_count), but I'm not entirely sure what.

Tim.
*/

--- linux/include/asm-alpha/atomic.h.orig	Tue Apr 15 00:45:12 1997
+++ linux/include/asm-alpha/atomic.h	Tue Apr 15 00:45:13 1997
@@ -19,5 +19,5 @@
 
 #define atomic_read(v)		((v)->counter)
-#define atomic_set(v)		(((v)->counter) = i)
+#define atomic_set(v,i)		(((v)->counter) = i)
 
 /*
--- linux/include/asm-alpha/semaphore.h.orig	Tue Apr 15 00:52:48 1997
+++ linux/include/asm-alpha/semaphore.h	Tue Apr 15 01:07:54 1997
@@ -8,4 +8,5 @@
  */
 
+#include <asm/system.h>
 #include <asm/atomic.h>
 
@@ -24,4 +25,14 @@
 
 #define sema_init(sem, val)	atomic_set(&((sem)->count), val)
+
+static inline void wake_one_more(struct semaphore *sem)
+{
+        unsigned long flags;
+
+        save_flags(flags);
+        cli();
+        atomic_inc(&sem->waking);
+        restore_flags(flags);
+}
 
 static inline int waking_non_zero(struct semaphore *sem)
--- linux/arch/alpha/kernel/alpha_ksyms.c.orig	Tue Apr 15 02:13:12 1997
+++ linux/arch/alpha/kernel/alpha_ksyms.c	Tue Apr 15 02:13:30 1997
@@ -14,4 +14,5 @@
 #include <linux/in.h>
 #include <linux/in6.h>
+#include <linux/interrupt.h>
 
 #include <asm/io.h>
--- linux/arch/alpha/kernel/irq.c.orig	Tue Apr 15 02:38:03 1997
+++ linux/arch/alpha/kernel/irq.c	Tue Apr 15 02:38:05 1997
@@ -330,4 +330,5 @@
 {
 	struct irqaction * action;
+	int cpu = smp_processor_id();
 
 	if ((unsigned) irq > NR_IRQS) {

--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

             reply	other threads:[~1997-04-15  0:46 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-04-15  0:46 Tim Waugh [this message]
     [not found] <Pine.LNX.3.95.970415012123.363B-100000@cyberelk.elk.co.uk>
1997-04-15 15:40 ` Some patches for 2.1.34 Tim Waugh
     [not found] <Pine.LNX.3.95.970415163846.1476B-100000@cyberelk.elk.co.uk>
1997-04-15 16:02 ` Tim Waugh
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox