Changeset 7f1c620 in mainline for arch/sparc64/src/proc/scheduler.c


Ignore:
Timestamp:
2006-07-04T17:17:56Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0ffa3ef5
Parents:
991779c5
Message:

Replace old u?? types with respective C99 variants (e.g. uint32_t, int64_t, uintptr_t etc.).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • arch/sparc64/src/proc/scheduler.c

    r991779c5 r7f1c620  
    4949void before_thread_runs_arch(void)
    5050{
    51         __address base;
     51        uintptr_t base;
    5252       
    5353        base = ALIGN_DOWN(config.base, 1<<KERNEL_PAGE_WIDTH);
    5454
    55         if ((__address) THREAD->kstack < base || (__address) THREAD->kstack > base + (1<<KERNEL_PAGE_WIDTH)) {
     55        if ((uintptr_t) THREAD->kstack < base || (uintptr_t) THREAD->kstack > base + (1<<KERNEL_PAGE_WIDTH)) {
    5656                /*
    5757                 * Kernel stack of this thread is not locked in DTLB.
     
    5959                 * If not, create a locked mapping for it.
    6060                 */
    61                  dtlb_demap(TLB_DEMAP_PAGE, TLB_DEMAP_NUCLEUS, (__address) THREAD->kstack);
    62                  dtlb_insert_mapping((__address) THREAD->kstack, KA2PA(THREAD->kstack), PAGESIZE_8K, true, true);
     61                 dtlb_demap(TLB_DEMAP_PAGE, TLB_DEMAP_NUCLEUS, (uintptr_t) THREAD->kstack);
     62                 dtlb_insert_mapping((uintptr_t) THREAD->kstack, KA2PA(THREAD->kstack), PAGESIZE_8K, true, true);
    6363        }       
    6464}
     
    6767void after_thread_ran_arch(void)
    6868{
    69         __address base;
     69        uintptr_t base;
    7070
    7171        base = ALIGN_DOWN(config.base, 1<<KERNEL_PAGE_WIDTH);
    7272
    73         if ((__address) THREAD->kstack < base || (__address) THREAD->kstack > base + (1<<KERNEL_PAGE_WIDTH)) {
     73        if ((uintptr_t) THREAD->kstack < base || (uintptr_t) THREAD->kstack > base + (1<<KERNEL_PAGE_WIDTH)) {
    7474                /*
    7575                 * Kernel stack of this thread is locked in DTLB.
    7676                 * Destroy the mapping.
    7777                 */
    78                 dtlb_demap(TLB_DEMAP_PAGE, TLB_DEMAP_NUCLEUS, (__address) THREAD->kstack);
     78                dtlb_demap(TLB_DEMAP_PAGE, TLB_DEMAP_NUCLEUS, (uintptr_t) THREAD->kstack);
    7979        }
    8080}
Note: See TracChangeset for help on using the changeset viewer.