mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-23 15:49:23 +00:00
determine the size of Stage 2 automatically.
This commit is contained in:
1 parent
e8d6ef494e
commit
4ea54f2d0a
9 files changed
+57
-28
No files matched your search
+4
-2
@@ -19,7 +19,8 @@
|
||||
*/
|
||||
|
||||
#include <stage1.h>
|
||||
|
||||
#include <stage2_size.h>
|
||||
|
||||
/*
|
||||
* defines for the code go here
|
||||
*/
|
||||
@@ -345,7 +346,8 @@ lastlist:
|
||||
#else
|
||||
.long 1 /* this is the sector start parameter, in logical
|
||||
sectors from the start of the disk, sector 0 */
|
||||
.word 130 /* this is the number of sectors to read */
|
||||
/* this is the number of sectors to read */
|
||||
.word (STAGE2_SIZE + 511) / 512
|
||||
.word 0x0800 /* this is the segment of the starting address
|
||||
to load the data into */
|
||||
#endif
|
||||
|
||||
Reference in new issue
Block a user