wok-6.x annotate linld/stuff/load.u @ rev 17892
Down libgiomm (2.40.0)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Apr 02 17:22:53 2015 +0200 (2015-04-02) |
parents | |
children | df58e6c974a3 |
rev | line source |
---|---|
pascal@17446 | 1 --- LINLD097/LOAD.CPP |
pascal@17446 | 2 +++ LINLD097/LOAD.CPP |
pascal@17446 | 3 @@ -400,10 +400,8 @@ |
pascal@17446 | 4 |
pascal@17446 | 5 if(first1k->boot_flag != 0xAA55) |
pascal@17446 | 6 die("No boot signature (55,AA). It's not a kernel"); |
pascal@17446 | 7 - if(first1k->header != HdrS) |
pascal@17446 | 8 + if(first1k->header != HdrS) // starting linux 1.3.73 |
pascal@17446 | 9 die("No 'HdrS' signature (kernel is too old)"); |
pascal@17446 | 10 - if(first1k->version < 0x202) |
pascal@17446 | 11 - die("Loader protocol version is less than 2.02 (kernel is too old)"); |
pascal@17446 | 12 if(!(first1k->loadflags & 0x01)) |
pascal@17446 | 13 die("I can't load bzImages low"); |
pascal@17446 | 14 |
pascal@17446 | 15 @@ -414,7 +412,13 @@ |
pascal@17446 | 16 // Tell rm loader some info |
pascal@17446 | 17 |
pascal@17446 | 18 first1k->vid_mode = vid_mode; |
pascal@17446 | 19 - first1k->cmd_line_ptr = 0x98000; |
pascal@17446 | 20 + if(first1k->version >= 0x202) { // starting linux 2.4.0-test3-pre3 |
pascal@17446 | 21 + first1k->cmd_line_ptr = 0x98000; |
pascal@17446 | 22 + } |
pascal@17446 | 23 + else { |
pascal@17446 | 24 + first1k->cl_magic = 0xA33F; |
pascal@17446 | 25 + first1k->cl_ofs = 0x8000; |
pascal@17446 | 26 + } |
pascal@17446 | 27 first1k->type_of_loader = 0xff; // kernel do not know us (yet :-) |
pascal@17446 | 28 // * will be called just before rm -> pm |
pascal@17446 | 29 first1k->realmode_switch_ofs = ofs(last_ditch); |