Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
X
xcap-capability-linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xcap
xcap-capability-linux
Commits
0d4c5664
Commit
0d4c5664
authored
Sep 16, 2014
by
Charles Jacobsen
Committed by
Vikram Narayanan
Oct 25, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed some obvious errors, still getting crash.
parent
4b3d41c7
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
+15
-0
drivers/lcd-prototype/test/customer-idl.c
drivers/lcd-prototype/test/customer-idl.c
+1
-0
drivers/lcd-prototype/test/dealer-idl.c
drivers/lcd-prototype/test/dealer-idl.c
+14
-0
No files found.
drivers/lcd-prototype/test/customer-idl.c
View file @
0d4c5664
...
...
@@ -95,6 +95,7 @@ void dealer_return_car(struct automobile *a)
* Free on callee side
*/
lcd_store_r0
(
DEALER_RETURN_CAR
);
lcd_store_r1
(
a
->
self
);
ret
=
lcd_call
(
CUSTOMER_DEALER_INTERFACE_CAP
);
if
(
ret
)
{
LCD_ERR
(
"call failed"
);
...
...
drivers/lcd-prototype/test/dealer-idl.c
View file @
0d4c5664
...
...
@@ -110,6 +110,7 @@ static int dealer_buy_car_callee(void)
ret
=
-
1
;
goto
fail1
;
}
LCD_MSG
(
"dealer addr for a = %p"
,
a
);
/*
* Alloc capabilities
*/
...
...
@@ -161,6 +162,11 @@ static int dealer_return_car_callee(void)
int
ret
;
struct
automobile
*
a
;
dsptr_t
auto_dsptr
;
cptr_t
reply_cptr
;
/*
* Remember reply cptr
*/
reply_cptr
=
current_lcd
()
->
utcb
.
reply_endpoint_cap
;
/*
* Get and remove engine from data store
*/
...
...
@@ -171,6 +177,7 @@ static int dealer_return_car_callee(void)
ret
=
-
EINVAL
;
goto
fail1
;
}
LCD_MSG
(
"dealer addr for a (return) = %p"
,
a
);
/*
* Return car
*/
...
...
@@ -179,6 +186,7 @@ static int dealer_return_car_callee(void)
* Reply
*/
lcd_store_r0
(
0
);
current
->
lcd
->
utcb
.
reply_endpoint_cap
=
reply_cptr
;
ret
=
lcd_reply
();
if
(
ret
)
LCD_ERR
(
"couldn't reply"
);
...
...
@@ -200,6 +208,11 @@ fail1:
int
dealer_die_callee
(
void
)
{
int
ret
;
cptr_t
reply_cptr
;
/*
* Remember reply cap
*/
reply_cptr
=
current_lcd
()
->
utcb
.
reply_endpoint_cap
;
/*
* Call internal exit
*/
...
...
@@ -215,6 +228,7 @@ int dealer_die_callee(void)
* Reply
*/
lcd_store_r0
(
0
);
current
->
lcd
->
utcb
.
reply_endpoint_cap
=
reply_cptr
;
ret
=
lcd_reply
();
if
(
ret
)
LCD_ERR
(
"couldn't reply"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment