Subversion Repositories HelenOS-historic

Rev

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

Rev 1493 Rev 1653
Line 22... Line 22...
22
 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22
 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23
 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23
 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
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
 */
-
 
28
 
-
 
29
 /** @addtogroup libc
-
 
30
 * @{
-
 
31
 */
-
 
32
/** @file
27
 */
33
 */
28
 
34
 
29
#include <ddi.h>
35
#include <ddi.h>
30
#include <libc.h>
36
#include <libc.h>
31
#include <task.h>
37
#include <task.h>
Line 33... Line 39...
33
 
39
 
34
/** Map piece of physical memory to task.
40
/** Map piece of physical memory to task.
35
 *
41
 *
36
 * Caller of this function must have the CAP_MEM_MANAGER capability.
42
 * Caller of this function must have the CAP_MEM_MANAGER capability.
37
 *
43
 *
38
 * @param id Task ID.
-
 
39
 * @param pf Physical address of the starting frame.
44
 * @param pf Physical address of the starting frame.
40
 * @param vp Virtual address of the sterting page.
45
 * @param vp Virtual address of the sterting page.
41
 * @param pages Number of pages to map.
46
 * @param pages Number of pages to map.
42
 * @param flags Flags for the new address space area.
47
 * @param flags Flags for the new address space area.
43
 *
48
 *
Line 80... Line 85...
80
 */
85
 */
81
int preemption_control(int enable)
86
int preemption_control(int enable)
82
{
87
{
83
    return __SYSCALL1(SYS_PREEMPT_CONTROL, (sysarg_t) enable);
88
    return __SYSCALL1(SYS_PREEMPT_CONTROL, (sysarg_t) enable);
84
}
89
}
-
 
90
 
-
 
91
 
-
 
92
 /** @}
-
 
93
 */
-
 
94
 
-
 
95