[Arm-netbook] compiling wireless drivers
sbocahu at bearstech.com
sbocahu at bearstech.com
Wed Mar 31 14:26:06 BST 2010
> I've not got this far yet. The build I set off overnight still failed
> because I had CFLAGS set to -O2 and a label defined in some of the
inline
> assembler was being duplicated by inlining. I've attached what I think
> is a correct patch based on googling the problem. It's not important
> (I didn't intend to build with -O2) but may help if you ever need to
> help cleanup the smartq patches to get them submitted. There was also a
> spurious backslash in there.
>
> Oliver
>
> diff --git a/drivers/mtd/onenand/s3c_onenand.c
> b/drivers/mtd/onenand/s3c_onenand.c
> index 3de2f14..bd7ad68 100644
> --- a/drivers/mtd/onenand/s3c_onenand.c
> +++ b/drivers/mtd/onenand/s3c_onenand.c
> @@ -174,11 +174,11 @@ static void onenand_read_burst(void *dest, const
> void *src, size_t len)
> __asm__ __volatile__(
> " stmdb r13!, {r0-r3,r9-r12}\n"
> " mov r2, %0\n"
> - "read_page:\n"
> + "0:\n"
> " ldmia r1, {r9-r12}\n"
> " stmia r0!, {r9-r12}\n"
> " subs r2, r2, #0x1\n"
> - " bne read_page\n"
> + " bne 0b\n"
> " ldmia r13!, {r0-r3,r9-r12}\n"
> ::"r" (count));
> }
This is the problem I've talked about on IRC and the exact smae patch as I
did as well :)
More information about the Arm-netbook
mailing list