mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 13:15:18 -05:00
Add const to global pointers to strings.
When a global pointer is not declared as constant, gcc will put it in memory. Getting the address of the string it points to requires loading the address of the pointer and then loading the pointer. When the pointer is declared constant, the address of the string is loaded directly. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31345 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
f372212adf
commit
17ed3253fc
4 changed files with 9 additions and 8 deletions
|
|
@ -31,7 +31,7 @@ extern struct spi_node mc13783_spi;
|
|||
|
||||
/* PMIC event service data */
|
||||
static int mc13783_thread_stack[DEFAULT_STACK_SIZE/sizeof(int)];
|
||||
static const char *mc13783_thread_name = "pmic";
|
||||
static const char * const mc13783_thread_name = "pmic";
|
||||
static struct semaphore mc13783_svc_wake;
|
||||
|
||||
/* Synchronous thread communication objects */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue