how to include mips assembly in c code?

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

 



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

[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux