Changeset 7f1bfce in mainline for src/proc/thread.c


Ignore:
Timestamp:
2005-05-17T20:46:19Z (20 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
6b96ab44
Parents:
87be9cfb
Message:

Add SP_DELTA macro for each architecture.
On IA-32, this macro represents two doublewords that must be on the stack when switching to a new stack.
On MIPS, there is no need to fix sp when switching to a new stack.
On IA-64, this macro is used to allocate the 16-byte scratch area.

IA-64 work.
Changes in start.S. More changes to come.
Define memcopy().

Janitorial fixes.
Add missing #include <panic.h> to rwlock4/test.c.
Remove wrong use of inline keyword from both declaration and definition of l_apic_id().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/proc/thread.c

    r87be9cfb r7f1bfce  
    167167                context_save(&t->saved_context);
    168168                t->saved_context.pc = FADDR(cushion);
    169                 t->saved_context.sp = (__address) &t->kstack[THREAD_STACK_SIZE-8];
     169                t->saved_context.sp = (__address) &t->kstack[THREAD_STACK_SIZE-SP_DELTA];
    170170
    171171                pri = cpu_priority_high();
Note: See TracChangeset for help on using the changeset viewer.