Changeset bc314be8 in mainline for arch/ia64/src/proc/scheduler.c
- Timestamp:
- 2006-03-05T16:21:36Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 83d2d0e
- Parents:
- 9e5938dc
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/ia64/src/proc/scheduler.c
r9e5938dc rbc314be8 30 30 #include <proc/thread.h> 31 31 #include <arch.h> 32 #include <arch/register.h> 32 33 #include <arch/mm/tlb.h> 33 34 #include <config.h> 34 35 #include <align.h> 35 36 36 /** Record kernel stack address in ar.k7and make sure it is mapped in DTR. */37 /** Record kernel stack address in bank 0 r23 and make sure it is mapped in DTR. */ 37 38 void before_thread_runs_arch(void) 38 39 { … … 50 51 51 52 /* 52 * Record address of kernel stack to ar.k7 53 * where it will be found after switch 54 * from userspace. 53 * Record address of kernel stack to bank 0 r23 54 * where it will be found after switch from userspace. 55 55 */ 56 __asm__ volatile ("mov ar.k7 = %0\n" : : "r" (THREAD->kstack)); 56 __asm__ volatile ( 57 "bsw.0\n" 58 "mov r23 = %0\n" 59 "bsw.1\n" 60 : : "r" (THREAD->kstack)); 57 61 } 58 62
Note:
See TracChangeset
for help on using the changeset viewer.