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