Page MenuHomeFreeBSD

[bcm_machdep] CFE_MEMORYSIZE and cosmetic code changes
Needs ReviewPublic

Authored by mizhka on Jun 27 2016, 5:53 PM.

Details

Reviewers
landonf
adrian
Summary

I'm trying to port FreeBSD on ASUS WL500W board with BCM4704 chip. But CFE memory enumerator doesn't work, returns 0 bytes. But there is CFE environment variable with actual RAM size: CFE_MEMORYSIZE

This fix uses CFE_MEMORYSIZE if CFE memory enumerator doesn't work. Also it removes misleading outdated comment and print error code if debug is enabled.

Test Plan

Tested on ASUS WL500W, regression test on ASUS RT-N12,16,53

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

mizhka retitled this revision from to [bcm_machdep] CFE_MEMORYSIZE and cosmetic code changes.
mizhka updated this object.
mizhka edited the test plan for this revision. (Show Details)
mizhka added reviewers: landonf, adrian.
mizhka set the repository for this revision to rS FreeBSD src repository - subversion.