
- enable the paging support - redesign of the APIC code TODO: - Currently, we are not able to start user-level applications. - The RTL8139 driver does not longer work. Perhaps, a bug in the output function. - The APIC codes doesn't work on all systems. Therefore, the code is currently disabled. git-svn-id: http://svn.lfbs.rwth-aachen.de/svn/scc/trunk/MetalSVM@326 315a16e6-25f9-4109-90ae-ca3045a26c18
49 lines
1.3 KiB
C
49 lines
1.3 KiB
C
/*
|
|
* Copyright 2010 Stefan Lankes, Chair for Operating Systems,
|
|
* RWTH Aachen University
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*
|
|
* This file is part of MetalSVM.
|
|
*/
|
|
|
|
#ifndef __STDLIB_H__
|
|
#define __STDLIB_H__
|
|
|
|
#include <metalsvm/config.h>
|
|
#include <metalsvm/tasks_types.h>
|
|
#include <asm/stddef.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#define MAP_KERNEL_SPACE (1 << 0)
|
|
#define MAP_USER_SPACE (1 << 1)
|
|
#define MAP_PAGE_TABLE (1 << 2)
|
|
#define MAP_NO_CACHE (1 << 3)
|
|
#define MAP_STACK (1 << 4)
|
|
#define MAP_HEAP (1 << 5)
|
|
#define MAP_CODE (1 << 6)
|
|
|
|
void NORETURN abort(void);
|
|
void* kmalloc(size_t);
|
|
void* mem_allocation(size_t sz, uint32_t flags);
|
|
void kfree(void*, size_t);
|
|
void* create_stack(task_t* task, size_t sz);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|