Changeset 7f1bfce in mainline for arch


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().

Location:
arch
Files:
7 edited

Legend:

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

    r87be9cfb r7f1bfce  
    3232#include <arch/types.h>
    3333
    34 
     34#define SP_DELTA        8
    3535
    3636struct context {
  • arch/ia32/include/smp/apic.h

    r87be9cfb r7f1bfce  
    130130extern void l_apic_debug(void);
    131131extern void l_apic_timer_interrupt(__u8 n, __u32 stack[]);
    132 extern inline __u8 l_apic_id(void);
     132extern __u8 l_apic_id(void);
    133133
    134134extern __u32 io_apic_read(__u8 address);
  • arch/ia32/src/smp/apic.c

    r87be9cfb r7f1bfce  
    325325}
    326326
    327 inline __u8 l_apic_id(void)
     327__u8 l_apic_id(void)
    328328{
    329329        return (l_apic[L_APIC_ID] >> L_APIC_IDShift)&L_APIC_IDMask;
  • arch/ia64/include/context.h

    r87be9cfb r7f1bfce  
    3131
    3232#include <arch/types.h>
     33
     34#define SP_DELTA        16
    3335
    3436struct context {
  • arch/ia64/src/asm.S

    r87be9cfb r7f1bfce  
    3939               
    4040        br _memcopy
     41
     42.global memcopy
     43memcopy:
     44        br _memcopy
  • arch/ia64/src/start.S

    r87be9cfb r7f1bfce  
    3535stack0:
    3636kernel_image_start:
     37        .auto
     38        # initialize PSR
     39        mov psr.l = r0
     40       
    3741        # initialize register stack
    38         alloc r1 = ar.pfs, 0, 0, 0, 0   ;;
     42        mov ar.rsc = r0
     43        loadrs
    3944
     45        .explicit
    4046        # initialize memory stack to some sane value
    41         movl r12=stack0
     47        movl r12 = stack0       ;;
     48        add r12 = - 16, r12     /* allocate a scratch area on the stack */
    4249
    4350        # initialize gp (Global Pointer) register
  • arch/mips/include/context.h

    r87be9cfb r7f1bfce  
    3232#include <arch/types.h>
    3333
    34 
     34#define SP_DELTA        0
    3535
    3636
Note: See TracChangeset for help on using the changeset viewer.