Revert "fix a typo in bigmem - forgot to end if statement"

This reverts commit 40ac6fec4fcae696cea65d5904d04b794403330b.
Revert "manually port a bigmem option from semaphore kernel"

This reverts commit d1a80bdcc88982fca91a26a5660b8a959d8401da.