[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [microblaze-uclinux] Can I use assembly language code in uClinux
Kunal Kishore wrote:
> Hi all,
> I want to interface some digital hardware like UART with MicroBlaze
> processor. The hardware is to be written in VHDL by me and will be
> downloaded on as an IP core using Xilinx EDK. But the problem is the
> right software. I don't have enough expertise in c programming. So I
> want to write an assembly language code using MicroBlaze instruction
> set and compile with other c programs of the uClinux dist to build the
> image.
>
> 1) Is that possible ? If yes then can anyone suggest HOW ? Can the
> program be compiled by mb-gcc compiler like any other c program ?
>
> 2) Will it be safe as I may end up overwriting the register which is
> being used by kernel ?
>
> Reply please !
> Thanx in advance.
>
> Kunal Kishore
Yes, you can do this. But it will probably be much easier to learn
basic C. If you are looking to call your code from c code then it will
need to follow the MB C calling conventions for argument passing return
values and register use - I think these are somewhere on xilinx's web
site. If you are looking for it to be a uClinux driver then it has to
follow Linux driver guidlenes and those will be documented for C you
will have to work out how to interface with them in assembler - a task
that generally requires a hig level of knowledge of C and Assembler.
--
Dave Lynch DLA Systems
Software Development: Embedded Linux
717.627.3770 dhlii@xxxxxxxxxx http://www.dlasys.net
fax: 1.253.369.9244 Cell: 1.717.587.7774
Over 25 years' experience in platforms, languages, and technologies too
numerous to list.
"Any intelligent fool can make things bigger and more complex... It
takes a touch of genius - and a lot of courage to move in the opposite
direction."
Albert Einstein
___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/