mboot: move map initialization out of map_image()
authorH. Peter Anvin <hpa@zytor.com>
Sat, 2 May 2009 20:47:29 +0000 (13:47 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Sat, 2 May 2009 20:50:17 +0000 (13:50 -0700)
commit01c5b4edde1409dfc5cc84c71342ef671399022c
treefcc8a0657516aa2ca77fa4436b2e308a47d7cc8a
parent873e07fbf78344e0041f29892e08f31820da87a4
mboot: move map initialization out of map_image()

The amap/mmap initialization were buried randomly inside map_image(),
which at the very least makes the code needlessly hard to read.
Furthermore, it is at least possible that we may want to be able to
map multiple images in the future.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
com32/mboot/map.c
com32/mboot/mboot.c
com32/mboot/mboot.h