soc/software/libbase: fix get_ident
This commit is contained in:
parent
e61d9eabc6
commit
4d664730fe
|
@ -12,7 +12,7 @@ void get_ident(char *ident)
|
|||
|
||||
len = MMPTR(CSR_IDENTIFIER_MEM_BASE);
|
||||
for(i=0;i<len;i++)
|
||||
ident[i] = MMPTR(CSR_IDENTIFIER_MEM_BASE + 4 + i*4);
|
||||
ident[i] = MMPTR(CSR_IDENTIFIER_MEM_BASE + 4*i);
|
||||
ident[i] = 0;
|
||||
#else
|
||||
ident[0] = 0;
|
||||
|
|
Loading…
Reference in New Issue