Back to home page

LXR

 
 

    


File indexing completed on 2025-05-11 08:23:40

0001 /*
0002  * @file
0003  *
0004  * Copyright (C) 1998  Eric Valette (valette@crf.canon.fr)
0005  *                     Canon Centre Recherche France.
0006  *
0007  *  The license and distribution terms for this file may be
0008  *  found in the file LICENSE in this distribution or at
0009  *  http://www.rtems.org/license/LICENSE.
0010  */
0011 
0012 #ifndef _LIBCPU_i386_PAGE_H
0013 #define _LIBCPU_i386_PAGE_H
0014 
0015 #ifndef ASM
0016 
0017 #include <rtems/score/cpu.h>
0018 
0019 /* C declaration for paging management */
0020 
0021 extern int      _CPU_is_cache_enabled(void);
0022 extern int      _CPU_is_paging_enabled(void);
0023 extern int  init_paging(void);
0024 extern void     _CPU_enable_paging(void);
0025 extern void     _CPU_disable_paging(void);
0026 extern void     _CPU_disable_cache(void);
0027 extern void     _CPU_enable_cache(void);
0028 extern int  _CPU_map_phys_address
0029                       (void **mappedAddress, void *physAddress,
0030                int size, int flag);
0031 extern int  _CPU_unmap_virt_address (void *mappedAddress, int size);
0032 extern int  _CPU_change_memory_mapping_attribute
0033                          (void **newAddress, void *mappedAddress,
0034               unsigned int size, unsigned int flag);
0035 extern int      _CPU_display_memory_attribute(void);
0036 
0037 # endif /* ASM */
0038 
0039 #endif