Code Review
/
o-du
/
l2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
JIRA ID:[ODUHIGH-282]:UL REASSEMBLE SDU
[o-du/l2.git]
/
src
/
5gnrsch
/
sch_utils.h
diff --git
a/src/5gnrsch/sch_utils.h
b/src/5gnrsch/sch_utils.h
index
d0fc85f
..
6ac5c9f
100644
(file)
--- a/
src/5gnrsch/sch_utils.h
+++ b/
src/5gnrsch/sch_utils.h
@@
-47,7
+47,7
@@
/* allocate and zero out a static buffer */
#define SCH_ALLOC(_datPtr, _size) \
{ \
/* allocate and zero out a static buffer */
#define SCH_ALLOC(_datPtr, _size) \
{ \
-
in
t _ret; \
+
uint8_
t _ret; \
_ret = SGetSBuf(SCH_MEM_REGION, SCH_POOL, \
(Data **)&_datPtr, _size); \
if(_ret == ROK) \
_ret = SGetSBuf(SCH_MEM_REGION, SCH_POOL, \
(Data **)&_datPtr, _size); \
if(_ret == ROK) \
@@
-67,6
+67,7
@@
{ \
SPutSBuf(SCH_MEM_REGION, SCH_POOL, \
(Data *)_datPtr, _size); \
{ \
SPutSBuf(SCH_MEM_REGION, SCH_POOL, \
(Data *)_datPtr, _size); \
+ _datPtr = NULLP; \
} \
}
} \
}
@@
-82,8
+83,8
@@
_pst.selector = ODU_SELECTOR_TC; \
}
_pst.selector = ODU_SELECTOR_TC; \
}
-
extern
int8_t coresetIdxTable[MAX_CORESET_INDEX][4];
-
extern
int8_t searchSpaceIdxTable[MAX_SEARCH_SPACE_INDEX][4];
+int8_t coresetIdxTable[MAX_CORESET_INDEX][4];
+int8_t searchSpaceIdxTable[MAX_SEARCH_SPACE_INDEX][4];
/* functions declarations */
void freqDomRscAllocType0(uint16_t startPrb, uint16_t prbSize, uint8_t *freqDomain);
/* functions declarations */
void freqDomRscAllocType0(uint16_t startPrb, uint16_t prbSize, uint8_t *freqDomain);