wok rev 21620

linld: more ram for zImage
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat May 25 13:19:35 2019 +0200 (2019-05-25)
parents 8888e7304143
children 042675028c83
files linld/stuff/src/LOAD.CPP
line diff
     1.1 --- a/linld/stuff/src/LOAD.CPP	Sat May 25 14:09:45 2019 +0300
     1.2 +++ b/linld/stuff/src/LOAD.CPP	Sat May 25 13:19:35 2019 +0200
     1.3 @@ -175,15 +175,8 @@
     1.4      if((int)root_dev) kernelparams->root_dev = root_dev;
     1.5      version_string = "";
     1.6  
     1.7 -#if 1
     1.8      if(kernelparams->header == HdrS) { // starting linux 1.3.73
     1.9  	if(kernelparams->loadflags & 1) {
    1.10 -#else
    1.11 -    if((kernelparams->header != HdrS) || (kernelparams->loadflags & 1) == 0)
    1.12 -        die("I can't load bzImage low");
    1.13 -    {
    1.14 -        {
    1.15 -#endif
    1.16  	    extern void far last_ditch();
    1.17  	    kernelparams->realmode_switch_ofs = (u16) last_ditch;
    1.18  	    kernelparams->realmode_switch_seg = _CS;
    1.19 @@ -192,8 +185,7 @@
    1.20              // Hook on int15 to work around fn 88 DOS breakage
    1.21              hook_int15_88();
    1.22          }
    1.23 -        if(kernelparams->kernel_version)
    1.24 -            version_string = (char *) first1k+kernelparams->kernel_version+0x200;
    1.25 +        version_string = (char *) first1k+kernelparams->kernel_version+0x200;
    1.26          kernelparams->type_of_loader = 0xff; // kernel do not know us (yet :-)
    1.27          if(kernelparams->version >= 0x201) {
    1.28              // * offset limit of the setup heap
    1.29 @@ -222,7 +214,7 @@
    1.30  
    1.31    {
    1.32      struct image_himem *m = &pm;
    1.33 -    if((u16)(((m->fallback=(u32((u16(_CS)+0x1FFF)&0xF000)<<4))+m->size)>>4) >
    1.34 +    if((u16)(((m->fallback=(u32(u16(_CS)+0x1001)<<4))+m->size)>>4) >
    1.35  		 topseg() || _pm_high) {
    1.36          m->fallback = base_himem;
    1.37      }