mirror of
https://github.com/fail0verflow/switch-coreboot.git
synced 2025-05-04 01:39:18 -04:00
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:
parent
27b2fb4f07
commit
e6dc58b16f
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue