mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-21 15:45:02 +00:00
If someone tries to boot a generic ATMEL kernel that has no board_init()
routine compiled in, print a friendly error message about it rather than mysteriously hanging while trying to init 4GB of nonexistant ram.
This commit is contained in:
parent
1ef5f6a006
commit
46aa33b2ac
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=261690
@ -590,6 +590,11 @@ initarm(struct arm_boot_params *abp)
|
||||
printf("Warning: No soc support for %s found.\n", soc_info.name);
|
||||
|
||||
memsize = board_init();
|
||||
if (memsize == -1) {
|
||||
printf("board_init() failed, cannot determine ram size; "
|
||||
"assuming 16MB\n");
|
||||
memsize = 16 * 1024 * 1024;
|
||||
}
|
||||
|
||||
/*
|
||||
* Pages were allocated during the secondary bootstrap for the
|
||||
|
Loading…
Reference in New Issue
Block a user