Subversion Repositories HelenOS-historic

Rev

Rev 342 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 342 Rev 368
Line 26... Line 26...
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 <mm/frame.h>
30
#include <mm/frame.h>
-
 
31
#include <config.h>
-
 
32
#include <panic.h>
31
 
33
 
32
void frame_arch_init(void)
34
void frame_arch_init(void)
33
{
35
{
-
 
36
        zone_t *z;
-
 
37
 
-
 
38
        z = zone_create(0, config.memory_size & ~(FRAME_SIZE-1), 0);
-
 
39
        if (!z) {
-
 
40
                panic("Can't allocate zone (%dB).\n", config.memory_size & ~(FRAME_SIZE-1));
-
 
41
        }
-
 
42
        zone_attach(z);
34
}
43
}