soc/software/libbase: fix get_ident

This commit is contained in:
Florent Kermarrec 2017-06-28 18:10:56 +02:00
parent e61d9eabc6
commit 4d664730fe
1 changed files with 1 additions and 1 deletions

View File

@ -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;