summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrsc <rsc>2007-08-21 19:22:27 +0000
committerrsc <rsc>2007-08-21 19:22:27 +0000
commit0073beee5248acc90c6bd57bb618014f3357c8f4 (patch)
treec4a6b1d300e5ed76280efcede6bf24d329419e93
parentf32f3638f4c34fbf2fc4398878e6304612bb3283 (diff)
downloadxv6-labs-0073beee5248acc90c6bd57bb618014f3357c8f4.tar.gz
xv6-labs-0073beee5248acc90c6bd57bb618014f3357c8f4.tar.bz2
xv6-labs-0073beee5248acc90c6bd57bb618014f3357c8f4.zip
remove dead code
-rw-r--r--main.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/main.c b/main.c
index 2774636..aea5d80 100644
--- a/main.c
+++ b/main.c
@@ -106,22 +106,6 @@ mpmain(void)
scheduler();
}
-char initcode[] = {
- /* push ptr to argv */ 0x6a, 0x1c,
- /* push ptr to "/init" */ 0x6a, 0x16,
- /* push fake ret addr */ 0x6a, 0x00,
- /* mov $SYS_exec, %eax */ 0xb8, 0x09, 0x00, 0x00, 0x00,
- /* int $0x30 */ 0xcd, 0x30,
- /* Lx: */
- /* mov $SYS_exit, %eax */ 0xb8, 0x02, 0x00, 0x00, 0x00,
- /* int $0x30 */ 0xcd, 0x30,
- /* jmp Lx */ 0xeb, 0xf7,
-
- /* "/init\0" */ 0x2f, 0x69, 0x6e, 0x69, 0x74, 0x00,
- /* ptr to "/init" */ 0x16, 0x00, 0x00, 0x00,
- /* 0 */ 0x00, 0x00, 0x00, 0x00
-};
-
void
proc0init(void)
{