Ignore:
Timestamp:
Apr 9, 1997, 2:05:50 PM (24 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
48d6de3
Parents:
bed475e
Message:

Added ka9q tcpip stack and network driver for the gen68360. This effort
was done based on the 3.6.0 release and had to be autoconf'ed locally.
It is turned on is the bsp enables it and it is not explicitly disabled
via the configure option --disable-tcpip. As many warnings as possible
were removed locally after the code was merged. Only the gen68360
and mvme136 bsps were compiled this way.

The ka9q port and network driver were submitted by Eric Norum
(eric@…).

The network demo programs are not included in the tree at this point.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/m68k/gen68360/startup/linkcmds.prom

    rbed475e re2d79559  
    11/*
    22 * This file contains GNU linker directives for a generic MC68360 board.
    3  * These linker directives are for producing a PROM version..
    4  * To create the PROM image from the linkter output you must use objcopy
     3 * Variations in hardware type and dynamic memory size can be made
     4 * by overriding some values with linker command-line arguments.
     5 *
     6 * These linker directives are for producing a BOOTP PROM.
     7 * To create the PROM image from the linker output you must use objcopy
    58 * (--adjust-section-vma) to place the data segment at the end of the text
    69 * segment in the PROM.  The start-up code takes care of copying this region
     
    2124
    2225/*
    23  * Declare on-board memory
     26 * Declare some sizes.
     27 * XXX: The assignment of ". += XyzSize;" fails in older gld's if the
     28 *      number used there is not constant.  If this happens to you, edit
     29 *      the lines marked XXX below to use a constant value.
     30 */
     31RamSize = DEFINED(RamSize) ? RamSize : 4M;
     32HeapSize = DEFINED(HeapSize) ? HeapSize : 0x10000;
     33StackSize = DEFINED(StackSize) ? StackSize : 0x1000;
     34
     35/*
     36 * Declare hardware type
     37 */
     38MC68360HardwareTypeMotorolaGeneric = 0;
     39MC68360HardwareTypeAtlasHSB = 1;
     40MC68360HardwareType = DEFINED(MC68360HardwareType) ? MC68360HardwareType : 0;
     41
     42/*
     43 * Declare on-board memory.
     44 * It would be nice if the ram length could be given as
     45 * LENGTH=RamSize, but gld doesn't allow non-constant
     46 * values in the LENGTH expression. 
    2447 */
    2548MEMORY {
    26           ram : ORIGIN = 0x00000000, LENGTH = 4M
     49          ram : ORIGIN = 0x00000000, LENGTH = 64M
    2750          rom : ORIGIN = 0xFF000000, LENGTH = 1M
    2851        dpram : ORIGIN = 0xFE000000, LENGTH = 8k
     
    3053
    3154/*
    32  * Declare some sizes
     55 * Declare low-order three octets of Ethernet address.
    3356 */
    34 HeapSize = DEFINED(HeapSize) ? HeapSize : 0x10000;
    35 StackSize = DEFINED(StackSize) ? StackSize : 0x1000;
     57ETHERNET_ADDRESS = DEFINED(ETHERNET_ADDRESS) ? ETHERNET_ADDRESS : 0xDEAD12;
    3658
    3759/*
    38  * Declare low-order three octets of Ethernet address
     60 * Declare hardware type.
     61 * Acceptable values are:
     62 *      0 - Generic system as described in the MC68360 User's Manual
     63 *          (MC68360UM/AD Rev. 1).
     64 *      1 - ATLAS Computer Equipment Incorporated ACE360/HSB.
    3965 */
    40 ETHERNET_ADDRESS = DEFINED(ETHERNET_ADDRESS) ? ETHERNET_ADDRESS : 0xDEAD12;
     66MC68360HardwareType = DEFINED(MC68360HardwareType) ? MC68360HardwareType : 0;
    4167
    4268/*
     
    4470 */
    4571SECTIONS {
     72        /*
     73         * Hardware variations
     74         */
     75        _RamSize = RamSize;
     76        __RamSize = RamSize;
     77        _MC68360HardwareType = MC68360HardwareType;
     78        __MC68360HardwareType = MC68360HardwareType;
     79        _MC68360HardwareTypeMotorolaGeneric = MC68360HardwareTypeMotorolaGeneric;
     80        __MC68360HardwareTypeMotorolaGeneric = MC68360HardwareTypeMotorolaGeneric;
     81        _MC68360HardwareTypeAtlasHSB = MC68360HardwareTypeAtlasHSB;
     82        __MC68360HardwareTypeAtlasHSB = MC68360HardwareTypeAtlasHSB;
     83
    4684        /*
    4785         * Boot PROM
     
    89127                _HeapStart = .;
    90128                __HeapStart = .;
    91                 . += HeapSize;
    92                 . += StackSize;
     129                . += HeapSize;  /* XXX -- Old gld can't handle this */
     130                . += StackSize; /* XXX -- Old gld can't handle this */
     131                /* . += 0x10000; */ /* HeapSize for old gld */
     132                /* . += 0x1000;  */ /* StackSize for old gld */
    93133                . = ALIGN (16);
    94134                stack_init = .;
     
    108148
    109149        } >dpram
    110 
    111150}
Note: See TracChangeset for help on using the changeset viewer.