mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
software/libbase/id: update code (length is now fixed to 256)
This commit is contained in:
parent
282ae96354
commit
96f45bbd87
1 changed files with 2 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue