Skip to content
Snippets Groups Projects
Commit 6538c682 authored by Warner Losh's avatar Warner Losh
Browse files

bsd-user; Update the definitions of __put_user and __get_user macros


Use __builtin_choose_expr to avoid type promotion from ?:
in __put_user_e and __get_user_e macros.
Copied from linux-user/qemu.h, originally by Blue Swirl.

Signed-off-by: default avatarWarner Losh <imp@bsdimp.com>
Signed-off-by: default avatarKarim Taha <kariem.taha2.7@gmail.com>
Reviewed-by: default avatarRichard Henderson <richard.henderson@linaro.org>
parent 15b950ec
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment