/[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.2 by jrydberg, Mon Jan 7 01:09:57 2002 UTC revision 1.3 by jrydberg, Tue Jan 15 23:54:48 2002 UTC
# Line 40  Foundation, Inc., 59 Temple Place - Suit Line 40  Foundation, Inc., 59 Temple Place - Suit
40  #if NCPUS == 1  #if NCPUS == 1
41  #define CPU_NUMBER(reg) movl $0, reg  #define CPU_NUMBER(reg) movl $0, reg
42  #else  #else
43  #define CPU_NUMBER(reg) movl apic_virtual_address, reg  ;\  #define CPU_NUMBER(reg) movl ncpus, reg                 ;\
44                            cmp  $1, reg                    ;\
45                            jne  9f                         ;\
46                            movl $0, reg                    ;\
47                            jmp  8f                         ;\
48                    9:      movl apic_virtual_address, reg  ;\
49                          movl 0x20(reg), reg             ;\                          movl 0x20(reg), reg             ;\
50                          shr  $24, reg                   ;\                          shr  $24, reg                   ;\
51                          movl apic_id_to_cpu_map(, reg, 4), reg                          movl apic_id_to_cpu_map(, reg, 4), reg  ;\
52                    8:
53  #endif  #endif
54    
55  #endif /* i386-asm.h */  #endif /* i386-asm.h */

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

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