m******l 发帖数: 613 | 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! | m******l 发帖数: 613 | 2 the most ft thing is
I have declare a interrupt[size] there
but it doesn't work even if I redefine it in my main() in the C file
That's too bad...
【在 m******l 的大作中提到】 : 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
|
|