Ignore:
Timestamp:
Dec 12, 2014, 4:30:49 PM (10 years ago)
Author:
alain
Message:

Define the kernel_heap[X_SIZE][Y_SIZE] global variables,
and the TTY related global variables in boot.c.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/giet_boot/boot.c

    r460 r464  
    5353//    The first word contains the flags, the second word contains the PPN.
    5454//
    55 //    The page tables can be distributed in all clusters.
     55//    When this is required in the mapping, the page tables can be replicated
     56//    in all clusters.
    5657///////////////////////////////////////////////////////////////////////////////////////
    5758// Implementation Notes:
     
    6364
    6465#include <giet_config.h>
     66#include <hard_config.h>
    6567#include <mapping_info.h>
    66 #include <mwmr_channel.h>
     68#include <kernel_malloc.h>
    6769#include <barrier.h>
    6870#include <memspace.h>
     
    8486#include <utils.h>
    8587#include <tty0.h>
     88#include <locks.h>
    8689#include <elf-types.h>
    87 
    88 // for boot FAT initialisation
    8990#include <fat32.h>
    90 
    9191#include <mips32_registers.h>
    9292#include <stdarg.h>
     
    142142pmem_alloc_t           boot_pmem_alloc[X_SIZE][Y_SIZE];
    143143
     144// Distributed kernel heap (one per cluster)
     145__attribute__((section (".bootdata")))
     146kernel_heap_t          kernel_heap[X_SIZE][Y_SIZE];
     147
    144148// Schedulers virtual base addresses array (one per processor)
    145149__attribute__((section (".bootdata")))
     
    161165__attribute__((section (".bootdata")))
    162166unsigned int           _ptabs_max_pt2;
     167
     168// Global variables for TTY
     169__attribute__((section (".bootdata")))
     170sbt_lock_t             _tty_tx_lock[NB_TTY_CHANNELS]   __attribute__((aligned(64)));
     171
     172__attribute__((section (".bootdata")))
     173unsigned int           _tty_rx_full[NB_TTY_CHANNELS];
     174
     175__attribute__((section (".bootdata")))
     176unsigned int           _tty_rx_buf[NB_TTY_CHANNELS];
     177
     178
    163179
    164180/////////////////////////////////////////////////////////////////////
Note: See TracChangeset for help on using the changeset viewer.