Rev 823 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 823 | Rev 867 | ||
---|---|---|---|
Line 25... | Line 25... | ||
25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
27 | */ |
27 | */ |
28 | 28 | ||
29 | #include <arch/mm/frame.h> |
29 | #include <arch/mm/frame.h> |
- | 30 | #include <genarch/ofw/memory_init.h> |
|
30 | #include <mm/frame.h> |
31 | #include <mm/frame.h> |
31 | #include <config.h> |
32 | #include <config.h> |
32 | #include <align.h> |
33 | #include <align.h> |
33 | 34 | ||
34 | void frame_arch_init(void) |
35 | void frame_arch_init(void) |
35 | { |
36 | { |
36 | zone_create(0, config.memory_size >> FRAME_WIDTH, 1, 0); |
37 | ofw_init_zones(); |
37 | 38 | ||
38 | /* |
39 | /* |
39 | * Workaround to prevent slab allocator from allocating frame 0. |
40 | * Workaround to prevent slab allocator from allocating frame 0. |
40 | * Frame 0 is |
41 | * Frame 0 is |
41 | * a) not mapped by OFW |
42 | * a) not mapped by OFW |