Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Arm Trusted Firmware
Commits
79199f70
Commit
79199f70
authored
7 years ago
by
davidcunado-arm
Committed by
GitHub
7 years ago
Browse files
Options
Download
Plain Diff
Merge pull request #907 from antonio-nino-diaz-arm/an/smc-ret0
tspd:FWU:Fix usage of SMC_RET0
parents
b7a52a78
7a317a70
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
bl1/bl1_fwu.c
+1
-1
bl1/bl1_fwu.c
include/lib/smcc.h
+1
-0
include/lib/smcc.h
services/spd/tspd/tspd_main.c
+1
-1
services/spd/tspd/tspd_main.c
with
3 additions
and
2 deletions
+3
-2
bl1/bl1_fwu.c
View file @
79199f70
...
@@ -109,7 +109,7 @@ register_t bl1_fwu_smc_handler(unsigned int smc_fid,
...
@@ -109,7 +109,7 @@ register_t bl1_fwu_smc_handler(unsigned int smc_fid,
break
;
break
;
}
}
SMC_RET
0
(
handle
);
SMC_RET
1
(
handle
,
SMC_UNK
);
}
}
/*******************************************************************************
/*******************************************************************************
...
...
This diff is collapsed.
Click to expand it.
include/lib/smcc.h
View file @
79199f70
...
@@ -58,6 +58,7 @@
...
@@ -58,6 +58,7 @@
#define SMC_64 1
#define SMC_64 1
#define SMC_32 0
#define SMC_32 0
#define SMC_OK 0
#define SMC_UNK 0xffffffff
#define SMC_UNK 0xffffffff
#define SMC_TYPE_FAST ULL(1)
#define SMC_TYPE_FAST ULL(1)
#define SMC_TYPE_STD 0
#define SMC_TYPE_STD 0
...
...
This diff is collapsed.
Click to expand it.
services/spd/tspd/tspd_main.c
View file @
79199f70
...
@@ -631,7 +631,7 @@ uint64_t tspd_smc_handler(uint32_t smc_fid,
...
@@ -631,7 +631,7 @@ uint64_t tspd_smc_handler(uint32_t smc_fid,
cm_el1_sysregs_context_restore
(
NON_SECURE
);
cm_el1_sysregs_context_restore
(
NON_SECURE
);
cm_set_next_eret_context
(
NON_SECURE
);
cm_set_next_eret_context
(
NON_SECURE
);
SMC_RET
0
(
handle
);
SMC_RET
1
(
handle
,
SMC_OK
);
/*
/*
* Request from non secure world to resume the preempted
* Request from non secure world to resume the preempted
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Projects
Groups
Snippets
Help