Changeset 6e787c4 in mainline


Ignore:
Timestamp:
2005-08-24T12:21:26Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
cfd6efd2
Parents:
a8f9a82
Message:

Make rwlock test #3 compile again.

Make rwlock test #4 preemption-safe.

Prepare for preemption controlling functions.

Files:
2 added
4 edited

Legend:

Unmodified
Added
Removed
  • include/cpu.h

    ra8f9a82 r6e787c4  
    4141#include <arch/context.h>
    4242
    43 #define CPU_STACK_SIZE  (4096)
     43#define CPU_STACK_SIZE  PAGE_SIZE
    4444
    4545struct cpu {
  • src/Makefile

    ra8f9a82 r6e787c4  
    2121        time/timeout.c \
    2222        time/delay.c \
     23        preempt/preemption.c \
    2324        synch/spinlock.c \
    2425        synch/condvar.c \
  • test/synch/rwlock3/test.c

    ra8f9a82 r6e787c4  
    4141
    4242static void reader(void *arg);
    43 static void failed(void *arg);
     43static void failed(void);
    4444
    4545void reader(void *arg)
  • test/synch/rwlock4/test.c

    ra8f9a82 r6e787c4  
    6060{
    6161        __u32 rc;
     62        pri_t pri;
    6263
     64        pri = cpu_priority_high();
    6365        spinlock_lock(&lock);   
    6466        rc = seed % max;
    6567        seed = (((seed<<2) ^ (seed>>2)) * 487) + rc;
    6668        spinlock_unlock(&lock);
     69        cpu_priority_restore(pri);
    6770        return rc;
    6871}
Note: See TracChangeset for help on using the changeset viewer.