Wire up net_stack_cleanup()
The NetStack.h header is currently not usable from C code. So while net_stack_init() is called from platform code, we cannot call net_stack_cleanup() from OpenFirmware's platform_start_kernel(). Thus call it directly from main()'s cleanup TODO, having assured that the function is a no-op when no network stack was initialized. Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
This commit is contained in:
parent
ce6fdd33ef
commit
2960780faa
@ -14,6 +14,7 @@
|
||||
#include <boot/heap.h>
|
||||
#include <boot/PathBlacklist.h>
|
||||
#include <boot/stdio.h>
|
||||
#include <boot/net/NetStack.h>
|
||||
|
||||
#include "file_systems/packagefs/packagefs.h"
|
||||
|
||||
@ -145,6 +146,7 @@ main(stage2_args *args)
|
||||
gKernelArgs.boot_volume = buffer;
|
||||
gKernelArgs.boot_volume_size = gBootVolume.ContentSize();
|
||||
|
||||
net_stack_cleanup();
|
||||
// ToDo: cleanup, heap_release() etc.
|
||||
heap_print_statistics();
|
||||
platform_start_kernel();
|
||||
|
Loading…
x
Reference in New Issue
Block a user