fix some bugs in netboot. now the diskless support is working.

This commit is contained in:
okuji 2000-05-28 14:30:48 +00:00
parent f85b90abd2
commit 83038ffbbc
5 changed files with 17 additions and 6 deletions

View file

@ -1,3 +1,14 @@
2000-05-28 OKUJI Yoshinori <okuji@gnu.org>
* stage2/asm.S (codestart): Fix a typo: DISKLESS_SUPPORT ->
SUPPORT_DISKLESS.
* stage2/nbloader.S: Fix the image length and the memory length
fields. They shouldn't contain the first sector for a tag.
Mmh..., that is unclear as far as I see the Net Boot Image
Proposal...
* stage2/shared.h (STACKOFF): Enclosed with parentheses.
(PROTSTACKINIT): Likewise.
2000-05-27 OKUJI Yoshinori <okuji@gnu.org> 2000-05-27 OKUJI Yoshinori <okuji@gnu.org>
Add diskless support, mostly based on patches by Christoph Add diskless support, mostly based on patches by Christoph

View file

@ -107,7 +107,7 @@ codestart:
sti /* we're safe again */ sti /* we're safe again */
#ifndef DISKLESS_SUPPORT #ifndef SUPPORT_DISKLESS
/* save boot drive reference */ /* save boot drive reference */
ADDR32 movb %dl, EXT_C(boot_drive) ADDR32 movb %dl, EXT_C(boot_drive)
#endif #endif

View file

@ -41,8 +41,8 @@
.long 0x04000004 .long 0x04000004
.long NBI_DEST_ADDR + 0x0200 .long NBI_DEST_ADDR + 0x0200
.long DISKLESS_SIZE + 0x200 .long DISKLESS_SIZE
.long DISKLESS_SIZE + 0x200 .long DISKLESS_SIZE
/* This ensures that the length of this image will be 1 sector */ /* This ensures that the length of this image will be 1 sector */
. = _start + 0x200 - 1 . = _start + 0x200 - 1

View file

@ -234,8 +234,8 @@ extern char *grub_scratch_mem;
#define PROT_MODE_DSEG 0x10 #define PROT_MODE_DSEG 0x10
#define PSEUDO_RM_CSEG 0x18 #define PSEUDO_RM_CSEG 0x18
#define PSEUDO_RM_DSEG 0x20 #define PSEUDO_RM_DSEG 0x20
#define STACKOFF 0x2000 - 0x10 #define STACKOFF (0x2000 - 0x10)
#define PROTSTACKINIT FSYS_BUF - 0x10 #define PROTSTACKINIT (FSYS_BUF - 0x10)
/* /*