]> git.lizzy.rs Git - plan9front.git/blobdiff - sys/src/boot/pc/pxe.c
9boot: increase timeout, do less printing
[plan9front.git] / sys / src / boot / pc / pxe.c
index 5fefd72b0e765d57d72b7fc75886396eacb54d2e..a950b2579b34b1db74b450db2696927abdc48c09 100644 (file)
@@ -113,8 +113,14 @@ unload(void)
                uchar status[2];
                uchar junk[10];
        } buf;
-       memset(&buf, 0, sizeof(buf));
-       pxecall(0x70, &buf);
+       static uchar shutdown[] = { 0x05, 0x070, 0x02, 0 };
+       uchar *o;
+
+       for(o = shutdown; *o; o++){ 
+               memset(&buf, 0, sizeof(buf));
+               if(pxecall(*o, &buf))
+                       break;
+       }
 }
 
 static int