Improve global variable documentation.

Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>


git-svn-id: svn://coreboot.org/repository/coreboot-v3@831 f3766cd6-281f-0410-b1cd-43a5c92072e9
This commit is contained in:
Carl-Daniel Hailfinger 2008-08-27 23:15:28 +00:00
parent 27b2fb4f07
commit e6dc58b16f

View file

@ -36,6 +36,10 @@
* is NO buffer at the end of the struct, so having zero-sized arrays at the
* end or similar stuff for which the compiler can't determine the final size
* will corrupt memory. If you don't try to be clever, everything will be fine.
*
* BIG FAT WARNING: Never write to global variables without using accessor
* functions. global_vars_init() is the place to call variable-specific
* initialization functions.
*/
struct global_vars {
#ifdef CONFIG_CONSOLE_BUFFER