Changeset 6da1013f in mainline for kernel/arch/amd64/src


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

Location:
kernel/arch/amd64/src
Files:
3 edited

Legend:

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

    r7004747 r6da1013f  
    227227}
    228228
     229/** Construct function pointer
     230 *
     231 * @param fptr   function pointer structure
     232 * @param addr   function address
     233 * @param caller calling function address
     234 *
     235 * @return address of the function pointer
     236 *
     237 */
     238void *arch_construct_function(fncptr_t *fptr, void *addr, void *caller)
     239{
     240        return addr;
     241}
     242
    229243/** @}
    230244 */
  • 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");
  • kernel/arch/amd64/src/interrupt.c

    r7004747 r6da1013f  
    143143static void nm_fault(int n, istate_t *istate)
    144144{
    145 #ifdef CONFIG_FPU_LAZY     
     145#ifdef CONFIG_FPU_LAZY
    146146        scheduler_fpu_lazy_request();
    147147#else
Note: See TracChangeset for help on using the changeset viewer.