Changeset 6da1013f in mainline for kernel/arch/ia32


Ignore:
Timestamp:
2009-02-12T20:09:19Z (17 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/ia32
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/ia32/_link.ld.in

    r7004747 r6da1013f  
    11/** IA-32 linker script
    2  * 
     2 *
    33 * umapped section:
    4  *      kernel text
    5  *      kernel data
     4 *  kernel text
     5 *  kernel data
    66 * mapped section:
    7  *      kernel text
    8  *      kernel data
     7 *  kernel text
     8 *  kernel data
    99 */
    1010
     
    2929               
    3030                kdata_start = .;
    31                 *(.data);                       /* initialized data */
    32                 *(.rodata*);                    /* string literals */
    33                 *(COMMON);                      /* global variables */
     31                *(.data);               /* initialized data */
     32                *(.rodata*);            /* string literals */
     33                *(COMMON);              /* global variables */
    3434                hardcoded_load_address = .;
    3535                LONG(PA2KA(BOOT_OFFSET));
     
    4343                LONG(unmapped_kdata_end - unmapped_kdata_start);
    4444                symbol_table = .;
    45                 *(symtab.*);                    /* Symbol table, must be LAST symbol! */
    46                 *(.bss);                        /* uninitialized static variables */
     45                *(symtab.*);            /* Symbol table, must be LAST symbol! */
     46                *(.bss);                /* uninitialized static variables */
    4747                kdata_end = .;
    4848        }
    49 
     49       
    5050        /DISCARD/ : {
    51                 *(.note.GNU-stack);             
     51                *(.note.GNU-stack);
    5252                *(.comment);
    5353        }
    5454       
    55 #ifdef CONFIG_SMP       
     55#ifdef CONFIG_SMP
    5656       
    5757        _hardcoded_unmapped_size = (unmapped_ktext_end - unmapped_ktext_start) + (unmapped_kdata_end - unmapped_kdata_start);
     
    5959        ap_gdtr = unmapped_ap_gdtr - BOOT_OFFSET + AP_BOOT_OFFSET;
    6060        protected_ap_gdtr = PA2KA(ap_gdtr);
    61 
     61       
    6262#endif /* CONFIG_SMP */
    63 
     63       
    6464}
  • kernel/arch/ia32/include/fpu_context.h

    r7004747 r6da1013f  
    3838#include <arch/types.h>
    3939
    40 #define ARCH_HAS_FPU
    4140#define FPU_CONTEXT_ALIGN 16
    4241
  • kernel/arch/ia32/src/ia32.c

    r7004747 r6da1013f  
    178178}
    179179
     180/** Construct function pointer
     181 *
     182 * @param fptr   function pointer structure
     183 * @param addr   function address
     184 * @param caller calling function address
     185 *
     186 * @return address of the function pointer
     187 *
     188 */
     189void *arch_construct_function(fncptr_t *fptr, void *addr, void *caller)
     190{
     191        return addr;
     192}
     193
    180194/** @}
    181195 */
Note: See TracChangeset for help on using the changeset viewer.