source: rtems/c/src/lib/libcpu/i386/page.h @ 328bd35

5
Last change on this file since 328bd35 was 328bd35, checked in by Joel Sherrill <joel@…>, on 01/23/16 at 19:06:22

i386: refactor libcpu/cpu.h into rtems/score/i386.h

Fixes #2515.

  • Property mode set to 100644
File size: 1.1 KB
Line 
1/*
2 * @file page.h
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
Note: See TracBrowser for help on using the repository browser.