FWU: Add checking the state of the running image

The Firmware Update partition reads the image_ok flag to check
whether the running image has been confirmed. The running image
state is set according to this flag in psa_fwu_query().

Change-Id: I9cf58b7d6f3b87a50e0ac6f926e30170bb01b8f1
Signed-off-by: Sherry Zhang <sherry.zhang2@arm.com>
diff --git a/docs/technical_references/tfm_fwu_service.rst b/docs/technical_references/tfm_fwu_service.rst
index 030c094..46c98f3 100644
--- a/docs/technical_references/tfm_fwu_service.rst
+++ b/docs/technical_references/tfm_fwu_service.rst
@@ -174,7 +174,7 @@
 
 .. code-block:: c
 
-    psa_status_t fwu_bootloader_mark_image_accepted(void);
+    psa_status_t fwu_bootloader_mark_image_accepted(bl_image_id_t bootloader_image_id);
 
 **Description**
 
diff --git a/docs/technical_references/tfm_secure_boot.rst b/docs/technical_references/tfm_secure_boot.rst
index 528e7b7..1907cea 100644
--- a/docs/technical_references/tfm_secure_boot.rst
+++ b/docs/technical_references/tfm_secure_boot.rst
@@ -797,8 +797,9 @@
 The shim layer of the Firmware Update partition calls the APIs in
 bootutil_misc.c to control the image status.
 
-- Call ``boot_write_magic()`` to make the image as a candidate image for booting.
-- Call ``boot_set_confirmed()`` to make the image as a permanent image.
+- Call ``boot_set_pending_multi()`` to make the image as a candidate image for
+  booting.
+- Call ``boot_set_confirmed_multi()`` to make the image as a permanent image.
 
 .. Note::
     Currently, in direct-xip mode and ram-load mode, TF-M cannot get the