Re: Yet another inline asm worry: mtsp() macro (and may be other)?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Jun 19, 2008 at 08:01:02PM +0000, Joel Soete wrote:
...
>> We could. But I thought there are cases were we might want to DMA to/from
>> user space directly and that's why Space ID is a parameter.
>
> Ok but it was a BUG if temporary space reg is not 0, so???

It was a BUG in 2.4 kernels since 2.4 didn't have the VM support
to do DMA to/from user space.

I thought 2.6 kernels could DMA to/from user space (related to Direct IO).

> btw system seems to boot too with asm volatile("mtsp 
> %%r0,%%sr1":::"memory")
> may be the cpp can catch in the mtsp(gr, cr) macro if gr==0 then I can use 
> this insn if not the original macro???

Yes. I like willy's proposed patch for this.

thanks,
grant
--
To unsubscribe from this list: send the line "unsubscribe linux-parisc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux SoC]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux