lkml.org 
[lkml]   [2008]   [Oct]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Looks broken to me: x86, cyrix: debug
On Sat, 11 Oct 2008, Alan Cox wrote:

> > +#define getCx86_old(reg) ({ outb((reg), 0x22); inb(0x23); })
>
> Doesn't expand to any kind of returned value.

Well, actually it returns the value of the inb() expression -- cf the
semantics of compound statements. The rest looks suspicious indeed.

Maciej


\
 
 \ /
  Last update: 2008-10-11 22:55    [W:0.122 / U:0.536 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site