Subversion Repositories HelenOS

Rev

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

Rev 4343 Rev 4344
Line 24... Line 24...
24
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
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
/** @addtogroup arm32mm
29
/** @addtogroup arm32mm
30
 * @{
30
 * @{
31
 */
31
 */
32
/** @file
32
/** @file
33
 *  @brief Frame related functions.
33
 *  @brief Frame related functions.
34
 */
34
 */
Line 39... Line 39...
39
#include <config.h>
39
#include <config.h>
40
#include <arch/debug/print.h>
40
#include <arch/debug/print.h>
41
 
41
 
42
/** Address of the last frame in the memory. */
42
/** Address of the last frame in the memory. */
43
uintptr_t last_frame = 0;
43
uintptr_t last_frame = 0;
44
uintptr_t end_frame = 0;
-
 
45
 
44
 
46
/** Creates memory zones. */
45
/** Creates memory zones. */
47
void frame_arch_init(void)
46
void frame_arch_init(void)
48
{
47
{
49
    /* all memory as one zone */
48
    /* all memory as one zone */
50
    zone_create(0, ADDR2PFN(machine_get_memory_size()),
49
    zone_create(0, ADDR2PFN(machine_get_memory_size()),
51
        BOOT_PAGE_TABLE_START_FRAME + BOOT_PAGE_TABLE_SIZE_IN_FRAMES, 0);
50
        BOOT_PAGE_TABLE_START_FRAME + BOOT_PAGE_TABLE_SIZE_IN_FRAMES, 0);
52
    last_frame = machine_get_memory_size();
51
    last_frame = machine_get_memory_size();
53
    end_frame = last_frame;
-
 
54
   
52
   
55
    /* blacklist boot page table */
53
    /* blacklist boot page table */
56
    frame_mark_unavailable(BOOT_PAGE_TABLE_START_FRAME,
54
    frame_mark_unavailable(BOOT_PAGE_TABLE_START_FRAME,
57
        BOOT_PAGE_TABLE_SIZE_IN_FRAMES);
55
        BOOT_PAGE_TABLE_SIZE_IN_FRAMES);
58
}
56
}