/[rtmk]/rtmk/i386/i386-asm.h
ViewVC logotype

Diff of /rtmk/i386/i386-asm.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1.1.1 by jrydberg, Fri Dec 7 02:06:23 2001 UTC revision 1.2 by jrydberg, Mon Jan 7 01:09:57 2002 UTC
# Line 36  Foundation, Inc., 59 Temple Place - Suit Line 36  Foundation, Inc., 59 Temple Place - Suit
36  #define ENTRY(x)        .align TALIGN; .globl EXT(x); LEXT(x)  #define ENTRY(x)        .align TALIGN; .globl EXT(x); LEXT(x)
37    
38  #define CX(d, r)        EXT(d)(, r, 4)  #define CX(d, r)        EXT(d)(, r, 4)
39    
40    #if NCPUS == 1
41  #define CPU_NUMBER(reg) movl $0, reg  #define CPU_NUMBER(reg) movl $0, reg
42    #else
43    #define CPU_NUMBER(reg) movl apic_virtual_address, reg  ;\
44                            movl 0x20(reg), reg             ;\
45                            shr  $24, reg                   ;\
46                            movl apic_id_to_cpu_map(, reg, 4), reg
47    #endif
48    
49  #endif /* i386-asm.h */  #endif /* i386-asm.h */

Legend:
Removed from v.1.1.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26