Changeset 7886

Show
Ignore:
Timestamp:
02/28/08 20:25:51
Author:
eb
Message:

work-in-progress on supporting user SPU code

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • gnuradio/branches/developers/eb/gcell-wip/src/include/gc_job_desc.h

    r7833 r7886  
    7171  JS_ARGS_TOO_LONG,         // total length of EA args exceeds limit 
    7272  JS_BAD_JUJU,              // misc problem: you're having a bad day 
     73  JS_BAD_JOB_DESC,          // gc_job_desc was not allocated using mgr->alloc_job_desc() 
    7374 
    7475} gc_job_status_t; 
  • gnuradio/branches/developers/eb/gcell-wip/src/lib/gc_job_manager_impl.cc

    r7853 r7886  
    476476  if (unlikely(d_shutdown_requested)){ 
    477477    jd->status = JS_SHUTTING_DOWN; 
     478    return false; 
     479  } 
     480 
     481  // Ensure it's one of our job descriptors 
     482 
     483  if (jd < d_jd || jd >= &d_jd[d_options.max_jobs]){ 
     484    jd->status = JS_BAD_JOB_DESC; 
    478485    return false; 
    479486  } 
  • gnuradio/branches/developers/eb/gcell-wip/src/lib/spu/Makefile.am

    r7747 r7886  
    11# 
    2 # Copyright 2007 Free Software Foundation, Inc. 
     2# Copyright 2007,2008 Free Software Foundation, Inc. 
    33#  
    44# This file is part of GNU Radio 
     
    1919# 
    2020 
    21 AR=spu-ar 
    22 RANLIB=spu-ranlib 
    23 CC=spu-cc 
    24 LD=spu-ld 
    25  
    26 WARNINGS = \ 
    27   -Wall -Wextra -Wstrict-prototypes -Werror-implicit-function-declaration 
    28  
    29 # Need to override user stuff even though it gives a warning. 
    30 # (Otherwise these contain PPE related info.) 
    31  
    32 CPPFLAGS= 
    33 LDFLAGS= 
    34 CFLAGS = -O3 --std=gnu99 -fstrict-aliasing $(WARNINGS) 
    35 # -funroll-all-loops 
    36  
    37 include $(top_srcdir)/Makefile.common 
     21include $(top_srcdir)/Makefile.common.spu 
    3822 
    3923AM_CPPFLAGS = $(SPU_DEFINES_AND_INCLUDES) $(IBM_SPU_SYNC_INCLUDES) 
  • gnuradio/branches/developers/eb/gcell-wip/src/lib/spu/gc_spu_procs.c

    r7853 r7886  
    2222#include <gc_spu_procs.h> 
    2323#include <gc_delay.h> 
     24#include <gc_declare_proc.h> 
    2425#include <string.h> 
    25 //#include <stdio.h> 
    2626 
    2727 
     
    3636{ 
    3737} 
     38 
    3839 
    3940static void 
     
    121122} 
    122123 
     124GC_DECLARE_PROC(gcp_qa_nop, "qa_nop"); 
     125GC_DECLARE_PROC(gcp_qa_udelay, "qa_udelay"); 
     126GC_DECLARE_PROC(gcp_qa_sum_shorts, "qa_sum_shorts"); 
     127GC_DECLARE_PROC(gcp_qa_put_seq, "qa_put_seq"); 
     128GC_DECLARE_PROC(gcp_qa_put_zeros, "qa_put_zeros"); 
     129GC_DECLARE_PROC(gcp_qa_copy, "qa_copy"); 
     130 
    123131 
    124132gc_spu_proc_t gc_proc_table[GCP_NPROC_IDS] = {