software/libbase/id: update code (length is now fixed to 256)

This commit is contained in:
Florent Kermarrec 2019-07-06 17:18:34 +02:00
parent 282ae96354
commit 96f45bbd87
1 changed files with 2 additions and 5 deletions

View File

@ -8,12 +8,9 @@
void get_ident(char *ident)
{
#ifdef CSR_IDENTIFIER_MEM_BASE
int len, i;
len = MMPTR(CSR_IDENTIFIER_MEM_BASE);
for(i=0;i<len;i++)
int i;
for(i=0;i<256;i++)
ident[i] = MMPTR(CSR_IDENTIFIER_MEM_BASE + 4*i);
ident[i] = 0;
#else
ident[0] = 0;
#endif