Adds some more error codes

* Add some more error codes
* Change TEESMC{64,32}_GET_PARAM_ATTRS into taking num_params as an
  argument instead of digging it out of the supplied pointer to
  struct teesmc{64,32}_arg