Ignore:
Timestamp:
Feb 18, 1999, 3:16:37 PM (22 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
df0ac0b
Parents:
edfb0eb
Message:

Patch from Emmanuel Raguet <raguet@…>:

You will find enclosed a patch which contains, for Intel PC386 target :

  • an Ethernet driver for DEC21140 device based boards.
  • a simple cache management with paging mechanism.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libcpu/i386/registers.h

    redfb0eb re029467  
    5858#define CR0_PAGE_LEVEL_CACHE_DISABLE    0x40000000
    5959#define CR0_PAGING                      0x80000000
     60
     61/*
     62 * definitions related to CR3
     63 */
     64
     65#define CR3_PAGE_CACHE_DISABLE          0x10
     66#define CR3_PAGE_WRITE_THROUGH          0x8
     67
    6068
    6169#ifndef ASM
     
    154162}cr0;
    155163
     164/*
     165 * definition of cr3 registers has a bit field structure
     166 */
     167typedef struct {
     168
     169  unsigned int                          : 3;
     170  unsigned int page_write_transparent   : 1;
     171  unsigned int page_cache_disable       : 1;
     172  unsigned int                          : 7;
     173  unsigned int page_directory_base      :20;
     174}cr3_bits;
     175
     176typedef union {
     177  cr3_bits      cr3;
     178  unsigned int  i;
     179}cr3;
     180
    156181#endif
    157182
Note: See TracChangeset for help on using the changeset viewer.