Skip to content

Commit

Permalink
Fix boot failure on Raspberry Pi 4
Browse files Browse the repository at this point in the history
  • Loading branch information
dwhinham committed Jan 3, 2021
1 parent 216130c commit dbf49a2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion CHANGELOG.md
Expand Up @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.8.1] - 2021-01-03

### Fixed

- Boot failure on Raspberry Pi 4 due to inability to allocate heap.

## [0.8.0] - 2021-01-03

### Added
Expand Down Expand Up @@ -221,7 +227,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- Initial version.

[unreleased]: https://github.com/dwhinham/mt32-pi/compare/v0.8.0...HEAD
[unreleased]: https://github.com/dwhinham/mt32-pi/compare/v0.8.1...HEAD
[0.8.1]: https://github.com/dwhinham/mt32-pi/compare/v0.8.0..v0.8.1
[0.8.0]: https://github.com/dwhinham/mt32-pi/compare/v0.7.1..v0.8.0
[0.7.1]: https://github.com/dwhinham/mt32-pi/compare/v0.7.0..v0.7.1
[0.7.0]: https://github.com/dwhinham/mt32-pi/compare/v0.6.2..v0.7.0
Expand Down
2 changes: 1 addition & 1 deletion src/zoneallocator.cpp
Expand Up @@ -54,7 +54,7 @@ bool CZoneAllocator::Initialize()

#if RASPPI >= 4
// Allocate all of the remaining HIGH region
m_nHeapSize = CMemorySystem::Get()->GetHeapFreeSpace(HEAP_HIGH);
m_nHeapSize = CMemorySystem::Get()->GetHeapFreeSpace(HEAP_HIGH) - sizeof(THeapBlockHeader);
m_pHeap = CMemorySystem::Get()->HeapAllocate(m_nHeapSize, HEAP_HIGH);
#else
// Allocate the majority of the remaining LOW region
Expand Down

0 comments on commit dbf49a2

Please sign in to comment.