[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <87iqzu8r2q.fsf@basil.nowhere.org>
Date: 10 Mar 2008 17:46:37 +0100
From: Andi Kleen <andi@...stfloor.org>
To: Stephan Diestelhorst <langer_mann@....de>
Cc: Ingo Molnar <mingo@...e.hu>, davej@...emonkey.org.uk,
cpufreq@...ts.linux.org.uk, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 1/1] Speedfreq-SMI call clobbers ECX
Stephan Diestelhorst <langer_mann@....de> writes:
>
> New attempt with full clobbers, note that I deliberatly did not change
> the order of the output registers. Real output operands still preceede
> outputs used for potential clobbering.
>
> I'm not too sure about the EBP push/pop frame, but as folks pointed
> out already, we should not trust the SMI code too much.
Be careful -- older gcc versions tend to abort for inline asm
that clobbers too many registers. Especially when the register
is already used (like ebp in a frame pointer enabled kernel)
Make sure it at least works on the oldest supported gcc version
(gcc 3.2) and with frame pointer on.
For asms with so many clobbers explicit push/pop is usually safer.
-Andi
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists