View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0004870 | UBoot | U-Boot | public | 2021-10-04 15:42 | 2021-10-05 10:42 |
Reporter | derksen | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | resolved | Resolution | fixed | ||
Target Version | fsimx8mm-Y2021.04 | Fixed in Version | fsimx8mm-Y2021.04 | ||
Summary | 0004870: Also use memalign_simple() in SPL, not only malloc_simple() | ||||
Description | Also use memalign_simple() in SPL, not only malloc_simple() In the first part of SPL, when no RAM is available, a simple version for a malloc-pool can be used, that can only allocate, but not de-allocate. This actually worked for calls of malloc(), but some device drivers also call memalign(), and in this case still the regular function was called, which failed, because the regular malloc pool needs RAM to work. Insert a short check to the regular memalign() function so that memalign_simple() is called if the regular malloc-pool is not available yet. This is now similar to malloc(). | ||||
Forum Link | |||||