Changeset a1d47823 in rtems


Ignore:
Timestamp:
May 6, 2009, 4:36:52 PM (10 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
80ab5f4
Parents:
430f6ff
Message:

2009-05-06 Joel Sherrill <joel.sherrill@…>

  • page.c: Fixed warnings.
Location:
c/src/lib/libcpu/i386
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libcpu/i386/ChangeLog

    r430f6ff ra1d47823  
     12009-05-06      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * page.c: Fixed warnings.
     4
    152008-12-03      Joel Sherrill <joel.sherrill@OARcorp.com>
    26                Michael South <msouth@msouth.org>
  • c/src/lib/libcpu/i386/page.c

    r430f6ff ra1d47823  
    4343 * Disable the paging
    4444 */
    45 void _CPU_disable_paging(void) {
     45void _CPU_disable_paging(void)
     46{
    4647  cr0 regCr0;
    4748
     
    5556 * Enable the paging
    5657 */
    57 void _CPU_enable_paging(void) {
     58void _CPU_enable_paging(void)
     59{
    5860  cr0 regCr0;
    5961
     
    6971 */
    7072
    71 int init_paging(void) {
    72 
     73int init_paging(void)
     74{
    7375  int memorySize;
    7476  int nbPages;
     
    157159 * Is cache enable
    158160 */
    159 int  _CPU_is_cache_enabled() {
     161int  _CPU_is_cache_enabled(void)
     162{
    160163  cr0 regCr0;
    161164
     
    167170 * Is paging enable
    168171 */
    169 int  _CPU_is_paging_enabled() {
     172int  _CPU_is_paging_enabled(void)
     173{
    170174  cr0 regCr0;
    171175
     
    180184 */
    181185
    182 int _CPU_map_phys_address
    183         (void **mappedAddress, void *physAddress, int size, int flag){
    184 
     186int _CPU_map_phys_address(
     187  void **mappedAddress,
     188  void  *physAddress,
     189  int    size,
     190  int    flag
     191)
     192{
    185193  page_table *localPageTable;
    186194  unsigned int lastAddress, countAddress;
     
    200208  virtualAddress.address = 0;
    201209
    202   while (1){
     210  while (1) {
    203211
    204212    if ((countAddress & ~MASK_OFFSET) > (lastAddress & ~MASK_OFFSET))
     
    274282 * important loss of address range
    275283 */
    276 static void Paging_Table_Compress() {
     284static void Paging_Table_Compress(void)
     285{
    277286  unsigned int dirCount, pageCount;
    278287  page_table *localPageTable;
     
    326335 */
    327336
    328 int _CPU_unmap_virt_address(void *mappedAddress, int size){
     337int _CPU_unmap_virt_address(
     338  void *mappedAddress,
     339  int   size
     340)
     341{
    329342
    330343  linear_address linearAddr;
     
    382395 */
    383396
    384 int _CPU_change_memory_mapping_attribute
    385     (void **newAddress, void *mappedAddress, unsigned int size, unsigned int flag){
     397int _CPU_change_memory_mapping_attribute(
     398  void         **newAddress,
     399  void          *mappedAddress,
     400  unsigned int   size,
     401  unsigned int   flag
     402)
     403{
    386404
    387405  linear_address linearAddr;
     
    442460#include <rtems/bspIo.h>
    443461
    444 int  _CPU_display_memory_attribute(){
     462int  _CPU_display_memory_attribute(void)
     463{
    445464  unsigned int dirCount, pageCount;
    446465  cr0 regCr0;
     
    506525  if (pagingWasEnabled)
    507526    _CPU_enable_paging();
     527
    508528  return 0;
    509 
    510 }
     529}
Note: See TracChangeset for help on using the changeset viewer.