Changeset f2ffad4 in mainline
- Timestamp:
- 2005-05-12T20:37:03Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- da79d0fd
- Parents:
- ea3fb2e
- Files:
-
- 3 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/ia64/Makefile.inc
rea3fb2e rf2ffad4 8 8 LD=$(IA-64_BINUTILS_DIR)/$(IA-64_TARGET)-ld 9 9 10 ASFLAGS=- EL10 ASFLAGS=-mconstant-gp 11 11 12 12 DEFS=-DARCH=$(ARCH) 13 13 CPPFLAGS=$(DEFS) -nostdinc -I../include 14 CFLAGS=$(CPPFLAGS) - nostdlib -fno-builtin -Wmissing-prototypes -Werror -O315 LFLAGS=-EL -M - no-check-sections -T ../arch/ia64/_link.ld14 CFLAGS=$(CPPFLAGS) -mconstant-gp -nostdlib -fno-builtin -Wmissing-prototypes -Werror -O3 15 LFLAGS=-EL -M -T ../arch/ia64/_link.ld 16 16 17 17 arch_sources= \ … … 23 23 arch/fpu_context.c \ 24 24 arch/context.S 25 26 -
src/Makefile
rea3fb2e rf2ffad4 77 77 78 78 %.o: %.s 79 $(AS) $ < -o $@79 $(AS) $(ASFLAGS) $< -o $@ 80 80 81 81 %.o: %.c -
src/main/main.c
rea3fb2e rf2ffad4 54 54 55 55 #include <arch.h> 56 #include <arch/faddr.h> 56 57 57 58 char *project = "SPARTAN kernel"; … … 95 96 context_save(&ctx); 96 97 ctx.sp = config.base + config.kernel_size - 8; 97 ctx.pc = (__address) main_bsp_separated_stack;98 ctx.pc = FADDR(main_bsp_separated_stack); 98 99 context_restore(&ctx); 99 100 /* not reached */ … … 193 194 */ 194 195 CPU->saved_context.sp = (__address) &CPU->stack[CPU_STACK_SIZE-8]; 195 CPU->saved_context.pc = (__address) main_ap_separated_stack;196 CPU->saved_context.pc = FADDR(main_ap_separated_stack); 196 197 context_restore(&CPU->saved_context); 197 198 /* not reached */ -
src/proc/scheduler.c
rea3fb2e rf2ffad4 42 42 #include <mm/page.h> 43 43 #include <synch/spinlock.h> 44 #include <arch/faddr.h> 44 45 45 46 #ifdef __SMP__ … … 233 234 context_save(&CPU->saved_context); 234 235 CPU->saved_context.sp = (__address) &CPU->stack[CPU_STACK_SIZE-8]; 235 CPU->saved_context.pc = (__address) scheduler_separated_stack;236 CPU->saved_context.pc = FADDR(scheduler_separated_stack); 236 237 context_restore(&CPU->saved_context); 237 238 /* not reached */ -
src/proc/thread.c
rea3fb2e rf2ffad4 49 49 #include <arch/interrupt.h> 50 50 #include <smp/ipi.h> 51 #include <arch/faddr.h> 51 52 52 53 char *thread_states[] = {"Invalid", "Running", "Sleeping", "Ready", "Entering", "Exiting"}; … … 165 166 166 167 context_save(&t->saved_context); 167 t->saved_context.pc = (__address) cushion;168 t->saved_context.pc = FADDR(cushion); 168 169 t->saved_context.sp = (__address) &t->kstack[THREAD_STACK_SIZE-8]; 169 170
Note:
See TracChangeset
for help on using the changeset viewer.