Messages in this thread | | | Subject | Re: pcmcia 11-Aug-99 / gcc 2.95 | Date | Sun, 15 Aug 1999 22:10:05 -0400 | From | Horst von Brand <> |
| |
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/
| |