50    uint32_t *
data = ds_regions->
regions[region].pointer;
 
   61    for (uint32_t i = 0; i < n_words; i++) {
 
   64    if (sum != checksum) {
 
   65        log_error(
"[ERROR] Region %u with %u words starting at 0x%08x: " 
   66                "checksum %u does not match computed sum %u",
 
   67                region, n_words, 
data, checksum, sum);
 
 
   84    log_debug(
"SDRAM data begins at address: %08x", user0);
 
   88    for (uint32_t region = 0; region < N_REGIONS; region++) {
 
 
  104        log_error(
"[ERROR] Version number is incorrect: %08x", ds_regions->
version);
 
 
data_specification_metadata_t * data_specification_get_data_address(void)
Gets the location of the data for this core using the user0 entry of the SARK VCPU structure.
static void verify_checksum(data_specification_metadata_t *ds_regions, uint32_t region)
Verify the checksum of a region; on failure, RTE.
@ DATA_SPECIFICATION_VERSION
The version of the spec we support; only one was ever supported.
@ VERSION_MASK
The mask to apply to the version number to get the minor version.
@ DATA_SPECIFICATION_MAGIC_NUMBER
bool data_specification_read_header(data_specification_metadata_t *ds_regions)
Reads the header from the address given and checks if the parameters are of the correct values.
Data Specification region access API.
uint32_t n_words
The number of valid words in the region.
region_desc_t regions[]
The regions; as many as required.
uint32_t checksum
Simple checksum which is rounded 32-bit unsigned sum of words.
uint32_t magic_number
A magic number, used to verify that the pointer is sane.
uint32_t version
The version of the DSE data layout specification being followed.
static uint32_t data[ITEMS_PER_DATA_PACKET]
SpiNNaker debug header file.
void log_error(const char *message,...)
This function logs errors. Errors usually indicate a serious fault in the program,...
void log_debug(const char *message,...)
This function logs debugging messages. This level of message is normally not printed except when the ...
void log_info(const char *message,...)
This function logs informational messages. This is the lowest level of message normally printed.
void rt_error(uint code,...)
uint spin1_get_core_id(void)