Changeset 6da1013f in mainline for kernel/arch/sparc64


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/sparc64
Files:
1 deleted
3 edited

Legend:

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

    r7004747 r6da1013f  
    22 *
    33 *  It is ELF format, but its only section looks like this:
    4  *  kernel text
    5  *  kernel data
     4 *   kernel text
     5 *   kernel data
    66 *
    77 */
     
    1212
    1313SECTIONS {
    14         .image VMA: AT (LMA) { 
     14        .image VMA: AT (LMA) {
    1515                ktext_start = .;
    1616                *(K_TEXT_START)
     
    2222                *(.rodata);
    2323                *(.rodata.*);
    24                 *(.data);               /* initialized data */
     24                *(.data);                   /* initialized data */
    2525                *(.sdata);
    2626                *(.sdata2);
     
    2828                . = ALIGN(8);
    2929                hardcoded_ktext_size = .;
    30                 QUAD(ktext_end - ktext_start); 
     30                QUAD(ktext_end - ktext_start);
    3131                hardcoded_kdata_size = .;
    3232                QUAD(kdata_end - kdata_start);
    3333                hardcoded_load_address = .;
    3434                QUAD(VMA);
    35                 *(.bss);                /* uninitialized static variables */   
    36                 *(COMMON);              /* global variables */
    37 
     35                *(.bss);                    /* uninitialized static variables */
     36                *(COMMON);                  /* global variables */
     37               
    3838                symbol_table = .;
    39                 *(symtab.*);            /* Symbol table, must be LAST symbol!*/
    40 
     39                *(symtab.*);                /* Symbol table, must be LAST symbol!*/
     40               
    4141                kdata_end = .;
    4242        }
     
    4545                *(*);
    4646        }
    47 
     47       
    4848}
  • kernel/arch/sparc64/include/fpu_context.h

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

    r7004747 r6da1013f  
    162162}
    163163
     164/** Construct function pointer
     165 *
     166 * @param fptr   function pointer structure
     167 * @param addr   function address
     168 * @param caller calling function address
     169 *
     170 * @return address of the function pointer
     171 *
     172 */
     173void *arch_construct_function(fncptr_t *fptr, void *addr, void *caller)
     174{
     175        return addr;
     176}
     177
    164178/** @}
    165179 */
Note: See TracChangeset for help on using the changeset viewer.