lkml.org 
[lkml]   [1996]   [Oct]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: sound
> 
> Hi, I try to compile kernel 2.1.5 (gcc-2.7.2,libc.so.5.3.12) with the last
> driver ossfree37-beta4-linux, but I have the following message:
> patmgr.c: in function 'pmgr_read':
> patmgr.c:119: fixed or forbidden registerwas spilled.
> This may be due to a compiler bug or to impossible asm statment or clauses.
> .....
> Can someone tell me about this?

This patch came straight from Hannu (I think). Apply it only to
ossfree-37-beta4-linux, not earlier versions:

*** patmgr.c.old Mon Oct 21 20:29:22 1996
--- patmgr.c Mon Oct 21 20:30:23 1996
***************
*** 104,110 ****

if (mbox[dev] && msg_direction[dev] == A_TO_S)
{
! copy_to_user (&(buf)[0], (char *) mbox[dev], count);
msg_direction[dev] = 0;
ok = 1;
}
--- 104,111 ----

if (mbox[dev] && msg_direction[dev] == A_TO_S)
{
! char *tmp = (char *) mbox[dev];
! copy_to_user (&(buf)[0], tmp, count);
msg_direction[dev] = 0;
ok = 1;
}


--
Version: 3.12
GCS/M/L d- s-:+ a--- C+++(++)>$ UL+(++)>++++$ P+++ L+++>++++$ E++ W-(--)
N++ o-- K-- w--- O- M-- V-- PS+++? PE Y+ PGP-- t+* 5- X R tv--? b+>+++ DI
D--- G e-(*)>++++ h r++>+++ y?

\
 
 \ /
  Last update: 2005-03-22 13:38    [W:0.038 / U:0.104 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site