Changeset 0af7a09 in mainline for kernel/arch/sparc64/src/cpu/cpu.c


Ignore:
Timestamp:
2006-12-21T08:02:01Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b84ce45
Parents:
730376d
Message:

sparc64 work:

  • No need to lock kernel stack and userspace window buffer into DTLB.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/sparc64/src/cpu/cpu.c

    r730376d r0af7a09  
    4141#include <arch/types.h>
    4242#include <arch/drivers/tick.h>
    43 #include <arch/mm/page.h>
    44 #include <arch/mm/tlb.h>
    45 #include <macros.h>
    4643
    4744/** Perform sparc64 specific initialization of the processor structure for the
     
    8178        CPU->arch.clock_frequency = clock_frequency;
    8279        tick_init();
    83        
    84         /*
    85          * Lock CPU stack in DTLB.
    86          */
    87         uintptr_t base = ALIGN_DOWN(config.base, 1 << KERNEL_PAGE_WIDTH);
    88                  
    89         if (!overlaps((uintptr_t) CPU->stack, PAGE_SIZE, base, (1 <<
    90                 KERNEL_PAGE_WIDTH))) {
    91                 /*
    92                  * Kernel stack of this processor is not locked in DTLB.
    93                  * First, demap any already existing mappings.
    94                  * Second, create a locked mapping for it.
    95                  */
    96                 dtlb_demap(TLB_DEMAP_PAGE, TLB_DEMAP_NUCLEUS, (uintptr_t)
    97                         CPU->stack);
    98                 dtlb_insert_mapping((uintptr_t) CPU->stack, KA2PA(CPU->stack),
    99                         PAGESIZE_8K, true, true);
    100         }
    10180}
    10281
Note: See TracChangeset for help on using the changeset viewer.