Changeset 6da1013f in mainline for kernel/arch/amd64/src/debugger.c


Ignore:
Timestamp:
2009-02-12T20:09:19Z (16 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
84266669
Parents:
7004747
Message:

simplify configuration
introduce arch_construct_function and inb/outb (sometimes empty) on all platforms
various code cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/amd64/src/debugger.c

    r7004747 r6da1013f  
    205205        /* Send IPI */
    206206#ifdef CONFIG_SMP
    207 //      ipi_broadcast(VECTOR_DEBUG_IPI);       
     207//      ipi_broadcast(VECTOR_DEBUG_IPI);
    208208#endif 
    209209
     
    211211}
    212212
    213 #ifdef amd64
    214 #       define getip(x) ((x)->rip)
     213#ifdef __64_BITS__
     214        #define getip(x)  ((x)->rip)
    215215#else
    216 #       define getip(x) ((x)->eip)
     216        #define getip(x)  ((x)->eip)
    217217#endif
    218218
     
    277277       
    278278        /* Set RF to restart the instruction  */
    279 #ifdef amd64       
     279#ifdef __64_BITS__
    280280        istate->rflags |= RFLAGS_RF;
    281281#else
     
    349349        char *symbol;
    350350
    351 #ifdef __32_BITS__     
     351#ifdef __32_BITS__
    352352        printf("#  Count Address    In symbol\n");
    353353        printf("-- ----- ---------- ---------\n");
Note: See TracChangeset for help on using the changeset viewer.