Print this page
loader: pass args along to unix in C
There's no reason why we can't pass the args gotten from the bootloader to
unix in C.
Note: loader's _start sets the ATAG pointer to 0x100. This change simply
propagates it to unix.
@@ -9,10 +9,11 @@
* http://www.illumos.org/license/CDDL.
*/
/*
* Copyright (c) 2014 Joyent, Inc. All rights reserved.
+ * Copyright (c) 2015 Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
*/
#include "fakeloader.h"
#include <sys/types.h>
@@ -705,8 +706,8 @@
/* Renable caches */
armv6_dcache_enable();
armv6_icache_enable();
/* we should never come back */
- fakeload_exec(unix_start);
+ fakeload_exec(ident, ident2, chain, unix_start);
fakeload_panic("hit the end of the world\n");
}