kernel_init: config_load, native: config_load: set id/address to PID#700
kernel_init: config_load, native: config_load: set id/address to PID#700LudwigKnuepfer merged 2 commits intoRIOT-OS:masterfrom
Conversation
LudwigKnuepfer
commented
Feb 13, 2014
- set nativenet address and id to the host process' PID on config_load
- call config_load in kernel_init
boards/native/board_config.c
Outdated
There was a problem hiding this comment.
- * XXX: loading not implemented
+ * XXX: loading is implementedOr just scrape the lines. :)
There was a problem hiding this comment.
I'd rather leave it as the intention is to be able to load the whole configuration from file at some point.
|
nice snipe. gratulations for hitting #700! |
|
Wouldn't it make more sense to always call config_load() when the config module is loaded (and not only with auto_init)? |
I guess a debug.h include is missing. |
|
@OlegHahm Always call config_load() - from where? |
|
Something like kernel_init()? I dunno. |
also add include addresses RIOT-OS#700 (comment)
|
rebased and issues addressed |
|
Since config_save isn't implemented I know get a weird address when using native with config module. |
|
If you mean PID with weird: that's half the idea of this PR. |
|
Maybe I shouldn't comment on stuff I haven't looked into for weeks after midnight and comment on them... |
|
You are still lacking sleep. |
|
Well, than ACK Sorry, one more mistake: core changes, need a second ACK then. |
|
Needs squashing. |
|
rebased and sqashed |
|
Quid pro quo? #859 has already one ACK. |
There was a problem hiding this comment.
Is this a write-only variable?
Was this discussion finished? |
|
I migrated the call, yes. |
|
Ah, now I see. I was confused by extern int main(void);
@@ -81,6 +88,11 @@ void kernel_init(void)At first glance I though you used it in the project's main. ACK. |
kernel_init: config_load, native: config_load: set id/address to PID