aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFuad Tabba <tabba@google.com>2020-07-16 09:29:32 +0100
committerFuad Tabba <tabba@google.com>2020-07-17 09:00:53 +0100
commit9dc276fbc3772f75fd9cdb59f79a5bc1a3bc3795 (patch)
tree564dac89ce82426b2baf00d08070279b56ee0dc7
parent50469e018d38f5baa15306f5fb964695f1ca1507 (diff)
downloadhafnium-9dc276fbc3772f75fd9cdb59f79a5bc1a3bc3795.tar.gz
[REFACTOR] Fix spelling in comments
Signed-off-by: Fuad Tabba <tabba@google.com> Change-Id: I605eadd92adc2e1a9111c248fc203440deb66ce4
-rw-r--r--inc/vmapi/hf/call.h2
-rw-r--r--src/api.c4
-rw-r--r--src/mm.c4
3 files changed, 5 insertions, 5 deletions
diff --git a/inc/vmapi/hf/call.h b/inc/vmapi/hf/call.h
index 35ce1bb..719da62 100644
--- a/inc/vmapi/hf/call.h
+++ b/inc/vmapi/hf/call.h
@@ -78,7 +78,7 @@ static inline struct ffa_value ffa_yield(void)
* - FFA_ERROR FFA_INVALID_PARAMETERS if the given addresses are not properly
* aligned or are the same.
* - FFA_ERROR FFA_NO_MEMORY if the hypervisor was unable to map the buffers
- * due to insuffient page table memory.
+ * due to insufficient page table memory.
* - FFA_ERROR FFA_DENIED if the pages are already mapped or are not owned by
* the caller.
* - FFA_SUCCESS on success if no further action is needed.
diff --git a/src/api.c b/src/api.c
index 61e8698..418ce50 100644
--- a/src/api.c
+++ b/src/api.c
@@ -821,8 +821,8 @@ struct ffa_value api_ffa_rxtx_map(ipaddr_t send, ipaddr_t recv,
* operation to ensure there will be sufficient memory to recover from
* any failures.
*
- * TODO: the scope of the can be reduced but will require restructuring
- * to keep a single unlock point.
+ * TODO: the scope can be reduced but will require restructuring to
+ * keep a single unlock point.
*/
vm_locked = vm_lock(vm);
diff --git a/src/mm.c b/src/mm.c
index 2e352e9..11fb475 100644
--- a/src/mm.c
+++ b/src/mm.c
@@ -485,7 +485,7 @@ static bool mm_ptable_identity_map(struct mm_ptable *t, paddr_t pa_begin,
* Prepares the given page table for the given address mapping such that it
* will be able to commit the change without failure. It does so by ensuring
* the smallest granularity needed is available. This remains valid provided
- * subsequent operations no not decrease the granularity.
+ * subsequent operations do not decrease the granularity.
*
* In particular, multiple calls to this function will result in the
* corresponding calls to commit the changes to succeed.
@@ -932,7 +932,7 @@ void mm_vm_defrag(struct mm_ptable *t, struct mpool *ppool)
}
/**
- * Gets the mode of the give range of intermediate physical addresses if they
+ * Gets the mode of the given range of intermediate physical addresses if they
* are mapped with the same mode.
*
* Returns true if the range is mapped with the same mode and false otherwise.