Changeset 11

Show
Ignore:
Timestamp:
10/15/05 21:03:30 (6 years ago)
Author:
dkaplan1
Message:

Modified start and end parameters of vmalloc so there is an 8kB buffer between
all rings to avoid bugs with segmentation limit check hardware

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • arch/i386/kernel/callgate.c

    r10 r11  
    109109        "leave\n\t" 
    110110        "lret $16\n\t" 
    111         "callgate_table4: .long register_chrdev
     111        "callgate_table4: .long register_chrdev, copy_from_user, copy_to_user
    112112); 
    113113__asm__("callgate_entry1:" 
     
    136136        "pushl 16(%ebp)\n\t" 
    137137        "decl %ecx\n\t" 
    138         "cmpl $2, %ecx\n\t" 
     138        "cmpl $0, %ecx\n\t" 
    139139        "ja done3\n\t" 
    140140        "call *callgate_table3(,%ecx,4)\n\t" 
     
    143143        "leave\n\t" 
    144144        "lret $12\n\t" 
    145         "callgate_table3: .long copy_from_user, copy_to_user
     145        "callgate_table3:
    146146); 
    147147 
  • include/asm-i386/pgtable.h

    r5 r11  
    8787                                                ~(VMALLOC_OFFSET-1)) 
    8888 
    89 #define VMALLOC_START_RING1 0xA0000000 
    90 #define VMALLOC_END_RING1   0xC0000000 
    91  
    92 #define VMALLOC_START_RING2 0x80000000 
     89#define VMALLOC_START_RING1 0xA0001000 
     90#define VMALLOC_END_RING1   0xbfffe000 
     91 
     92#define VMALLOC_START_RING2 0x80001000 
    9393#define VMALLOC_END_RING2   0xA0000000 
    9494 
  • .version

    r10 r11  
    1 101 
     1102