* Can I use the system call provided by uboot in an assembly language program as in ppcbug?
@ 2005-12-26 12:43 Zhang Xin-W22390
2005-12-26 21:19 ` Wolfgang Denk
0 siblings, 1 reply; 2+ messages in thread
From: Zhang Xin-W22390 @ 2005-12-26 12:43 UTC (permalink / raw)
To: linuxppc-embedded
[-- Attachment #1: Type: text/plain, Size: 494 bytes --]
Hello,
I want to call some system calls to do input/ouput in assembly language
program, and does uboot provide such syscall? As in PPCBUG, I can
program the following code:
li r10,0x0022
sc
to do an output to console.
I know I can program a standalone application using printf() to achieve
this function, as illustrated by the example uboot provides. Instead, I
want to use assembly language.
Thanks and Regards.
Zhang Xin
MOTO Networks CDC
Phone: 86 10 58830720
[-- Attachment #2: Type: text/html, Size: 1579 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Can I use the system call provided by uboot in an assembly language program as in ppcbug?
2005-12-26 12:43 Can I use the system call provided by uboot in an assembly language program as in ppcbug? Zhang Xin-W22390
@ 2005-12-26 21:19 ` Wolfgang Denk
0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Denk @ 2005-12-26 21:19 UTC (permalink / raw)
To: Zhang Xin-W22390; +Cc: linuxppc-embedded
In message <917BB953409D9D4E86FDD8AE553CA873214B24@zmy16exm62.ds.mot.com> you wrote:
>
> I want to call some system calls to do input/ouput in assembly language
> program, and does uboot provide such syscall? As in PPCBUG, I can
If you are running in the U-Boot environment, then you can use
standard C programs; read about "standalone applications" - but this
is off topic here; please read the docs and post any remaining
questions on the u-boot-users mailing list.
Once you started the Linux kernel, then all of U-Boot is gone and
dead and there is no way to call any U-Boot code any more - except by
resetting the board.
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de
Of course there's no reason for it, it's just our policy.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-12-26 21:19 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-26 12:43 Can I use the system call provided by uboot in an assembly language program as in ppcbug? Zhang Xin-W22390
2005-12-26 21:19 ` Wolfgang Denk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).