Changes in / [af56e9b:95c4776] in mainline


Ignore:
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/amd64/include/atomic.h

    raf56e9b r95c4776  
    101101static inline atomic_count_t test_and_set(atomic_t *val)
    102102{
    103         atomic_count_t v = 1;
     103        atomic_count_t v;
    104104       
    105105        asm volatile (
     106                "movq $1, %[v]\n"
    106107                "xchgq %[v], %[count]\n"
    107                 : [v] "+r" (v),
     108                : [v] "=r" (v),
    108109                  [count] "+m" (val->count)
    109110        );
  • kernel/arch/ia32/include/atomic.h

    raf56e9b r95c4776  
    101101static inline atomic_count_t test_and_set(atomic_t *val)
    102102{
    103         atomic_count_t v = 1;
     103        atomic_count_t v;
    104104       
    105105        asm volatile (
     106                "movl $1, %[v]\n"
    106107                "xchgl %[v], %[count]\n"
    107                 : [v] "+r" (v),
     108                : [v] "=r" (v),
    108109                  [count] "+m" (val->count)
    109110        );
  • kernel/generic/src/mm/as.c

    raf56e9b r95c4776  
    952952        if (!THREAD)
    953953                return AS_PF_FAULT;
    954        
    955         if (!AS)
    956                 return AS_PF_FAULT;
    957        
     954               
     955        ASSERT(AS);
     956
    958957        mutex_lock(&AS->lock);
    959         area = find_area_and_lock(AS, page);
     958        area = find_area_and_lock(AS, page);   
    960959        if (!area) {
    961960                /*
  • kernel/generic/src/proc/scheduler.c

    raf56e9b r95c4776  
    201201                 * even though there is a runnable thread.
    202202                 */
     203
    203204                 cpu_sleep();
    204205                 goto loop;
  • uspace/app/tester/fault/fault3.def

    raf56e9b r95c4776  
    33        "Abort",
    44        &test_fault3,
    5         false
     5        true
    66},
Note: See TracChangeset for help on using the changeset viewer.