Browse Source

Merge pull request #907 from antonio-nino-diaz-arm/an/smc-ret0

tspd:FWU:Fix usage of SMC_RET0
pull/908/merge
davidcunado-arm 8 years ago
committed by GitHub
parent
commit
79199f702e
  1. 2
      bl1/bl1_fwu.c
  2. 1
      include/lib/smcc.h
  3. 2
      services/spd/tspd/tspd_main.c

2
bl1/bl1_fwu.c

@ -109,7 +109,7 @@ register_t bl1_fwu_smc_handler(unsigned int smc_fid,
break;
}
SMC_RET0(handle);
SMC_RET1(handle, SMC_UNK);
}
/*******************************************************************************

1
include/lib/smcc.h

@ -58,6 +58,7 @@
#define SMC_64 1
#define SMC_32 0
#define SMC_OK 0
#define SMC_UNK 0xffffffff
#define SMC_TYPE_FAST ULL(1)
#define SMC_TYPE_STD 0

2
services/spd/tspd/tspd_main.c

@ -631,7 +631,7 @@ uint64_t tspd_smc_handler(uint32_t smc_fid,
cm_el1_sysregs_context_restore(NON_SECURE);
cm_set_next_eret_context(NON_SECURE);
SMC_RET0(handle);
SMC_RET1(handle, SMC_OK);
/*
* Request from non secure world to resume the preempted

Loading…
Cancel
Save