lkml.org 
[lkml]   [1999]   [Aug]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: pcmcia 11-Aug-99 / gcc 2.95
Date
From
Bernhard Rosenkraenzer <bero@mandrakesoft.com> said:
> pcmcia 11-Aug-99 doesn't compile with gcc 2.95 because of some broken asm
> constructs.
>
> __asm__ __volatile__
> ("lcall %%cs:" SYMBOL_NAME_STR(pnp_bios_callpoint) "\n\t"
> :"=a"(status)
> ^^^^
> :"a"(PNP_GET_NUM_SYS_DEV_NODES),
> ^^^
> "b"((2 << 16) | PNP_TS1),
> "c"((PNP_DS << 16) | PNP_TS1)
> :"ax", "memory");
> ^^^^
>
> I know the usual fix for this, but I'm not sure how to do fix it for a
> BIOS call...

It should work exactly the same here, as you are just messing with
arguments and explaining to gcc what gets changed by the asm() behind it's
back. The contents of the asm() is just a string that gets pasted into the
.s output at the appropiate point(s).

Hope this helps a bit.
--
Horst von Brand vonbrand@sleipnir.valparaiso.cl
Casilla 9G, Viña del Mar, Chile +56 32 672616

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

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