home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / unix / bsd / 2820 < prev    next >
Encoding:
Text File  |  1992-07-25  |  1.6 KB  |  51 lines

  1. Newsgroups: comp.unix.bsd
  2. Path: sparky!uunet!super!rminnich
  3. From: rminnich@super.org (Ronald G Minnich)
  4. Subject: wdbootblk.c
  5. Message-ID: <1992Jul24.173003.12119@super.org>
  6. Sender: news@super.org (USENET News System)
  7. Nntp-Posting-Host: b117
  8. Organization: Supercomputing Research Center (Bowie, MD)
  9. Date: Fri, 24 Jul 1992 17:30:03 GMT
  10. Lines: 39
  11.  
  12.  
  13. on 0.0, i was looking at wdbootblk.c to see why i could not boot a 
  14. > 400k kernel. Now this may not apply to 0.1 source, i don't have that up
  15. yet, but it is interesting. My copy of wdbootblk.c copies itself up to 0x70000
  16. so that there is room for the kernel, but:
  17. reloc:
  18.         movl    $ BIOSRELOC,%esi
  19.         movl    $ RELOC,%edi
  20.         movl    $512,%ecx
  21.         rep
  22.         movsb
  23.  movl $0x60000,%esp
  24.         pushl   $dodisk
  25.         ret
  26.  
  27. note that the stack is set up at 0x60000, which is below the end address
  28. of a kernel bigger than 393216 bytes! once we read in the kernel 
  29. the stack is now hash. I expect that this is the cause of my 
  30. woe. Anyone see a problem putting the stack at RELOC? i.e. stack top is 
  31. at RELOC, which is ok as the first thing we do is a pushl. 
  32.  
  33. so it might look like:
  34. reloc:
  35.         movl    $ BIOSRELOC,%esi
  36.         movl    $ RELOC,%edi
  37.         movl    $512,%ecx
  38.         rep
  39.         movsb
  40.     movl $ RELOC, %esp
  41.         pushl   $dodisk
  42.         ret
  43.  
  44.  
  45. ron
  46. -- 
  47. --------------------------------------------------------------------------------
  48. satisfaction: the feeling you get when you        | rminnich@super.org
  49. run newfs on a DOS disk so you can install 386BSD.| (301)-805-7451
  50. Now if only I could do this to AIX on the RS/6k ...|
  51.