Linux MIPS Architecture development
 help / color / mirror / Atom feed
* how to include mips assembly in c code?
@ 2003-10-09  5:38 durai
  2003-10-09  7:54 ` Ralf Baechle
  2003-10-09  8:05 ` Matthew Dharm
  0 siblings, 2 replies; 5+ messages in thread
From: durai @ 2003-10-09  5:38 UTC (permalink / raw)
  To: mips

[-- Attachment #1: Type: text/plain, Size: 849 bytes --]

hello,
I am having the following assembly code and i wanted to call this function from a c code.
can anybody tell me how to include this code in a c program?

/******************************************************************************
*
* sysWbFlush - flush the write buffer
*
* This routine flushes the write buffers, making certain all
* subsequent memory writes have occurred.  It is used during critical periods
* only, e.g., after memory-mapped I/O register access.
*
* RETURNS: N/A

* sysWbFlush (void)

*/
        .ent    sysWbFlush
sysWbFlush:
        li      t0, K1BASE              /* load uncached address        */
        lw      t0, 0(t0)               /* read in order to flush       */
        j       ra                      /* return to caller             */
        .end    sysWbFlush


regards
durai

[-- Attachment #2: Type: text/html, Size: 2394 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2003-10-09 22:10 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-10-09  5:38 how to include mips assembly in c code? durai
2003-10-09  7:54 ` Ralf Baechle
2003-10-09  8:05 ` Matthew Dharm
2003-10-09 21:47   ` ilya
2003-10-09 22:09     ` Wolfgang Denk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox