From: Lawrence S. <ljs...@sf...> - 2018-03-05 03:51:16
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "A pseudo Operating System for the Dreamcast.". The branch, master has been updated via a84fe5eded5e0406acbadb92c96ae546964a588b (commit) from e92de2996feff8a68a7cd6d25be472efb84e3852 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit a84fe5eded5e0406acbadb92c96ae546964a588b Author: Lawrence Sebald <ljs...@us...> Date: Sun Mar 4 22:50:26 2018 -0500 Update some comments in the <dc/flashrom.h> ----------------------------------------------------------------------- Summary of changes: kernel/arch/dreamcast/include/dc/flashrom.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/kernel/arch/dreamcast/include/dc/flashrom.h b/kernel/arch/dreamcast/include/dc/flashrom.h index f035f54..16598c9 100644 --- a/kernel/arch/dreamcast/include/dc/flashrom.h +++ b/kernel/arch/dreamcast/include/dc/flashrom.h @@ -13,10 +13,8 @@ utilities to make it easier to use the flashrom info. Note that because the flash writing can be such a dangerous thing potentially (I haven't deleted my flash to see what happens, but given the info stored here it sounds like - a Bad Idea(tm)) the syscalls for the WRITE and DELETE operations are not - enabled by default. If you are 100% sure you really want to be writing to - the flash and you know what you're doing, then you can edit flashrom.c and - re-enable them there. + a Bad Idea(tm)), extreme care should be taken if you choose to use these + functions! \author Dan Potter \author Lawrence Sebald @@ -133,7 +131,10 @@ int flashrom_write(int offset, void * buffer, int bytes); offset, that entire partition of the flashrom will be deleted and all data will be reset to 0xFF bytes. - \param offset The partition to erase. + \note This does not rewrite the magic block to the start of the partition. + It is your responsibility to do this after running this function. + + \param offset The offset of the start of the partition to erase. \retval 0 On success. \retval -1 On error. */ hooks/post-receive -- A pseudo Operating System for the Dreamcast. |