RTEMS: bsps/i386/include/libcpu/page.h Source File

| RTEMS 5.4-rc2

Loading...
Searching...
No Matches
page.h
1/*
2 * @file
3 *
4 * Copyright (C) 1998 Eric Valette (valette@crf.canon.fr)
5 * Canon Centre Recherche France.
6 *
7 * The license and distribution terms for this file may be
8 * found in the file LICENSE in this distribution or at
9 * http://www.rtems.org/license/LICENSE.
10 */
11
12#ifndef _LIBCPU_i386_PAGE_H
13#define _LIBCPU_i386_PAGE_H
14
15#ifndef ASM
16
17#include <rtems/score/cpu.h>
18
19/* C declaration for paging management */
20
21extern int _CPU_is_cache_enabled(void);
22extern int _CPU_is_paging_enabled(void);
23extern int init_paging(void);
24extern void _CPU_enable_paging(void);
25extern void _CPU_disable_paging(void);
26extern void _CPU_disable_cache(void);
27extern void _CPU_enable_cache(void);
28extern int _CPU_map_phys_address
29 (void **mappedAddress, void *physAddress,
30 int size, int flag);
31extern int _CPU_unmap_virt_address (void *mappedAddress, int size);
32extern int _CPU_change_memory_mapping_attribute
33 (void **newAddress, void *mappedAddress,
34 unsigned int size, unsigned int flag);
35extern int _CPU_display_memory_attribute(void);
36
37# endif /* ASM */
38
39#endif