Changeset 33 in XOpenSparcT1


Ignore:
Timestamp:
04/07/11 16:19:25 (13 years ago)
Author:
pntsvt00
Message:

checkpoint

Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/WB/wb_conbus_top.v

    r26 r33  
    144144parameter               s1_addr = {40'h800000FFF0,1'b0};        // slave 1 address  
    145145 
     146//ETHERNET 
    146147parameter               s2_addr_w = 56 ;                    
    147148parameter               s2_addr = {56'h800000FFF0C2C1};         // slave 2 address 
     149 
     150//UART 
    148151parameter               s3_addr_w = 60 ;                    
    149152parameter               s3_addr = {60'h800000FFF0C2C00};        // slave 3 address 
     153 
    150154parameter               s4_addr_w = 37 ;                    
    151155parameter               s4_addr = {36'h800000FFF,1'b1};         // slave 4 address 
  • trunk/os2wb/os2wb.v

    r27 r33  
    122122//`define MEM_SIZE         64'h00000000_10000000 //256 MB 
    123123//`define MEM_SIZE         64'h00000000_00100000  //1MB 
    124 `define MEM_SIZE         64'h00000000_00000100  //1KB 
     124`define MEM_SIZE         64'h00000000_00001000  //16KB 
    125125 
    126126// sal: escludo test della DRAM `define TEST_DRAM        1 
     
    689689               if(wb_ack) 
    690690                  begin 
    691                      $display("INFO: OS2WB: PCX_REQ_STEP1_1 wb_addr = %x",wb_addr); 
     691                     $display("INFO: OS2WB: PCX_REQ_STEP1_1 wb_addr = %x wb_data_i = %x wb_data_o =  ",wb_addr, wb_data_i,wb_data_o); 
    692692                     cpx_packet_1[144]<=1;     // Valid 
    693693                     cpx_packet_1[139]<=(pcx_packet_d[122:118]==5'b00000) || (pcx_packet_d[122:118]==5'b10000) ? 1:0; // L2 always miss on load and ifill 
  • trunk/sw/linker.lds

    r32 r33  
    22  
    33OUTPUT_FORMAT("elf64-sparc") 
    4 ENTRY(main) 
     4ENTRY(__setup) 
    55 
    66 
    77SECTIONS {  
    8   .text 0x00000020 : { *(.text) } 
     8  .boot 0x0000000000000020 : { *(.boot);} 
     9  .text : { *(.text) } 
    910  .data : { *(.data) }  
    1011  .bss :  { *(.bss)  *(COMMON) }  
  • trunk/sw/uart.c

    r32 r33  
    11#include "uart.h" 
    22 
    3 const int UART_BASE_ADR[1] = {0}; 
     3const long UART_BASE_ADR[1] = {0x800000FFF0C2C000}; 
    44const int UART_BAUDS[1] = {0}; 
    55const int IN_CLK =50000000; 
     
    3232volatile int tx_level, rx_level; 
    3333 
    34 void main() __attribute__((noreturn)); 
    35 void main()  
     34void sal_main() __attribute__((noreturn)); 
     35void sal_main()  
    3636{ 
    37         asm("mov 0x00, %sp\n"); 
    38         asm("mov 0x00, %fp\n"); 
     37 
     38 
     39/* 
     40  #define CONFIG_SYS_GBL_DATA_SIZE       128     / size in bytes reserved for  initial data  
     41  #define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE) 
     42  #define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET 
     43 
     44 
     45stackp: 
     46                set     CONFIG_SYS_INIT_SP_OFFSET, %fp 
     47                andn    %fp, 0x0f, %fp 
     48                sub     %fp, 64, %sp 
     49*/ 
    3950        uart_init(0); 
    4051        for(;;) {  
     
    4960        int divisor; 
    5061        float float_divisor; 
    51          
    5262        /* Reset receiver and transmiter */ 
    5363        REG8( UART_FCR ) = UART_FCR_ENABLE_FIFO | UART_FCR_CLEAR_RCVR | UART_FCR_CLEAR_XMIT | UART_FCR_TRIGGER_14; 
    54          
     64        //asm("clr %sp \n");     
     65        //asm("sethi %hi(8), %sp \n");   
     66        //asm("mov 0xfff, %sp \n");      
     67 
    5568        /* Disable all interrupts */ 
    5669        REG8(UART_BASE_ADR[core] + UART_IER) = 0x00; 
  • trunk/tools/compila

    r30 r33  
    99 
    1010 
     11#assembla il boot.S 
     12/opt/sparc64-sun-solaris2.8-toolchain/bin/sparc-sun-solaris2.8-as -64 boot.S -o boot.o 
     13 
    1114## compila con ISA SPARC-V9 
    12 /opt/sparc64-sun-solaris2.8-toolchain/bin/sparc64-sun-solaris2.8-gcc -ffreestanding -nostdinc -Os -c $1.c 
     15/opt/sparc64-sun-solaris2.8-toolchain/bin/sparc64-sun-solaris2.8-gcc -m64 -ffreestanding -nostdinc -Os -c $1.c 
    1316 
    1417## linka con ISA SPARC-V9 a 64 bits 
    1518echo "create $1.bin" 
    16 /opt/sparc64-sun-solaris2.8-toolchain/sparc64-sun-solaris2.8/bin/ld -melf64_sparc --script linker.lds $1.o -o $1.bin 
     19/opt/sparc64-sun-solaris2.8-toolchain/sparc64-sun-solaris2.8/bin/ld -melf64_sparc --script linker.lds boot.o $1.o -o $1.bin 
    1720 
    1821 
Note: See TracChangeset for help on using the changeset viewer.