* Some patches for 2.1.34
@ 1997-04-15 0:46 Tim Waugh
0 siblings, 0 replies; 3+ messages in thread
From: Tim Waugh @ 1997-04-15 0:46 UTC (permalink / 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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Some patches for 2.1.34
[not found] <Pine.LNX.3.95.970415012123.363B-100000@cyberelk.elk.co.uk>
@ 1997-04-15 15:40 ` Tim Waugh
0 siblings, 0 replies; 3+ messages in thread
From: Tim Waugh @ 1997-04-15 15:40 UTC (permalink / raw)
On Tue, 15 Apr 1997, Tim Waugh wrote:
> Something also needs to be done to entry.S (it's referring to
> intr_count), but I'm not entirely sure what.
Okay, I've had a bit more of a play, and this works for me:
--- linux/arch/alpha/kernel/entry.S.orig Tue Apr 15 15:19:44 1997
+++ linux/arch/alpha/kernel/entry.S Tue Apr 15 16:38:00 1997
@@ -128,7 +128,2 @@
SAVE_ALL
-/* start atomic operation with respect to software interrupts */
- lda $0,intr_count
- ldl $1,0($0)
- addq $1,1,$1
- stl $1,0($0)
/* set up the arguments to the C interrupt handler */
@@ -137,6 +132,2 @@
/* ok, return */
- lda $0,intr_count
- ldl $1,0($0)
- subq $1,1,$1
- stl $1,0($0)
br $31,ret_from_sys_call
--
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Some patches for 2.1.34
[not found] <Pine.LNX.3.95.970415163846.1476B-100000@cyberelk.elk.co.uk>
@ 1997-04-15 16:02 ` Tim Waugh
0 siblings, 0 replies; 3+ messages in thread
From: Tim Waugh @ 1997-04-15 16:02 UTC (permalink / raw)
Something along these lines is needed as well if you want to compile
drivers/cdrom/cdrom.c:
--- linux/include/asm-alpha/errno.h.orig Tue Apr 15 16:53:58 1997
+++ linux/include/asm-alpha/errno.h Tue Apr 15 16:54:42 1997
@@ -137,3 +137,6 @@
#define ESTRPIPE 128 /* Streams pipe error */
+#define ENOMEDIUM 129 /* No medium found */
+#define EMEDIUMTYPE 130 /* Wrong medium type */
+
#endif
Tim.
*/
--
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1997-04-15 16:02 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-04-15 0:46 Some patches for 2.1.34 Tim Waugh
[not found] <Pine.LNX.3.95.970415012123.363B-100000@cyberelk.elk.co.uk>
1997-04-15 15:40 ` Tim Waugh
[not found] <Pine.LNX.3.95.970415163846.1476B-100000@cyberelk.elk.co.uk>
1997-04-15 16:02 ` Tim Waugh
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox