Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
advLigoRTS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CDS
software
advLigoRTS
Commits
c8c09bb0
Commit
c8c09bb0
authored
2 years ago
by
Ezekiel Dohmen
Browse files
Options
Downloads
Patches
Plain Diff
mapping segment
parent
3df54145
No related branches found
Branches containing commit
No related tags found
Tags containing commit
3 merge requests
!439
RCG 5.0 release fro deb 10
,
!415
Cdsrfm to use new dolphin interface
,
!411
Userspace dolphin daemon, netlink dolphin setup for real time models
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/dolphin_daemon/src/Dolphin_SISCI_Resource.cpp
+10
-0
10 additions, 0 deletions
src/dolphin_daemon/src/Dolphin_SISCI_Resource.cpp
with
10 additions
and
0 deletions
src/dolphin_daemon/src/Dolphin_SISCI_Resource.cpp
+
10
−
0
View file @
c8c09bb0
...
...
@@ -110,6 +110,15 @@ DOLPHIN_ERROR_CODES Dolphin_SISCI_Resource::connect_mc_segment(unsigned segment_
return
DOLPHIN_ERROR_SEGMENT_SETUP_ERROR
;
}
/* Map local segment to user space - this is the address to read back data from the reflective memory region */
volatile
void
*
readAddr
=
SCIMapLocalSegment
(
_local_segment
,
&
_local_map
,
0
,
segment_size
,
NULL
,
NO_FLAGS
,
&
error
);
if
(
error
==
SCI_ERR_OK
)
{
spdlog
::
info
(
"Local segment (id=0x{:x}) is mapped to user space at 0x{:x}"
,
segment_id
,
(
unsigned
long
)
readAddr
);
}
else
{
spdlog
::
error
(
"SCIMapLocalSegment failed - Error code 0x{:x}"
,
error
);
return
DOLPHIN_ERROR_SEGMENT_SETUP_ERROR
;
}
// Set the segment available
SCISetSegmentAvailable
(
_local_segment
,
_local_adapter_num
,
NO_FLAGS
,
&
error
);
if
(
error
!=
SCI_ERR_OK
)
{
...
...
@@ -199,6 +208,7 @@ void Dolphin_SISCI_Resource::clean_up_segment()
{
SCIDisconnectSegment
(
_remote_segment
,
NO_FLAGS
,
&
error
);
SCIUnmapSegment
(
_local_map
,
NO_FLAGS
,
&
error
);
SCISetSegmentUnavailable
(
_local_segment
,
_local_adapter_num
,
NO_FLAGS
,
&
error
);
SCIRemoveSegment
(
_local_segment
,
NO_FLAGS
,
&
error
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment