Changeset b109ebb in mainline


Ignore:
Timestamp:
2005-02-22T08:31:53Z (20 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
4ffa9e0
Parents:
169587a
Message:

shootdown vs. shutdown

Files:
7 edited

Legend:

Unmodified
Added
Removed
  • arch/ia32/include/interrupt.h

    r169587a rb109ebb  
    6060
    6161#define VECTOR_SYSCALL          (IVT_FREEBASE+0)
    62 #define VECTOR_TLB_SHUTDOWN     (IVT_FREEBASE+1)
     62#define VECTOR_TLB_SHOOTDOWN    (IVT_FREEBASE+1)
    6363
    6464typedef void (* iroutine)(__u8 n, __u32 stack[]);
     
    7878extern void page_fault(__u8 n, __u32 stack[]);
    7979extern void syscall(__u8 n, __u32 stack[]);
    80 extern void tlb_shutdown_ipi(__u8 n, __u32 stack[]);
     80extern void tlb_shootdown_ipi(__u8 n, __u32 stack[]);
    8181
    8282extern void trap_virtual_enable_irqs(__u16 irqmask);
  • arch/ia32/src/ia32.c

    r169587a rb109ebb  
    5959               
    6060                #ifdef __SMP__
    61                 trap_register(VECTOR_TLB_SHUTDOWN, tlb_shutdown_ipi);
     61                trap_register(VECTOR_TLB_SHOOTDOWN, tlb_shootdown_ipi);
    6262                #endif /* __SMP__ */
    6363        }
  • arch/ia32/src/interrupt.c

    r169587a rb109ebb  
    9595}
    9696
    97 void tlb_shutdown_ipi(__u8 n, __u32 stack[])
     97void tlb_shootdown_ipi(__u8 n, __u32 stack[])
    9898{
    9999        trap_virtual_eoi();
    100         tlb_shutdown_ipi_recv();
     100        tlb_shootdown_ipi_recv();
    101101}
    102102
  • arch/ia32/src/mm/tlb.c

    r169587a rb109ebb  
    4141
    4242#ifdef __SMP__
    43 void tlb_shutdown_ipi_send(void)
     43void tlb_shootdown_ipi_send(void)
    4444{
    45         (void) l_apic_broadcast_custom_ipi(VECTOR_TLB_SHUTDOWN);
     45        (void) l_apic_broadcast_custom_ipi(VECTOR_TLB_SHOOTDOWN);
    4646}
    4747#endif /* __SMP__ */
  • include/mm/tlb.h

    r169587a rb109ebb  
    3232#ifdef __SMP__
    3333extern void tlb_init(void);
    34 extern void tlb_shutdown_start(void);
    35 extern void tlb_shutdown_finalize(void);
    36 extern void tlb_shutdown_ipi_recv(void);
     34extern void tlb_shootdown_start(void);
     35extern void tlb_shootdown_finalize(void);
     36extern void tlb_shootdown_ipi_recv(void);
    3737#else
    3838
    3939#define tlb_init()              ;
    40 #define tlb_shutdown_start()    ;
    41 #define tlb_shutdown_finalize() ;
    42 #define tlb_shutdown_ipi_recv() ;
     40#define tlb_shootdown_start()   ;
     41#define tlb_shootdown_finalize()        ;
     42#define tlb_shootdown_ipi_recv() ;
    4343
    4444#endif /* __SMP__ */
     
    4646/* Export TLB interface that each architecture must implement. */
    4747extern void tlb_invalidate(int asid);
    48 extern void tlb_shutdown_ipi_send(void);
     48extern void tlb_shootdown_ipi_send(void);
    4949
    5050#endif
  • src/mm/tlb.c

    r169587a rb109ebb  
    3535#ifdef __SMP__
    3636static spinlock_t tlblock;
    37 static volatile int tlb_shutdown_cnt;
     37static volatile int tlb_shootdown_cnt;
    3838
    3939void tlb_init(void)
    4040{
    4141        spinlock_initialize(&tlblock);
    42         tlb_shutdown_cnt = 0;
     42        tlb_shootdown_cnt = 0;
    4343}
    4444
    4545/* must be called with interrupts disabled */
    46 void tlb_shutdown_start(void)
     46void tlb_shootdown_start(void)
    4747{
    4848        spinlock_lock(&tlblock);
    49         tlb_shutdown_ipi_send();
     49        tlb_shootdown_ipi_send();
    5050       
    51         while (tlb_shutdown_cnt < config.cpu_active - 1)
     51        while (tlb_shootdown_cnt < config.cpu_active - 1)
    5252                ;
    5353               
    54         tlb_shutdown_cnt = 0;
     54        tlb_shootdown_cnt = 0;
    5555}
    5656
    57 void tlb_shutdown_finalize(void)
     57void tlb_shootdown_finalize(void)
    5858{
    5959        spinlock_unlock(&tlblock);
    6060}
    6161
    62 void tlb_shutdown_ipi_recv(void)
     62void tlb_shootdown_ipi_recv(void)
    6363{
    64         atomic_inc((int *) &tlb_shutdown_cnt);
     64        atomic_inc((int *) &tlb_shootdown_cnt);
    6565        spinlock_lock(&tlblock);
    6666        spinlock_unlock(&tlblock);
  • src/mm/vm.c

    r169587a rb109ebb  
    171171        pri = cpu_priority_high();
    172172
    173         tlb_shutdown_start();
     173        tlb_shootdown_start();
    174174
    175175        spinlock_lock(&m->lock);
     
    181181
    182182        tlb_invalidate(0);
    183         tlb_shutdown_finalize();
     183        tlb_shootdown_finalize();
    184184
    185185        cpu_priority_restore(pri);
Note: See TracChangeset for help on using the changeset viewer.