extern to call assembly# Unix - 噫吁兮,危乎高哉
m*l
1 楼
I have a urgent question
I have defined some global variables in my s file(SPARC assembly)
boot.s (projects in OS)
.global mbr_blocks
mbr_blocks .word 0
...
...
in my C file , I wanna use such variables
using
extern int mbr_blocks to define it at the beginning of the cboot.c
but the error say"mbr_blocks undeclared"
Is there any suggestion of what's going on.
It is just urgent cause this is due tomorrow.
Thank you all very much!
I have defined some global variables in my s file(SPARC assembly)
boot.s (projects in OS)
.global mbr_blocks
mbr_blocks .word 0
...
...
in my C file , I wanna use such variables
using
extern int mbr_blocks to define it at the beginning of the cboot.c
but the error say"mbr_blocks undeclared"
Is there any suggestion of what's going on.
It is just urgent cause this is due tomorrow.
Thank you all very much!