On 05.03.2009 19:07, Carl-Daniel Hailfinger wrote: > On 05.03.2009 15:45, FENG Yu Ning wrote: > >> Carl-Daniel Hailfinger wrote: >> >> >>> I used the semantic patcher Coccinelle to create this patch. >>> >>> >> Acked-by: FENG Yu Ning <[email protected]> >> >> > > Thanks! > > I'll commit shortly. Below is the updated patch which performs the > conversion completely. And the semantic patch shrunk quite a bit. > @@ > expression a; > typedef uint8_t; > volatile uint8_t *b; > @@ > - *(b) = (a); > + writeb(a, b); > @@ > volatile uint8_t *b; > @@ > - *(b) > + readb(b) > @@ > type T; > T b; > @@ > ( > readb > | > writeb > ) > (..., > - (T) > - (b) > + b > ) > > In contrast to a sed script, the semantic patch performs type checking > before converting anything. > > Signed-off-by: Carl-Daniel Hailfinger <[email protected]> >
Committed in r3971. Regards, Carl-Daniel -- http://www.hailfinger.org/ -- coreboot mailing list: [email protected] http://www.coreboot.org/mailman/listinfo/coreboot

