xref: /illumos-gate/usr/src/grub/grub-0.97/ChangeLog (revision 1b8adde7)
17c478bd9Sstevel@tonic-gate2004-10-11 Jason Thomas <jason@staff.pnc.com.au>
27c478bd9Sstevel@tonic-gate	Patch from Stefanus Du Toit  <sjdutoit@uwaterloo.ca>
3*1b8adde7SWilliam Kucharski	* docs/kernel.c.texi (cmain): Incremement mod by one, instead of
4*1b8adde7SWilliam Kucharski	sizeof(module_t), since it's already a pointer of type module_t.
5*1b8adde7SWilliam Kucharski	* docs/kernel.c (cmain): Do the same.
6*1b8adde7SWilliam Kucharski
7*1b8adde7SWilliam Kucharski2004-09-20  Yoshinori K. Okuji  <okuji@enbug.org>
8*1b8adde7SWilliam Kucharski
9*1b8adde7SWilliam Kucharski	* docs/internals.texi (Internals): Changed to an appendix.
10*1b8adde7SWilliam Kucharski
11*1b8adde7SWilliam Kucharski	* docs/grub.texi (@setchapternewpage): Changed to odd from off.
12*1b8adde7SWilliam Kucharski	(@contents): Moved to the beginning.
13*1b8adde7SWilliam Kucharski	(Future): Changed to an appendix.
14*1b8adde7SWilliam Kucharski
15*1b8adde7SWilliam Kucharski2004-08-17  Yoshinori K. Okuji  <okuji@enbug.org>
16*1b8adde7SWilliam Kucharski
17*1b8adde7SWilliam Kucharski	* stage2/cmdline.c (run_script): Fix a reversed conditional.
18*1b8adde7SWilliam Kucharski	Reported by Alban Crequy <alban.crequy@apinc.org>.
19*1b8adde7SWilliam Kucharski
20*1b8adde7SWilliam Kucharski2004-08-07  Jason Thomas  <jason@staff.pnc.com.au>
21*1b8adde7SWilliam Kucharski
22*1b8adde7SWilliam Kucharski	From Michael Hohnbaum <hohnbaum@us.ibm.com>:
23*1b8adde7SWilliam Kucharski	* stage2/fsys_ext2fs.c (ext2fs_read): Handle sparse files.
24*1b8adde7SWilliam Kucharski
25*1b8adde7SWilliam Kucharski2004-07-24  Yoshinori K. Okuji  <okuji@enbug.org>
26*1b8adde7SWilliam Kucharski
27*1b8adde7SWilliam Kucharski	* stage2/stage2.c (cmain): Terminate DEFAULT_FILE with NUL
28*1b8adde7SWilliam Kucharski	correctly. Reported by Alban Crequy <alban.crequy@apinc.org>.
29*1b8adde7SWilliam Kucharski
30*1b8adde7SWilliam Kucharski2004-07-21  Robert Millan  <robertmh@gnu.org>
31*1b8adde7SWilliam Kucharski
32*1b8adde7SWilliam Kucharski	Patch from David Weinehall <tao@debian.org>
33*1b8adde7SWilliam Kucharski	* util/mkbimage: Fix XSI-isms (for supporting POSIX-only shells).
34*1b8adde7SWilliam Kucharski
35*1b8adde7SWilliam Kucharski2004-07-20  Robert Millan  <robertmh@gnu.org>
36*1b8adde7SWilliam Kucharski
37*1b8adde7SWilliam Kucharski	* util/grub-install.in: Detect GNU/k*BSD systems as well.
38*1b8adde7SWilliam Kucharski
39*1b8adde7SWilliam Kucharski2004-07-16  Yoshinori K. Okuji  <okuji@enbug.org>
40*1b8adde7SWilliam Kucharski
41*1b8adde7SWilliam Kucharski	* util/grub-install.in (convert): Fix the sed statement for
42*1b8adde7SWilliam Kucharski	Linux. The expression was ambigious in some cases.
43*1b8adde7SWilliam Kucharski
44*1b8adde7SWilliam Kucharski2004-06-29  Robert Millan  <robertmh@gnu.org>
45*1b8adde7SWilliam Kucharski
46*1b8adde7SWilliam Kucharski	* util/grub-set-default.in: Fix minor syntax error (non-escaped
47*1b8adde7SWilliam Kucharski	characters).
48*1b8adde7SWilliam Kucharski
49*1b8adde7SWilliam Kucharski2004-06-24  Robert Millan  <robertmh@gnu.org>
50*1b8adde7SWilliam Kucharski
51*1b8adde7SWilliam Kucharski	Fixes for FHS compliance. (/usr/share is for arch-independant data)
52*1b8adde7SWilliam Kucharski	* stage1/Makefile.am: Move stage files to pkglibdir.
53*1b8adde7SWilliam Kucharski	* stage2/Makefile.am: Likewise.
54*1b8adde7SWilliam Kucharski	* docs/grub.texi: s,/usr/share,/usr/lib,g.
55*1b8adde7SWilliam Kucharski	* util/grub-image.in: Look for stage files in pkglibdir.
56*1b8adde7SWilliam Kucharski	* util/grub-install.in: Likewise.
57*1b8adde7SWilliam Kucharski
58*1b8adde7SWilliam Kucharski	* util/grub-install.in: Improve usage message.
59*1b8adde7SWilliam Kucharski
60*1b8adde7SWilliam Kucharski2004-06-20  Yoshinori K. Okuji  <okuji@enbug.org>
61*1b8adde7SWilliam Kucharski
62*1b8adde7SWilliam Kucharski	This is a big change on saving a default entry. This change
63*1b8adde7SWilliam Kucharski	makes it possible to set up a quite robust system using GRUB.
64*1b8adde7SWilliam Kucharski	Now we do not use the second sector of Stage 2 to store an
65*1b8adde7SWilliam Kucharski	entry number but use the file /boot/grub/default. This file
66*1b8adde7SWilliam Kucharski	must be generated by grub-set-default, although this file is
67*1b8adde7SWilliam Kucharski	plain-text.
68*1b8adde7SWilliam Kucharski
69*1b8adde7SWilliam Kucharski	* util/grub-set-default.in: New file.
70*1b8adde7SWilliam Kucharski
71*1b8adde7SWilliam Kucharski	* util/grub-install.in (grub_set_default): New variable.
72*1b8adde7SWilliam Kucharski	Use /grub instead of /boot/grub on OpenBSD as well as NetBSD.
73*1b8adde7SWilliam Kucharski	Run grub-set-default to make a default file.
74*1b8adde7SWilliam Kucharski
75*1b8adde7SWilliam Kucharski	* util/Makefile.am (sbin_SCRIPTS): Added grub-set-default.
76*1b8adde7SWilliam Kucharski
77*1b8adde7SWilliam Kucharski	* stage2/stage2.c (run_menu): Change the fallback handling to
78*1b8adde7SWilliam Kucharski	support multiple fallback entries.
79*1b8adde7SWilliam Kucharski	(cmain): Likewise. Also, get a saved entry from a default file
80*1b8adde7SWilliam Kucharski	if possible, before reading a config file.
81*1b8adde7SWilliam Kucharski
82*1b8adde7SWilliam Kucharski	* stage2/shared.h (DEFAULT_FILE_BUF): New macro.
83*1b8adde7SWilliam Kucharski	(DEFAULT_FILE_BUFLEN): Likewise.
84*1b8adde7SWilliam Kucharski	(CMDLINE_BUF): Set to DEFAULT_FILE_BUF + DEFAULT_FILE_BUFLEN.
85*1b8adde7SWilliam Kucharski	(MENU_BUFLEN): Set to 0x8000 + PASSWORD_BUF - MENU_BUF.
86*1b8adde7SWilliam Kucharski	(fallback_entry): Removed.
87*1b8adde7SWilliam Kucharski	(fallback_entries): Declared.
88*1b8adde7SWilliam Kucharski	(fallback_entryno): Likewise.
89*1b8adde7SWilliam Kucharski	(MAX_FALLBACK_ENTRIES): New macro.
90*1b8adde7SWilliam Kucharski
91*1b8adde7SWilliam Kucharski	* stage2/cmdline.c (run_script): Use FALLBACK_ENTRYNO instead of
92*1b8adde7SWilliam Kucharski	FALLBACK_ENTRY.
93*1b8adde7SWilliam Kucharski
94*1b8adde7SWilliam Kucharski	* stage2/builtins.c (fallback_entry): Removed.
95*1b8adde7SWilliam Kucharski	(fallback_entryno): New variable.
96*1b8adde7SWilliam Kucharski	(fallback_entries): Likewise.
97*1b8adde7SWilliam Kucharski	(init_config): Initialize FALLBACK_ENTRYNO and FALLBACK_ENTRIES.
98*1b8adde7SWilliam Kucharski	(fallback_func): Rewritten completely.
99*1b8adde7SWilliam Kucharski	(savedefault_func): Likewise.
100*1b8adde7SWilliam Kucharski
101*1b8adde7SWilliam Kucharski	* docs/grub.texi (grub-set-default): New direntry.
102*1b8adde7SWilliam Kucharski	(Installation): Describe grub-set-default for manual
103*1b8adde7SWilliam Kucharski	installations.
104*1b8adde7SWilliam Kucharski	(Making your system robust): New section.
105*1b8adde7SWilliam Kucharski	(Booting once-only): New subsection.
106*1b8adde7SWilliam Kucharski	(Booting fallback systems): Likewise.
107*1b8adde7SWilliam Kucharski	(fallback): Describe multiple fallback entries.
108*1b8adde7SWilliam Kucharski	(savedefault): Describe an optional argument.
109*1b8adde7SWilliam Kucharski	(Invoking grub-set-default): New chapter.
110*1b8adde7SWilliam Kucharski	(Future): Replaced with a description about GRUB 2.
111*1b8adde7SWilliam Kucharski
112*1b8adde7SWilliam Kucharski	* configure.ac (AC_CONFIG_FILES): Added util/grub-set-default.
113*1b8adde7SWilliam Kucharski
114*1b8adde7SWilliam Kucharski2004-06-19  Yoshinori K. Okuji  <okuji@enbug.org>
115*1b8adde7SWilliam Kucharski
116*1b8adde7SWilliam Kucharski	* stage2/ufs2.h (int8_t): Renamed to ...
117*1b8adde7SWilliam Kucharski	(grub_uint8_t): ... this.
118*1b8adde7SWilliam Kucharski	(int16_t): Renamed to ...
119*1b8adde7SWilliam Kucharski	(grub_int16_t): ... this.
120*1b8adde7SWilliam Kucharski	(int32_t): Renamed to ...
121*1b8adde7SWilliam Kucharski	(grub_int32_t): ... this.
122*1b8adde7SWilliam Kucharski	(int64_t): Renamed to ...
123*1b8adde7SWilliam Kucharski	(grub_int64_t): ... this.
124*1b8adde7SWilliam Kucharski	(uint8_t): Renamed to ...
125*1b8adde7SWilliam Kucharski	(grub_uint8_t): ... this.
126*1b8adde7SWilliam Kucharski	(uint16_t): Renamed to ...
127*1b8adde7SWilliam Kucharski	(grub_uint16_t): ... this.
128*1b8adde7SWilliam Kucharski	(uint32_t): Renamed to ...
129*1b8adde7SWilliam Kucharski	(grub_uint32_t): ... this.
130*1b8adde7SWilliam Kucharski	(uint64_t): Renamed to ...
131*1b8adde7SWilliam Kucharski	(grub_uint64_t): ... this.
132*1b8adde7SWilliam Kucharski	(u_char): Renamed to ...
133*1b8adde7SWilliam Kucharski	(grub_u_char): ... this.
134*1b8adde7SWilliam Kucharski	(u_int): Renamed to ...
135*1b8adde7SWilliam Kucharski	(grub_u_int): ... this.
136*1b8adde7SWilliam Kucharski	(u_int8_t): Renamed to ...
137*1b8adde7SWilliam Kucharski	(grub_u_int8_t): ... this.
138*1b8adde7SWilliam Kucharski	(u_int16_t): Renamed to ...
139*1b8adde7SWilliam Kucharski	(grub_u_int16_t): ... this.
140*1b8adde7SWilliam Kucharski	(u_int32_t): Renamed to ...
141*1b8adde7SWilliam Kucharski	(grub_u_int32_t): ... this.
142*1b8adde7SWilliam Kucharski	(u_int64_t): Renamed to ...
143*1b8adde7SWilliam Kucharski	(grub_u_int64_t): ... this.
144*1b8adde7SWilliam Kucharski	(ino_t): Renamed to ...
145*1b8adde7SWilliam Kucharski	(grub_ino_t): ... this.
146*1b8adde7SWilliam Kucharski	All callers are changed.
147*1b8adde7SWilliam Kucharski
148*1b8adde7SWilliam Kucharski2004-06-14  Jeroen Dekkers  <jeroen@dekkers.cx>
149*1b8adde7SWilliam Kucharski
150*1b8adde7SWilliam Kucharski	* stage2/ufs2.h (__uint8_t): Remove.
151*1b8adde7SWilliam Kucharski	(__uint16_t): Likewise.
152*1b8adde7SWilliam Kucharski	(__uint32_t): Likewise.
153*1b8adde7SWilliam Kucharski	(__uint64_t): Likewise.
154*1b8adde7SWilliam Kucharski	(ino_t): Typedef to uint32_t.
155*1b8adde7SWilliam Kucharski
156*1b8adde7SWilliam Kucharski2004-06-13  Yoshinori K. Okuji  <okuji@enbug.org>
157*1b8adde7SWilliam Kucharski
158*1b8adde7SWilliam Kucharski	* stage2/Makefile.am (noinst_HEADERS): Added ufs2.h.
159*1b8adde7SWilliam Kucharski
160*1b8adde7SWilliam Kucharski2005-05-08  Yoshinori K. Okuji  <okuji@enbug.org>
161*1b8adde7SWilliam Kucharski
162*1b8adde7SWilliam Kucharski	* configure.ac (AC_INIT): Upgraded to 0.97.
163*1b8adde7SWilliam Kucharski
164*1b8adde7SWilliam Kucharski	* compile: Copied from Automake 1.9.4.
165*1b8adde7SWilliam Kucharski	* config.guess: Likewise.
166*1b8adde7SWilliam Kucharski	* config.sub: Likewise.
167*1b8adde7SWilliam Kucharski	* depcomp: Likewise.
168*1b8adde7SWilliam Kucharski	* install-sh: Likewise.
169*1b8adde7SWilliam Kucharski	* missing: Likewise.
170*1b8adde7SWilliam Kucharski	* mkinstalldirs: Likewise.
171*1b8adde7SWilliam Kucharski	* mdate-sh: Likewise.
172*1b8adde7SWilliam Kucharski	* docs/texinfo.tex: Likewise.
173*1b8adde7SWilliam Kucharski
174*1b8adde7SWilliam Kucharski2005-05-08  Yoshinori K. Okuji  <okuji@enbug.org>
175*1b8adde7SWilliam Kucharski
176*1b8adde7SWilliam Kucharski	* stage2/fsys_xfs.c (next_dentry): Use arrays of arrays instead of
177*1b8adde7SWilliam Kucharski	arrays of pointers for USUAL, to avoid read-only strings. Reported
178*1b8adde7SWilliam Kucharski	by Sven Wegener <swegener@gentoo.org>.
179*1b8adde7SWilliam Kucharski
180*1b8adde7SWilliam Kucharski2005-03-28  Yoshinori K. Okuji  <okuji@enbug.org>
181*1b8adde7SWilliam Kucharski
182*1b8adde7SWilliam Kucharski	* lib/device.c (get_drive_geometry): Use ST.ST_SIZE instead of
183*1b8adde7SWilliam Kucharski	ST.ST_BLOCKS to get the total number of sectors, because st_blocks
184*1b8adde7SWilliam Kucharski	is not the same if it is a sparse file.
185*1b8adde7SWilliam Kucharski
186*1b8adde7SWilliam Kucharski2005-03-19  Yoshinori K. Okuji  <okuji@enbug.org>
187*1b8adde7SWilliam Kucharski
188*1b8adde7SWilliam Kucharski	* stage2/stage2.c (cmain): Initialize DEFAULT_FILE to an empty
189*1b8adde7SWilliam Kucharski	string. Reported by NATORI Shin <natori@adm.s.u-tokyo.ac.jp>.
190*1b8adde7SWilliam Kucharski
191*1b8adde7SWilliam Kucharski2005-03-15  Yoshinori K. Okuji  <okuji@enbug.org>
192*1b8adde7SWilliam Kucharski
193*1b8adde7SWilliam Kucharski	* stage2/fsys_fat.c (fat_mount): Ignore the 3rd bit of a media
194*1b8adde7SWilliam Kucharski	descriptor, because some BIOSes overwrite this value, according
195*1b8adde7SWilliam Kucharski	to the storage mode (e.g. USB Floppy or USB HDD).
196*1b8adde7SWilliam Kucharski
197*1b8adde7SWilliam Kucharski2005-02-16  Yoshinori K. Okuji  <okuji@enbug.org>
198*1b8adde7SWilliam Kucharski
199*1b8adde7SWilliam Kucharski	* grub/asmstub.c (grub_stage2): Remove the attribute `volatile'
200*1b8adde7SWilliam Kucharski	from doit. I hope this change is safe for all compilers.
201*1b8adde7SWilliam Kucharski
202*1b8adde7SWilliam Kucharski2005-02-15  Yoshinori K. Okuji  <okuji@enbug.org>
203*1b8adde7SWilliam Kucharski
204*1b8adde7SWilliam Kucharski	* stage2/builtins.c (install_func): If DEST_DRIVE is a hard
205*1b8adde7SWilliam Kucharski	disk, enable the workaround in Stage 1 by replacing the jmp
206*1b8adde7SWilliam Kucharski	with double nop's.
207*1b8adde7SWilliam Kucharski
208*1b8adde7SWilliam Kucharski	* stage1/stage1.h (STAGE1_BOOT_DRIVE_CHECK): New macro.
209*1b8adde7SWilliam Kucharski	(STAGE1_BOOT_DRIVE_MASK): Removed.
210*1b8adde7SWilliam Kucharski
211*1b8adde7SWilliam Kucharski	* stage1/stage1.S (boot_drive_check): New label. This implements
212*1b8adde7SWilliam Kucharski	a different workaround for buggy BIOSes which don't pass boot
213*1b8adde7SWilliam Kucharski	drive correctly. This is effective for BIOSes which pass a value
214*1b8adde7SWilliam Kucharski	without the seventh bit (0x80).
215*1b8adde7SWilliam Kucharski	(boot_drive_mask): Removed.
216*1b8adde7SWilliam Kucharski
217*1b8adde7SWilliam Kucharski2005-02-03  Yoshinori K. Okuji  <okuji@enbug.org>
218*1b8adde7SWilliam Kucharski
219*1b8adde7SWilliam Kucharski	* grub/asmstub.c (console_current_color): Make it global as
220*1b8adde7SWilliam Kucharski	declared.
221*1b8adde7SWilliam Kucharski	(grub_stage2): Tweak the declaration and the definition of the
222*1b8adde7SWilliam Kucharski	nested function doit.
223*1b8adde7SWilliam Kucharski
224*1b8adde7SWilliam Kucharski2005-02-02  Yoshinori K. Okuji  <okuji@enbug.org>
225*1b8adde7SWilliam Kucharski
226*1b8adde7SWilliam Kucharski	* stage2/smp-imps.h (imps_any_new_apics): Removed.
227*1b8adde7SWilliam Kucharski	(imps_enabled): Likewise.
228*1b8adde7SWilliam Kucharski	(imps_lapic_addr): Likewise.
229*1b8adde7SWilliam Kucharski	(imps_num_cpus): Likewise.
230*1b8adde7SWilliam Kucharski	(imps_cpu_apic_map): Likewise.
231*1b8adde7SWilliam Kucharski	(imps_apic_cpu_map): Likewise.
232*1b8adde7SWilliam Kucharski
233*1b8adde7SWilliam Kucharski	* stage2/Makefile.am (libgrub_a_CFLAGS): Remove
234*1b8adde7SWilliam Kucharski	-fwritable-strings. Not required for the grub shell actually.
235*1b8adde7SWilliam Kucharski
236*1b8adde7SWilliam Kucharski	* grub/Makefile.am (AM_CFLAGS): Likewise.
237*1b8adde7SWilliam Kucharski
238*1b8adde7SWilliam Kucharski2005-02-01  Yoshinori K. Okuji  <okuji@enbug.org>
239*1b8adde7SWilliam Kucharski
240*1b8adde7SWilliam Kucharski	* grub/asmstub.c (grub_stage2): Use auto instead of static for
241*1b8adde7SWilliam Kucharski	nested functions.
242*1b8adde7SWilliam Kucharski
243*1b8adde7SWilliam Kucharski	* stage2/char_io.c (memcheck) [GRUB_UTIL]: Likewise.
244*1b8adde7SWilliam Kucharski
245*1b8adde7SWilliam Kucharski	* stage2/builtins.c (blocklist_func): Likewise.
246*1b8adde7SWilliam Kucharski	(color_func): Likewise.
247*1b8adde7SWilliam Kucharski	(install_func): Likewise.
248*1b8adde7SWilliam Kucharski	(setkey_func): Likewise.
249*1b8adde7SWilliam Kucharski
250*1b8adde7SWilliam Kucharski	* lib/device.c (read_device_map): Likewise.
251*1b8adde7SWilliam Kucharski
252*1b8adde7SWilliam Kucharski2005-01-30  Yoshinori K. Okuji  <okuji@enbug.org>
253*1b8adde7SWilliam Kucharski
254*1b8adde7SWilliam Kucharski        * configure.ac (AC_INIT): Upgraded to 0.96.
255*1b8adde7SWilliam Kucharski
256*1b8adde7SWilliam Kucharski2004-10-11 Jason Thomas <jason@staff.pnc.com.au>
257*1b8adde7SWilliam Kucharski
258*1b8adde7SWilliam Kucharski	Patch from Stefanus Du Toit  <sjdutoit@uwaterloo.ca>
2597c478bd9Sstevel@tonic-gate	* docs/kernel.c.texi (cmain): Incremement mod by one, instead of
2607c478bd9Sstevel@tonic-gate	sizeof(module_t), since it's already a pointer of type module_t.
2617c478bd9Sstevel@tonic-gate	* docs/kernel.c (cmain): Do the same.
2627c478bd9Sstevel@tonic-gate
2637c478bd9Sstevel@tonic-gate2004-09-20  Yoshinori K. Okuji  <okuji@enbug.org>
2647c478bd9Sstevel@tonic-gate
2657c478bd9Sstevel@tonic-gate	* docs/internals.texi (Internals): Changed to an appendix.
2667c478bd9Sstevel@tonic-gate
2677c478bd9Sstevel@tonic-gate	* docs/grub.texi (@setchapternewpage): Changed to odd from off.
2687c478bd9Sstevel@tonic-gate	(@contents): Moved to the beginning.
2697c478bd9Sstevel@tonic-gate	(Future): Changed to an appendix.
2707c478bd9Sstevel@tonic-gate
2717c478bd9Sstevel@tonic-gate2004-08-17  Yoshinori K. Okuji  <okuji@enbug.org>
2727c478bd9Sstevel@tonic-gate
2737c478bd9Sstevel@tonic-gate	* stage2/cmdline.c (run_script): Fix a reversed conditional.
2747c478bd9Sstevel@tonic-gate	Reported by Alban Crequy <alban.crequy@apinc.org>.
2757c478bd9Sstevel@tonic-gate
2767c478bd9Sstevel@tonic-gate2004-08-07  Jason Thomas  <jason@staff.pnc.com.au>
2777c478bd9Sstevel@tonic-gate
2787c478bd9Sstevel@tonic-gate	From Michael Hohnbaum <hohnbaum@us.ibm.com>:
2797c478bd9Sstevel@tonic-gate	* stage2/fsys_ext2fs.c (ext2fs_read): Handle sparse files.
2807c478bd9Sstevel@tonic-gate
2817c478bd9Sstevel@tonic-gate2004-07-24  Yoshinori K. Okuji  <okuji@enbug.org>
2827c478bd9Sstevel@tonic-gate
2837c478bd9Sstevel@tonic-gate	* stage2/stage2.c (cmain): Terminate DEFAULT_FILE with NUL
2847c478bd9Sstevel@tonic-gate	correctly. Reported by Alban Crequy <alban.crequy@apinc.org>.
2857c478bd9Sstevel@tonic-gate
2867c478bd9Sstevel@tonic-gate2004-07-21  Robert Millan  <robertmh@gnu.org>
2877c478bd9Sstevel@tonic-gate
2887c478bd9Sstevel@tonic-gate	Patch from David Weinehall <tao@debian.org>
2897c478bd9Sstevel@tonic-gate	* util/mkbimage: Fix XSI-isms (for supporting POSIX-only shells).
2907c478bd9Sstevel@tonic-gate
2917c478bd9Sstevel@tonic-gate2004-07-20  Robert Millan  <robertmh@gnu.org>
2927c478bd9Sstevel@tonic-gate
2937c478bd9Sstevel@tonic-gate	* util/grub-install.in: Detect GNU/k*BSD systems as well.
2947c478bd9Sstevel@tonic-gate
2957c478bd9Sstevel@tonic-gate2004-07-16  Yoshinori K. Okuji  <okuji@enbug.org>
2967c478bd9Sstevel@tonic-gate
2977c478bd9Sstevel@tonic-gate	* util/grub-install.in (convert): Fix the sed statement for
2987c478bd9Sstevel@tonic-gate	Linux. The expression was ambigious in some cases.
2997c478bd9Sstevel@tonic-gate
3007c478bd9Sstevel@tonic-gate2004-06-29  Robert Millan  <robertmh@gnu.org>
3017c478bd9Sstevel@tonic-gate
3027c478bd9Sstevel@tonic-gate	* util/grub-set-default.in: Fix minor syntax error (non-escaped
3037c478bd9Sstevel@tonic-gate	characters).
3047c478bd9Sstevel@tonic-gate
3057c478bd9Sstevel@tonic-gate2004-06-24  Robert Millan  <robertmh@gnu.org>
3067c478bd9Sstevel@tonic-gate
3077c478bd9Sstevel@tonic-gate	Fixes for FHS compliance. (/usr/share is for arch-independant data)
3087c478bd9Sstevel@tonic-gate	* stage1/Makefile.am: Move stage files to pkglibdir.
3097c478bd9Sstevel@tonic-gate	* stage2/Makefile.am: Likewise.
3107c478bd9Sstevel@tonic-gate	* docs/grub.texi: s,/usr/share,/usr/lib,g.
3117c478bd9Sstevel@tonic-gate	* util/grub-image.in: Look for stage files in pkglibdir.
3127c478bd9Sstevel@tonic-gate	* util/grub-install.in: Likewise.
3137c478bd9Sstevel@tonic-gate
3147c478bd9Sstevel@tonic-gate	* util/grub-install.in: Improve usage message.
3157c478bd9Sstevel@tonic-gate
3167c478bd9Sstevel@tonic-gate2004-06-20  Yoshinori K. Okuji  <okuji@enbug.org>
3177c478bd9Sstevel@tonic-gate
3187c478bd9Sstevel@tonic-gate	This is a big change on saving a default entry. This change
3197c478bd9Sstevel@tonic-gate	makes it possible to set up a quite robust system using GRUB.
3207c478bd9Sstevel@tonic-gate	Now we do not use the second sector of Stage 2 to store an
3217c478bd9Sstevel@tonic-gate	entry number but use the file /boot/grub/default. This file
3227c478bd9Sstevel@tonic-gate	must be generated by grub-set-default, although this file is
3237c478bd9Sstevel@tonic-gate	plain-text.
3247c478bd9Sstevel@tonic-gate
3257c478bd9Sstevel@tonic-gate	* util/grub-set-default.in: New file.
3267c478bd9Sstevel@tonic-gate
3277c478bd9Sstevel@tonic-gate	* util/grub-install.in (grub_set_default): New variable.
3287c478bd9Sstevel@tonic-gate	Use /grub instead of /boot/grub on OpenBSD as well as NetBSD.
3297c478bd9Sstevel@tonic-gate	Run grub-set-default to make a default file.
3307c478bd9Sstevel@tonic-gate
3317c478bd9Sstevel@tonic-gate	* util/Makefile.am (sbin_SCRIPTS): Added grub-set-default.
3327c478bd9Sstevel@tonic-gate
3337c478bd9Sstevel@tonic-gate	* stage2/stage2.c (run_menu): Change the fallback handling to
3347c478bd9Sstevel@tonic-gate	support multiple fallback entries.
3357c478bd9Sstevel@tonic-gate	(cmain): Likewise. Also, get a saved entry from a default file
3367c478bd9Sstevel@tonic-gate	if possible, before reading a config file.
3377c478bd9Sstevel@tonic-gate
3387c478bd9Sstevel@tonic-gate	* stage2/shared.h (DEFAULT_FILE_BUF): New macro.
3397c478bd9Sstevel@tonic-gate	(DEFAULT_FILE_BUFLEN): Likewise.
3407c478bd9Sstevel@tonic-gate	(CMDLINE_BUF): Set to DEFAULT_FILE_BUF + DEFAULT_FILE_BUFLEN.
3417c478bd9Sstevel@tonic-gate	(MENU_BUFLEN): Set to 0x8000 + PASSWORD_BUF - MENU_BUF.
3427c478bd9Sstevel@tonic-gate	(fallback_entry): Removed.
3437c478bd9Sstevel@tonic-gate	(fallback_entries): Declared.
3447c478bd9Sstevel@tonic-gate	(fallback_entryno): Likewise.
3457c478bd9Sstevel@tonic-gate	(MAX_FALLBACK_ENTRIES): New macro.
3467c478bd9Sstevel@tonic-gate
3477c478bd9Sstevel@tonic-gate	* stage2/cmdline.c (run_script): Use FALLBACK_ENTRYNO instead of
3487c478bd9Sstevel@tonic-gate	FALLBACK_ENTRY.
3497c478bd9Sstevel@tonic-gate
3507c478bd9Sstevel@tonic-gate	* stage2/builtins.c (fallback_entry): Removed.
3517c478bd9Sstevel@tonic-gate	(fallback_entryno): New variable.
3527c478bd9Sstevel@tonic-gate	(fallback_entries): Likewise.
3537c478bd9Sstevel@tonic-gate	(init_config): Initialize FALLBACK_ENTRYNO and FALLBACK_ENTRIES.
3547c478bd9Sstevel@tonic-gate	(fallback_func): Rewritten completely.
3557c478bd9Sstevel@tonic-gate	(savedefault_func): Likewise.
3567c478bd9Sstevel@tonic-gate
3577c478bd9Sstevel@tonic-gate	* docs/grub.texi (grub-set-default): New direntry.
3587c478bd9Sstevel@tonic-gate	(Installation): Describe grub-set-default for manual
3597c478bd9Sstevel@tonic-gate	installations.
3607c478bd9Sstevel@tonic-gate	(Making your system robust): New section.
3617c478bd9Sstevel@tonic-gate	(Booting once-only): New subsection.
3627c478bd9Sstevel@tonic-gate	(Booting fallback systems): Likewise.
3637c478bd9Sstevel@tonic-gate	(fallback): Describe multiple fallback entries.
3647c478bd9Sstevel@tonic-gate	(savedefault): Describe an optional argument.
3657c478bd9Sstevel@tonic-gate	(Invoking grub-set-default): New chapter.
3667c478bd9Sstevel@tonic-gate	(Future): Replaced with a description about GRUB 2.
3677c478bd9Sstevel@tonic-gate
3687c478bd9Sstevel@tonic-gate	* configure.ac (AC_CONFIG_FILES): Added util/grub-set-default.
3697c478bd9Sstevel@tonic-gate
3707c478bd9Sstevel@tonic-gate2004-06-19  Yoshinori K. Okuji  <okuji@enbug.org>
3717c478bd9Sstevel@tonic-gate
3727c478bd9Sstevel@tonic-gate	* stage2/ufs2.h (int8_t): Renamed to ...
3737c478bd9Sstevel@tonic-gate	(grub_uint8_t): ... this.
3747c478bd9Sstevel@tonic-gate	(int16_t): Renamed to ...
3757c478bd9Sstevel@tonic-gate	(grub_int16_t): ... this.
3767c478bd9Sstevel@tonic-gate	(int32_t): Renamed to ...
3777c478bd9Sstevel@tonic-gate	(grub_int32_t): ... this.
3787c478bd9Sstevel@tonic-gate	(int64_t): Renamed to ...
3797c478bd9Sstevel@tonic-gate	(grub_int64_t): ... this.
3807c478bd9Sstevel@tonic-gate	(uint8_t): Renamed to ...
3817c478bd9Sstevel@tonic-gate	(grub_uint8_t): ... this.
3827c478bd9Sstevel@tonic-gate	(uint16_t): Renamed to ...
3837c478bd9Sstevel@tonic-gate	(grub_uint16_t): ... this.
3847c478bd9Sstevel@tonic-gate	(uint32_t): Renamed to ...
3857c478bd9Sstevel@tonic-gate	(grub_uint32_t): ... this.
3867c478bd9Sstevel@tonic-gate	(uint64_t): Renamed to ...
3877c478bd9Sstevel@tonic-gate	(grub_uint64_t): ... this.
3887c478bd9Sstevel@tonic-gate	(u_char): Renamed to ...
3897c478bd9Sstevel@tonic-gate	(grub_u_char): ... this.
3907c478bd9Sstevel@tonic-gate	(u_int): Renamed to ...
3917c478bd9Sstevel@tonic-gate	(grub_u_int): ... this.
3927c478bd9Sstevel@tonic-gate	(u_int8_t): Renamed to ...
3937c478bd9Sstevel@tonic-gate	(grub_u_int8_t): ... this.
3947c478bd9Sstevel@tonic-gate	(u_int16_t): Renamed to ...
3957c478bd9Sstevel@tonic-gate	(grub_u_int16_t): ... this.
3967c478bd9Sstevel@tonic-gate	(u_int32_t): Renamed to ...
3977c478bd9Sstevel@tonic-gate	(grub_u_int32_t): ... this.
3987c478bd9Sstevel@tonic-gate	(u_int64_t): Renamed to ...
3997c478bd9Sstevel@tonic-gate	(grub_u_int64_t): ... this.
4007c478bd9Sstevel@tonic-gate	(ino_t): Renamed to ...
4017c478bd9Sstevel@tonic-gate	(grub_ino_t): ... this.
4027c478bd9Sstevel@tonic-gate	All callers are changed.
4037c478bd9Sstevel@tonic-gate
4047c478bd9Sstevel@tonic-gate2004-06-14  Jeroen Dekkers  <jeroen@dekkers.cx>
4057c478bd9Sstevel@tonic-gate
4067c478bd9Sstevel@tonic-gate	* stage2/ufs2.h (__uint8_t): Remove.
4077c478bd9Sstevel@tonic-gate	(__uint16_t): Likewise.
4087c478bd9Sstevel@tonic-gate	(__uint32_t): Likewise.
4097c478bd9Sstevel@tonic-gate	(__uint64_t): Likewise.
4107c478bd9Sstevel@tonic-gate	(ino_t): Typedef to uint32_t.
4117c478bd9Sstevel@tonic-gate
4127c478bd9Sstevel@tonic-gate2004-06-13  Yoshinori K. Okuji  <okuji@enbug.org>
4137c478bd9Sstevel@tonic-gate
4147c478bd9Sstevel@tonic-gate	* stage2/Makefile.am (noinst_HEADERS): Added ufs2.h.
4157c478bd9Sstevel@tonic-gate
4167c478bd9Sstevel@tonic-gate2004-06-13  Yoshinori K. Okuji  <okuji@enbug.org>
4177c478bd9Sstevel@tonic-gate
4187c478bd9Sstevel@tonic-gate	* configure.ac (AC_INIT): Upgraded to 0.95.
4197c478bd9Sstevel@tonic-gate
4207c478bd9Sstevel@tonic-gate2004-05-23  Yoshinori K. Okuji  <okuji@enbug.org>
4217c478bd9Sstevel@tonic-gate
4227c478bd9Sstevel@tonic-gate	* stage2/char_io.c (grub_isspace): Use a switch sentense instead
4237c478bd9Sstevel@tonic-gate	of an if sentense, because that reduces the size.
4247c478bd9Sstevel@tonic-gate
4257c478bd9Sstevel@tonic-gate	* lib/device.c (read_device_map): Change the max number of DRIVE
4267c478bd9Sstevel@tonic-gate	to 127 from 8. This was too strict.
4277c478bd9Sstevel@tonic-gate
4287c478bd9Sstevel@tonic-gate	* stage2/asm.S (stop_floppy): Call pusha and popa outside the
4297c478bd9Sstevel@tonic-gate	block of real mode code. Reported by Guillem Jover
4307c478bd9Sstevel@tonic-gate	<guillem@debian.org>.
4317c478bd9Sstevel@tonic-gate
4327c478bd9Sstevel@tonic-gate2004-05-20  Damian Ivereigh  <damian@cisco.com>
4337c478bd9Sstevel@tonic-gate
4347c478bd9Sstevel@tonic-gate	* netboot/main.c: Fixed bootp only code so that options
4357c478bd9Sstevel@tonic-gate	work properly. This fix is obvious when compared with the
4367c478bd9Sstevel@tonic-gate	DHCP code.
4377c478bd9Sstevel@tonic-gate
4387c478bd9Sstevel@tonic-gate2004-05-17  Pavel Roskin  <proski@gnu.org>
4397c478bd9Sstevel@tonic-gate
4407c478bd9Sstevel@tonic-gate	* stage2/char_io.c (safe_parse_maxint): Disable for stage 1.5.
4417c478bd9Sstevel@tonic-gate	(grub_tolower): Disable for stage 1.5 except fat_stage1_5.
4427c478bd9Sstevel@tonic-gate	(grub_memcmp): Disable for stage 1.5 except iso9660_stage1_5.
4437c478bd9Sstevel@tonic-gate
4447c478bd9Sstevel@tonic-gate2004-05-14  Yoshinori K. Okuji  <okuji@enbug.org>
4457c478bd9Sstevel@tonic-gate
4467c478bd9Sstevel@tonic-gate	From Sergey Matveychuk <sem@ciam.ru>:
4477c478bd9Sstevel@tonic-gate	* stage2/size_test: Added a check for ufs2_stage1_5.
4487c478bd9Sstevel@tonic-gate
4497c478bd9Sstevel@tonic-gate	* stage2/shared.h (STAGE2_ID_UFS2_STAGE1_5): New macro.
4507c478bd9Sstevel@tonic-gate	[FSYS_UFS2] (STAGE2_ID): Set to STAGE2_ID_UFS2_STAGE1_5.
4517c478bd9Sstevel@tonic-gate
4527c478bd9Sstevel@tonic-gate	* stage2/filesys.h (FSYS_UFS2_NUM): New macro.
4537c478bd9Sstevel@tonic-gate	[FSYS_UFS2] (ufs2_mount): New prototype.
4547c478bd9Sstevel@tonic-gate	[FSYS_UFS2] (ufs2_read): Likewise.
4557c478bd9Sstevel@tonic-gate	[FSYS_UFS2] (ufs2_dir): Likewise.
4567c478bd9Sstevel@tonic-gate	[FSYS_UFS2] (ufs2_embed): Likewise.
4577c478bd9Sstevel@tonic-gate	(NUM_FSYS): Added FSYS_UFS2_NUM.
4587c478bd9Sstevel@tonic-gate
4597c478bd9Sstevel@tonic-gate	* stage2/disk_io.c (fsys_table): Added an ufs2 entry.
4607c478bd9Sstevel@tonic-gate
4617c478bd9Sstevel@tonic-gate	* stage2/builtins.c (setup_func): Added ufs2 into the
4627c478bd9Sstevel@tonic-gate	STAGE1_5_MAP.
4637c478bd9Sstevel@tonic-gate
4647c478bd9Sstevel@tonic-gate	* stage2/Makefile.am (libgrub_a_SOURCES): Added fsys_ufs2.c.
4657c478bd9Sstevel@tonic-gate	(libgrub_a_CFLAGS): Added -DFSYS_UFS2=1.
4667c478bd9Sstevel@tonic-gate	(pkgdata_DATA): Added ufs2_stage1_5.
4677c478bd9Sstevel@tonic-gate	(noinst_PROGRAMS): Added ufs2_stage1_5.exec.
4687c478bd9Sstevel@tonic-gate	(ufs2_stage1_5_exec_SOURCES): New variable.
4697c478bd9Sstevel@tonic-gate	(ufs2_stage1_5_exec_CFLAGS): Likewise.
4707c478bd9Sstevel@tonic-gate	(ufs2_stage1_5_exec_CCASFLAGS): Likewise.
4717c478bd9Sstevel@tonic-gate	(ufs2_stage1_5_exec_LDFLAGS): Likewise.
4727c478bd9Sstevel@tonic-gate
4737c478bd9Sstevel@tonic-gate	* grub/Makefile.am (AM_CPPFLAGS): Added -DFSYS_ISO9660=1,
4747c478bd9Sstevel@tonic-gate	-DFSYS_JFS=1, -DFSYS_REISERFS=1, -DFSYS_UFS2=1, -DFSYS_VSTAFS=1,
4757c478bd9Sstevel@tonic-gate	-DFSYS_XFS=1, and -DUSE_MD5_PASSWORDS=1.
4767c478bd9Sstevel@tonic-gate
4777c478bd9Sstevel@tonic-gate	* configure.ac (--disable-ufs2): New option.
4787c478bd9Sstevel@tonic-gate
4797c478bd9Sstevel@tonic-gate	* stage2/fsys_ufs2.c: New file.
4807c478bd9Sstevel@tonic-gate	* stage2/ufs2.h: Likewise.
4817c478bd9Sstevel@tonic-gate
4827c478bd9Sstevel@tonic-gate2004-05-10  Robert Millan  <robertmh@gnu.org>
4837c478bd9Sstevel@tonic-gate
4847c478bd9Sstevel@tonic-gate	* lib/device.c: Mangle __FreeBSD_* macro usage to support
4857c478bd9Sstevel@tonic-gate	kFreeBSD-based non-FreeBSD systems (i.e. GNU/kFreeBSD).
4867c478bd9Sstevel@tonic-gate
4877c478bd9Sstevel@tonic-gate	Implement runtime detection of version of kFreeBSD. Now if
4887c478bd9Sstevel@tonic-gate	we build against kFreeBSD 5.x headers the GRUB shell will work on
4897c478bd9Sstevel@tonic-gate	both 4.x and 5.x.
4907c478bd9Sstevel@tonic-gate
4917c478bd9Sstevel@tonic-gate	Replace `u_int_t' types with portable `unsigned int' and old
4927c478bd9Sstevel@tonic-gate	reference to `geometry' structure to new `geom' one.
4937c478bd9Sstevel@tonic-gate
4947c478bd9Sstevel@tonic-gate	* docs/menu.lst: Split GNU/kFreeBSD and GNU/kNetBSD as separate
4957c478bd9Sstevel@tonic-gate	options than FreeBSD and NetBSD, respectively. There are minor
4967c478bd9Sstevel@tonic-gate	differences now (different paths).
4977c478bd9Sstevel@tonic-gate
4987c478bd9Sstevel@tonic-gate2004-05-03  Pavel Roskin  <proski@gnu.org>
4997c478bd9Sstevel@tonic-gate
5007c478bd9Sstevel@tonic-gate	* stage2/char_io.c (convert_to_ascii): Remove "%b" support.
5017c478bd9Sstevel@tonic-gate	It's non-standard and is not used anymore.
5027c478bd9Sstevel@tonic-gate	(grub_printf): Likewise.
5037c478bd9Sstevel@tonic-gate
5047c478bd9Sstevel@tonic-gate2004-04-29  Robert Millan  <robertmh@gnu.org>
5057c478bd9Sstevel@tonic-gate
5067c478bd9Sstevel@tonic-gate	From Yann Dirson  <dirson@debian.org>:
5077c478bd9Sstevel@tonic-gate	* util/mkbimage: Misc syntax fixes.
5087c478bd9Sstevel@tonic-gate
5097c478bd9Sstevel@tonic-gate2004-04-29  Jeroen Dekkers  <jeroen@dekkers.cx>
5107c478bd9Sstevel@tonic-gate
5117c478bd9Sstevel@tonic-gate	* stage2/char_io.c (grub_memcmp): Define for stage1.5 too.
5127c478bd9Sstevel@tonic-gate
5137c478bd9Sstevel@tonic-gate	* stage2/fsys_iso9660.c (iso9660_mount): Use memcmp() instead of
5147c478bd9Sstevel@tonic-gate	__builtin_memcmp().
5157c478bd9Sstevel@tonic-gate	(iso9660_dir): Likewise.
5167c478bd9Sstevel@tonic-gate
5177c478bd9Sstevel@tonic-gate2004-04-26  Christian Jones  <chjones@aleph0.com>
5187c478bd9Sstevel@tonic-gate
5197c478bd9Sstevel@tonic-gate	* docs/grub.texi (Making a GRUB bootable CD-ROM): minor edits,
5207c478bd9Sstevel@tonic-gate	including a few compatibility notes and a change to
5217c478bd9Sstevel@tonic-gate	-boot-load-size 4 for the mkisofs command.
5227c478bd9Sstevel@tonic-gate
5237c478bd9Sstevel@tonic-gate2004-04-22  Jeroen Dekkers  <jeroen@dekkers.cx>
5247c478bd9Sstevel@tonic-gate
5257c478bd9Sstevel@tonic-gate	* Makefile.am (AUTOMAKE_OPTIONS): Add "gnu".
5267c478bd9Sstevel@tonic-gate	* configure.ac: Update to work with automake 1.8, quote all
5277c478bd9Sstevel@tonic-gate	AC_DEFUN's correctly and provide descriptions for AC_DEFINE's.
5287c478bd9Sstevel@tonic-gate	* acinclude.m4: Likewise.
5297c478bd9Sstevel@tonic-gate	* acconfig.h: Removed.
5307c478bd9Sstevel@tonic-gate
5317c478bd9Sstevel@tonic-gate	* stage1/Makefile.am (.exec): Use suffix rules instead of pattern
5327c478bd9Sstevel@tonic-gate	rules.
5337c478bd9Sstevel@tonic-gate	* stage2/Makefile.am (.exec): Likewise.
5347c478bd9Sstevel@tonic-gate
5357c478bd9Sstevel@tonic-gate2004-04-18  Yoshinori K. Okuji  <okuji@enbug.org>
5367c478bd9Sstevel@tonic-gate
5377c478bd9Sstevel@tonic-gate	* docs/grub.texi (Making a GRUB bootable CD-ROM): New section.
5387c478bd9Sstevel@tonic-gate
5397c478bd9Sstevel@tonic-gate	* stage2/disk_io.c (set_device): Use CH instead of *DEVICE to
5407c478bd9Sstevel@tonic-gate	test the first character of DEVICE, because DEVICE is
5417c478bd9Sstevel@tonic-gate	incremented.
5427c478bd9Sstevel@tonic-gate	Reported by Bernhard Treutwein.
5437c478bd9Sstevel@tonic-gate
5447c478bd9Sstevel@tonic-gate2004-04-15  Yoshinori K. Okuji  <okuji@enbug.org>
5457c478bd9Sstevel@tonic-gate
5467c478bd9Sstevel@tonic-gate	* netboot/fsys_tftp.c (buf_fill): Cast 1 to unsigned short
5477c478bd9Sstevel@tonic-gate	explicitly so that the constant doesn't extend unsigned short
5487c478bd9Sstevel@tonic-gate	to int automatically.
5497c478bd9Sstevel@tonic-gate	Reported by Eduard Guzovsky <eguzovsk@enterasys.com>.
5507c478bd9Sstevel@tonic-gate
5517c478bd9Sstevel@tonic-gate	* docs/grub.texi (Invoking grub-md5-crypt): Fixed the chapter
5527c478bd9Sstevel@tonic-gate	name.
5537c478bd9Sstevel@tonic-gate	Reported by Martin Pool <mbp@sourcefrog.net>.
5547c478bd9Sstevel@tonic-gate
5557c478bd9Sstevel@tonic-gate2004-04-04  Yoshinori K. Okuji  <okuji@enbug.org>
5567c478bd9Sstevel@tonic-gate
5577c478bd9Sstevel@tonic-gate	* configure.ac (STAGE2_CFLAGS): Check if -fno-stack-protector is
5587c478bd9Sstevel@tonic-gate	supported by GCC. If yes, added the option. This is necessary
5597c478bd9Sstevel@tonic-gate	for OpenBSD, because the stack protector defines additional
5607c478bd9Sstevel@tonic-gate	symbols. Reported by uc.sheda <uc.sheda@laposte.net>.
5617c478bd9Sstevel@tonic-gate
5627c478bd9Sstevel@tonic-gate2004-03-28  Pavel Roskin  <proski@gnu.org>
5637c478bd9Sstevel@tonic-gate
5647c478bd9Sstevel@tonic-gate	* stage2/boot.c: Imply --no-mem-option for Linux kernels with
5657c478bd9Sstevel@tonic-gate	protocol version 2.03 and above (Linux 2.4.18 and newer).
5667c478bd9Sstevel@tonic-gate
5677c478bd9Sstevel@tonic-gate2004-03-27  Yoshinori K. Okuji  <okuji@enbug.org>
5687c478bd9Sstevel@tonic-gate
5697c478bd9Sstevel@tonic-gate	* stage2/char_io.c [!GRUB_UTIL] (memcpy): New function. It is
5707c478bd9Sstevel@tonic-gate	defined as an alias of grub_memmove. This is copied from GRUB 2.
5717c478bd9Sstevel@tonic-gate
5727c478bd9Sstevel@tonic-gate	* stage2/disk_io.c (print_completions): Simplified conditionals
5737c478bd9Sstevel@tonic-gate	to make it easier to edit the file with Emacs.
5747c478bd9Sstevel@tonic-gate	Added support for (cd).
5757c478bd9Sstevel@tonic-gate	(set_device): Likewise.
5767c478bd9Sstevel@tonic-gate
5777c478bd9Sstevel@tonic-gate	* stage2/common.c (init_bios_info): Check if BOOT_DRIVE is a
5787c478bd9Sstevel@tonic-gate	CDROM drive. If it is true, set CDROM_DRIVE to BOOT_DRIVE.
5797c478bd9Sstevel@tonic-gate	(cdrom_drive): New variable.
5807c478bd9Sstevel@tonic-gate
5817c478bd9Sstevel@tonic-gate	From Leonid Lisovskiy <lly@pisem.net>:
5827c478bd9Sstevel@tonic-gate	* stage2/start_eltorito.S: New file.
5837c478bd9Sstevel@tonic-gate
5847c478bd9Sstevel@tonic-gate	* stage2/stage2.c (run_menu): Use GRUB_INVALID_DRIVE instead of
5857c478bd9Sstevel@tonic-gate	0xFF.
5867c478bd9Sstevel@tonic-gate
5877c478bd9Sstevel@tonic-gate	* stage2/shared.h (STAGE2_ID_ISO9660_STAGE1_5): New macro.
5887c478bd9Sstevel@tonic-gate	[FSYS_ISO9660] (STAGE2_ID): Set to STAGE2_ID_ISO9660_STAGE1_5.
5897c478bd9Sstevel@tonic-gate	(struct geometry): Added a new member ``sector_size''.
5907c478bd9Sstevel@tonic-gate	(BIOSDISK_FLAG_CDROM): New macro.
5917c478bd9Sstevel@tonic-gate	(cdrom_drive): Declared.
5927c478bd9Sstevel@tonic-gate
5937c478bd9Sstevel@tonic-gate	* stage2/fsys_iso9660.c: New file.
5947c478bd9Sstevel@tonic-gate	* stage2/iso9660.h: Likewise.
5957c478bd9Sstevel@tonic-gate
5967c478bd9Sstevel@tonic-gate	* stage2/filesys.h (FSYS_ISO9660_NUM): New macro.
5977c478bd9Sstevel@tonic-gate	[FSYS_ISO9660] (iso9660_mount): Declared.
5987c478bd9Sstevel@tonic-gate	[FSYS_ISO9660] (iso9660_read): Likewise.
5997c478bd9Sstevel@tonic-gate	[FSYS_ISO9660] (iso9660_dir): Likewise.
6007c478bd9Sstevel@tonic-gate	(NUM_FSYS): Added FSYS_ISO9660_NUM.
6017c478bd9Sstevel@tonic-gate
6027c478bd9Sstevel@tonic-gate	* stage2/disk_io.c (fsys_table) [FSYS_ISO9660]: Added iso9660.
6037c478bd9Sstevel@tonic-gate	(current_drive): Use GRUB_INVALID_DRIVE.
6047c478bd9Sstevel@tonic-gate	(log2): New function.
6057c478bd9Sstevel@tonic-gate	(rawread): Use BUF_GEOM.SECTOR_SIZE instead of SECTOR_SIZE.
6067c478bd9Sstevel@tonic-gate	Change the type of BUFADDR from int to char *.
6077c478bd9Sstevel@tonic-gate	Use a virtual track to make sure that one track fits in the
6087c478bd9Sstevel@tonic-gate	buffer.
6097c478bd9Sstevel@tonic-gate	(sane_partition): Allow CURRENT_DRIVE to be CDROM_DRIVE, because
6107c478bd9Sstevel@tonic-gate	a bios drive for a CD-ROM is often assigned to greater than
6117c478bd9Sstevel@tonic-gate	0x88.
6127c478bd9Sstevel@tonic-gate	(set_device): Use GRUB_INVALID_DRIVE instead of 0xFF.
6137c478bd9Sstevel@tonic-gate	(setup_part): Likewise.
6147c478bd9Sstevel@tonic-gate
6157c478bd9Sstevel@tonic-gate	* stage2/cmdline.c (init_cmdline): Use GRUB_INVALID_DRIVE.
6167c478bd9Sstevel@tonic-gate
6177c478bd9Sstevel@tonic-gate	* stage2/builtins.c (install_func): Use GRUB_INVALID_DRIVE.
6187c478bd9Sstevel@tonic-gate	(setup_func): Added iso9660_stage1_5.
6197c478bd9Sstevel@tonic-gate
6207c478bd9Sstevel@tonic-gate	* stage2/bios.c (biosdisk): Don't fall back to the CHS mode
6217c478bd9Sstevel@tonic-gate	if the drive is a CDROM.
6227c478bd9Sstevel@tonic-gate	(get_cdinfo): New function.
6237c478bd9Sstevel@tonic-gate	(get_diskinfo): Call get_cdinfo if the drive is greater than or
6247c478bd9Sstevel@tonic-gate	equal to 0x88 or the drive supports LBA.
6257c478bd9Sstevel@tonic-gate	Set the sector size to SECTOR_SIZE if it is not a CD-ROM.
6267c478bd9Sstevel@tonic-gate
6277c478bd9Sstevel@tonic-gate	* stage2/asm.S (biosdisk_int13_extensions): Take a word
6287c478bd9Sstevel@tonic-gate	argument AX instead of a byte argument AH.
6297c478bd9Sstevel@tonic-gate	(get_diskinfo_int13_extensions): Removed.
6307c478bd9Sstevel@tonic-gate
6317c478bd9Sstevel@tonic-gate	* stage2/Makefile.am (noinst_HEADERS): Added iso9660.h.
6327c478bd9Sstevel@tonic-gate	(libgrub_a_SOURCES): Added fsys_iso9660.c.
6337c478bd9Sstevel@tonic-gate	(libgrub_a_CFLAGS): Added -DFSYS_ISO9660=1.
6347c478bd9Sstevel@tonic-gate	(pkgdata_DATA): Added iso9660_stage1_5 and stage2_eltorito.
6357c478bd9Sstevel@tonic-gate	(noinst_PROGRAMS): Added iso9660_stage1_5.exec and
6367c478bd9Sstevel@tonic-gate	start_eltorito.exec.
6377c478bd9Sstevel@tonic-gate	(noinst_DATA): Added start_eltorito.
6387c478bd9Sstevel@tonic-gate	(pre_stage2_exec_SOURCES): Added fsys_iso9660.c.
6397c478bd9Sstevel@tonic-gate	(START_ELTORITO_LINK): New variable.
6407c478bd9Sstevel@tonic-gate	(start_eltorito_exec_SOURCES): Likewise.
6417c478bd9Sstevel@tonic-gate	(start_eltorito_exec_CCASFLAGS): Likewise.
6427c478bd9Sstevel@tonic-gate	(start_eltorito_exec_LDFLAGS): Likewise.
6437c478bd9Sstevel@tonic-gate	(start_eltorito_exec-start.$(OBJEXT)): New dependency.
6447c478bd9Sstevel@tonic-gate	(stage2_eltorito): New target.
6457c478bd9Sstevel@tonic-gate	(iso9660_stage1_5_exec_SOURCES): New variable.
6467c478bd9Sstevel@tonic-gate	(iso9660_stage1_5_exec_CFLAGS): Likewise.
6477c478bd9Sstevel@tonic-gate	(iso9660_stage1_5_exec_CCASFLAGS): Likewise.
6487c478bd9Sstevel@tonic-gate	(iso9660_stage1_5_exec_LDFLAGS): Likewise.
6497c478bd9Sstevel@tonic-gate
6507c478bd9Sstevel@tonic-gate	* stage1/stage1.h (GRUB_INVALID_DRIVE): New macro.
6517c478bd9Sstevel@tonic-gate
6527c478bd9Sstevel@tonic-gate	* stage1/stage1.S (boot_drive): Use the macro GRUB_INVALID_DRIVE.
6537c478bd9Sstevel@tonic-gate	(real_start): Likewise.
6547c478bd9Sstevel@tonic-gate
6557c478bd9Sstevel@tonic-gate	* lib/device.c (get_drive_geometry): Set GEOM->SECTOR_SIZE to
6567c478bd9Sstevel@tonic-gate	SECTOR_SIZE by default.
6577c478bd9Sstevel@tonic-gate
6587c478bd9Sstevel@tonic-gate	* configure.ac (--disable-iso9660): New option.
6597c478bd9Sstevel@tonic-gate
6607c478bd9Sstevel@tonic-gate2004-03-13  Yoshinori K. Okuji  <okuji@enbug.org>
6617c478bd9Sstevel@tonic-gate
6627c478bd9Sstevel@tonic-gate	From Daniele Zelante <zeldan@email.it>:
6637c478bd9Sstevel@tonic-gate	* stage2/asm.S (stop_floppy): Use INT 13, AH=00h to stop the
6647c478bd9Sstevel@tonic-gate	floppy controller instead of a direct I/O.
6657c478bd9Sstevel@tonic-gate
6667c478bd9Sstevel@tonic-gate2004-03-12  Yoshinori K. Okuji  <okuji@enbug.org>
6677c478bd9Sstevel@tonic-gate
6687c478bd9Sstevel@tonic-gate	* stage2/serial.c (serial_putchar): Handle the character code
6697c478bd9Sstevel@tonic-gate	127 as a backspace. Reported by Florian Engelhardt
6707c478bd9Sstevel@tonic-gate	<f.engelhardt@gmx.net>.
6717c478bd9Sstevel@tonic-gate
6727c478bd9Sstevel@tonic-gate2004-03-12  Yoshinori K. Okuji  <okuji@enbug.org>
6737c478bd9Sstevel@tonic-gate
6747c478bd9Sstevel@tonic-gate	From Boji Tony Kannanthanam <boji.t.kannanthanam@intel.com>:
6757c478bd9Sstevel@tonic-gate	* util/grub-install.in (convert): Add support for ATARAID
6767c478bd9Sstevel@tonic-gate	device names.
6777c478bd9Sstevel@tonic-gate	* lib/device.c (get_ataraid_disk_name) [__linux__]: New
6787c478bd9Sstevel@tonic-gate	function.
6797c478bd9Sstevel@tonic-gate	(init_device_map) [__linux__]: Probe ATARAID disks.
6807c478bd9Sstevel@tonic-gate
6817c478bd9Sstevel@tonic-gate	* stage2/size_test (check): Don't use the local statement any
6827c478bd9Sstevel@tonic-gate	longer. It was unneeded actually. Reported by Paul Jarc.
6837c478bd9Sstevel@tonic-gate
6847c478bd9Sstevel@tonic-gate2004-03-12  Yoshinori K. Okuji  <okuji@enbug.org>
6857c478bd9Sstevel@tonic-gate
6867c478bd9Sstevel@tonic-gate	From Sergey Matveychuk <sem@ciam.ru>:
6877c478bd9Sstevel@tonic-gate	* lib/device.c (get_drive_geometry): Do not open the same device
6887c478bd9Sstevel@tonic-gate	more than once unnecessarily.
6897c478bd9Sstevel@tonic-gate	(get_drive_geometry) [__FreeBSD_version >= 500040]: Use new
6907c478bd9Sstevel@tonic-gate	ioctl methods.
6917c478bd9Sstevel@tonic-gate	(get_floppy_disk_name) [__FreeBSD__ >= 4]: Use /dev/fd%d rather
6927c478bd9Sstevel@tonic-gate	than /dev/rfd%d.
6937c478bd9Sstevel@tonic-gate	(get_ide_disk_name) [__FreeBSD__ >= 4]: Use /dev/ad%d rather
6947c478bd9Sstevel@tonic-gate	than /dev/rad%d.
6957c478bd9Sstevel@tonic-gate	(get_scsi_disk_name) [__FreeBSD__ >= 4]: Use /dev/da%d rather
6967c478bd9Sstevel@tonic-gate	than /dev/rda%d.
6977c478bd9Sstevel@tonic-gate	* grub/asmstub.c (get_diskinfo): Check if ERRNO is EPERM as
6987c478bd9Sstevel@tonic-gate	well.
6997c478bd9Sstevel@tonic-gate
7007c478bd9Sstevel@tonic-gate2004-02-28  Jeroen Dekkers  <jeroen@dekkers.cx>
7017c478bd9Sstevel@tonic-gate
7027c478bd9Sstevel@tonic-gate	* docs/grub.texi (partnew): Change @var{to} to @var{len}.
7037c478bd9Sstevel@tonic-gate
7047c478bd9Sstevel@tonic-gate2004-02-18  Yoshinori K. Okuji  <okuji@enbug.org>
7057c478bd9Sstevel@tonic-gate
7067c478bd9Sstevel@tonic-gate	From Yury V. Umanets <umka@namesys.com>:
7077c478bd9Sstevel@tonic-gate	* stage2/fsys_reiserfs.c (REISER3FS_SUPER_MAGIC_STRING): New
7087c478bd9Sstevel@tonic-gate	macro.
7097c478bd9Sstevel@tonic-gate	(reiserfs_mount): Added checks for ReiserFS 3.
7107c478bd9Sstevel@tonic-gate	(reiserfs_embed): Likewise.
7117c478bd9Sstevel@tonic-gate
7127c478bd9Sstevel@tonic-gate2004-01-25  Yoshinori K. Okuji  <okuji@enbug.org>
7137c478bd9Sstevel@tonic-gate
7147c478bd9Sstevel@tonic-gate	* docs/grub.texi (Obtaining and Building GRUB): Instead of
7157c478bd9Sstevel@tonic-gate	describing how to use the anoncvs method, specify the URL of
7167c478bd9Sstevel@tonic-gate	the description page on Savannah.
7177c478bd9Sstevel@tonic-gate	Reported by Bernhard Treutwein.
7187c478bd9Sstevel@tonic-gate
7197c478bd9Sstevel@tonic-gate2004-01-18  Yoshinori K. Okuji  <okuji@enbug.org>
7207c478bd9Sstevel@tonic-gate
7217c478bd9Sstevel@tonic-gate	From Thomas Schwinge <kischde@gmx.net>:
7227c478bd9Sstevel@tonic-gate	* grub/Makefile.am (AM_CPPFLAGS): New variable.
7237c478bd9Sstevel@tonic-gate	(AM_CFLAGS): Removed all cpp flags.
7247c478bd9Sstevel@tonic-gate
7257c478bd9Sstevel@tonic-gate	* stage2/xfs.h (__int8_t): Renamed to ...
7267c478bd9Sstevel@tonic-gate	(xfs_int8_t): ... this.
7277c478bd9Sstevel@tonic-gate	(__uint8_t): Renamed to ...
7287c478bd9Sstevel@tonic-gate	(xfs_uint8_t): ... this.
7297c478bd9Sstevel@tonic-gate	(__int16_t): Renamed to ...
7307c478bd9Sstevel@tonic-gate	(xfs_int16_t): ... this.
7317c478bd9Sstevel@tonic-gate	(__uint16_t): Renamed to ...
7327c478bd9Sstevel@tonic-gate	(xfs_uint16_t): ... this.
7337c478bd9Sstevel@tonic-gate	(__int32_t): Renamed to ...
7347c478bd9Sstevel@tonic-gate	(xfs_int32_t): ... this.
7357c478bd9Sstevel@tonic-gate	(__uint32_t): Renamed to ...
7367c478bd9Sstevel@tonic-gate	(xfs_uint32_t): ... this.
7377c478bd9Sstevel@tonic-gate	(__int64_t): Renamed to ...
7387c478bd9Sstevel@tonic-gate	(xfs_int64_t): ... this.
7397c478bd9Sstevel@tonic-gate	(__uint64_t): Renamed to ...
7407c478bd9Sstevel@tonic-gate	(xfs_uint64_t): ... this.
7417c478bd9Sstevel@tonic-gate	All callers are changed.x
7427c478bd9Sstevel@tonic-gate
7437c478bd9Sstevel@tonic-gate	From Egmont Koblinger <egmont@uhulinux.hu>:
7447c478bd9Sstevel@tonic-gate	* util/grub-install.in: Support an install devices in GRUB's
7457c478bd9Sstevel@tonic-gate	notation without parentheses.
7467c478bd9Sstevel@tonic-gate
7477c478bd9Sstevel@tonic-gate	* docs/grub.texi (Installing GRUB using grub-install): Added an
7487c478bd9Sstevel@tonic-gate	example of using grub-install without parentheses.
7497c478bd9Sstevel@tonic-gate
7507c478bd9Sstevel@tonic-gate2004-01-18  Yoshinori K. Okuji  <okuji@enbug.org>
7517c478bd9Sstevel@tonic-gate
7527c478bd9Sstevel@tonic-gate	* util/grub-install.in: Use the first word of GRUB_SHELL when
7537c478bd9Sstevel@tonic-gate	checking if the grub shell is present. This is necessary to
7547c478bd9Sstevel@tonic-gate	support options to the grub shell (e.g. grub --read-only).
7557c478bd9Sstevel@tonic-gate
7567c478bd9Sstevel@tonic-gate	From Eric Kvaalen <E_Kvaalen.Arnesen@noos.fr>:
7577c478bd9Sstevel@tonic-gate	* docs/grub.texi: Many bug fixes.
7587c478bd9Sstevel@tonic-gate
7597c478bd9Sstevel@tonic-gate2004-01-17  Yoshinori K. Okuji  <okuji@enbug.org>
7607c478bd9Sstevel@tonic-gate
7617c478bd9Sstevel@tonic-gate	* lib/device.c [__linux__] (MAJOR): Support 32 bit and 64 bit
7627c478bd9Sstevel@tonic-gate	dev_t. This code is stolen from glibc.
7637c478bd9Sstevel@tonic-gate	Suggested by Shen Feng <shen@nanjing-fnst.com>.
7647c478bd9Sstevel@tonic-gate
7657c478bd9Sstevel@tonic-gate2004-01-11  Yoshinori K. Okuji  <okuji@enbug.org>
7667c478bd9Sstevel@tonic-gate
7677c478bd9Sstevel@tonic-gate	* stage2/terminfo.c (ti_set_term): Use a pointer to struct
7687c478bd9Sstevel@tonic-gate	terminfo instead to avoid GCC's bug, which inserts a reference
7697c478bd9Sstevel@tonic-gate	to memcpy implicitly.
7707c478bd9Sstevel@tonic-gate	(ti_get_term): Likewise.
7717c478bd9Sstevel@tonic-gate	All callers are fixed.
7727c478bd9Sstevel@tonic-gate
7737c478bd9Sstevel@tonic-gate	* stage2/terminfo.h (ti_set_term): Updated.
7747c478bd9Sstevel@tonic-gate	(ti_get_term): Likewise.
7757c478bd9Sstevel@tonic-gate
7767c478bd9Sstevel@tonic-gate	* stage2/shared.h (struct linux_kernel_header): New member,
7777c478bd9Sstevel@tonic-gate	initrd_max_address. Defined in the boot protocol 2.03 or higher.
7787c478bd9Sstevel@tonic-gate
7797c478bd9Sstevel@tonic-gate	* stage2/boot.c (load_initrd): If the boot protocol is greater
7807c478bd9Sstevel@tonic-gate	than or equal to 2.03, use the field ``initrd_max_address''
7817c478bd9Sstevel@tonic-gate	instead of LINUX_INITRD_MAX_ADDRESS.
7827c478bd9Sstevel@tonic-gate
7837c478bd9Sstevel@tonic-gate2003-12-30  Yoshinori K. Okuji  <okuji@enbug.org>
7847c478bd9Sstevel@tonic-gate
7857c478bd9Sstevel@tonic-gate	* stage2/fsys_ext2fs.c (ext2_is_fast_symlink): New function.
7867c478bd9Sstevel@tonic-gate	(ext2fs_dir): Use ext2_is_fast_symlink to check if the current
7877c478bd9Sstevel@tonic-gate	inode is a fast or slow symlink. This change was required
7887c478bd9Sstevel@tonic-gate	because Linux now uses acl seriously (i.e. incompatibility).
7897c478bd9Sstevel@tonic-gate	Reported by Chris PeBenito <pebenito@gentoo.org> and Seemant
7907c478bd9Sstevel@tonic-gate	Kulleen <seemant@gentoo.org>
7917c478bd9Sstevel@tonic-gate
7927c478bd9Sstevel@tonic-gate2003-11-30  Yoshinori K. Okuji  <okuji@enbug.org>
7937c478bd9Sstevel@tonic-gate
7947c478bd9Sstevel@tonic-gate	* lib/device.c (read_device_map) (sho_warning): New internal
7957c478bd9Sstevel@tonic-gate	function.
7967c478bd9Sstevel@tonic-gate	(read_device_map): If DRIVE is greater than 8, emit a warning
7977c478bd9Sstevel@tonic-gate	and ignore the drive, rather than exiting abnormally.
7987c478bd9Sstevel@tonic-gate	Reported by Greg Newby <newby@arsc.edu>.
7997c478bd9Sstevel@tonic-gate
8007c478bd9Sstevel@tonic-gate2003-10-19  Yoshinori K. Okuji  <okuji@enbug.org>
8017c478bd9Sstevel@tonic-gate
8027c478bd9Sstevel@tonic-gate	Migrated to newer autotools. Also, don't install mkbimage
8037c478bd9Sstevel@tonic-gate	because its name is too general and it does not conform to the
8047c478bd9Sstevel@tonic-gate	GNU Coding Standards in some points.
8057c478bd9Sstevel@tonic-gate
8067c478bd9Sstevel@tonic-gate	* util/Makefile.am (EXTRA_DIST): New variable.
8077c478bd9Sstevel@tonic-gate	(sbin_SCRIPTS): Removed mkbimage.
8087c478bd9Sstevel@tonic-gate	(noinst_SCRIPTS): Added mkbimage.
8097c478bd9Sstevel@tonic-gate
8107c478bd9Sstevel@tonic-gate	* stage1/Makefile.am (AM_ASFLAGS): Renamed to ...
8117c478bd9Sstevel@tonic-gate	(AM_CCASFLAGS): ... this.
8127c478bd9Sstevel@tonic-gate
8137c478bd9Sstevel@tonic-gate	* stage2/Makefile.am (pre_stage2_exec_ASFLAGS): Renamed to ...
8147c478bd9Sstevel@tonic-gate	(pre_stage2_exec_CCASFLAGS): ... this.
8157c478bd9Sstevel@tonic-gate	(start_exec_ASFLAGS): Renamed to ...
8167c478bd9Sstevel@tonic-gate	(start_exec_CCASFLAGS): ... this.
8177c478bd9Sstevel@tonic-gate	(e2fs_stage1_5_exec_ASFLAGS): Renamed to ...
8187c478bd9Sstevel@tonic-gate	(e2fs_stage1_5_exec_CCASFLAGS): ... this.
8197c478bd9Sstevel@tonic-gate	(fat_stage1_5_exec_ASFLAGS): Renamed to ...
8207c478bd9Sstevel@tonic-gate	(fat_stage1_5_exec_CCASFLAGS): ... this.
8217c478bd9Sstevel@tonic-gate	(ffs_stage1_5_exec_ASFLAGS): Renamed to ...
8227c478bd9Sstevel@tonic-gate	(ffs_stage1_5_exec_CCASFLAGS): ... this.
8237c478bd9Sstevel@tonic-gate	(minix_stage1_5_exec_ASFLAGS): Renamed to ...
8247c478bd9Sstevel@tonic-gate	(minix_stage1_5_exec_CCASFLAGS): ... this.
8257c478bd9Sstevel@tonic-gate	(reiserfs_stage1_5_exec_ASFLAGS): Renamed to ...
8267c478bd9Sstevel@tonic-gate	(reiserfs_stage1_5_exec_CCASFLAGS): ... this.
8277c478bd9Sstevel@tonic-gate	(vstafs_stage1_5_exec_ASFLAGS): Renamed to ...
8287c478bd9Sstevel@tonic-gate	(vstafs_stage1_5_exec_CCASFLAGS): ... this.
8297c478bd9Sstevel@tonic-gate	(jfs_stage1_5_exec_ASFLAGS): Renamed to ...
8307c478bd9Sstevel@tonic-gate	(jfs_stage1_5_exec_CCASFLAGS): ... this.
8317c478bd9Sstevel@tonic-gate	(xfs_stage1_5_exec_ASFLAGS): Renamed to ...
8327c478bd9Sstevel@tonic-gate	(xfs_stage1_5_exec_CCASFLAGS): ... this.
8337c478bd9Sstevel@tonic-gate	(diskless_exec_ASFLAGS): Renamed to ...
8347c478bd9Sstevel@tonic-gate	(diskless_exec_CCASFLAGS): ... this.
8357c478bd9Sstevel@tonic-gate	(nbloader_exec_ASFLAGS): Renamed to ...
8367c478bd9Sstevel@tonic-gate	(nbloader_exec_CCASFLAGS): ... this.
8377c478bd9Sstevel@tonic-gate	(pxeloader_exec_ASFLAGS): Renamed to ...
8387c478bd9Sstevel@tonic-gate	(pxeloader_exec_CCASFLAGS): ... this.
8397c478bd9Sstevel@tonic-gate
8407c478bd9Sstevel@tonic-gate	* configure.in: Removed.
8417c478bd9Sstevel@tonic-gate	* configure.ac: New file. Mostly derived from configure.in.
8427c478bd9Sstevel@tonic-gate
8437c478bd9Sstevel@tonic-gate2003-10-19  Yoshinori OKUJI  <okuji@enbug.org>
8447c478bd9Sstevel@tonic-gate
8457c478bd9Sstevel@tonic-gate	From KB Sriram <mail_kb@yahoo.com>:
8467c478bd9Sstevel@tonic-gate	* stage2/disk_io.c (set_device) [SUPPORT_NETBOOT]: Added support
8477c478bd9Sstevel@tonic-gate	for a completion of a network device.
8487c478bd9Sstevel@tonic-gate	(print_completions): Likewise.
8497c478bd9Sstevel@tonic-gate
8507c478bd9Sstevel@tonic-gate2003-10-10  Robert Millan  <robertmh@gnu.org>
8517c478bd9Sstevel@tonic-gate
8527c478bd9Sstevel@tonic-gate	* config.guess: Update from official source (CVS).
8537c478bd9Sstevel@tonic-gate	* config.sub: Likewise.
8547c478bd9Sstevel@tonic-gate
8557c478bd9Sstevel@tonic-gate2003-09-18  Robert Millan  <robertmh@gnu.org>
8567c478bd9Sstevel@tonic-gate
8577c478bd9Sstevel@tonic-gate	* docs/texinfo.tex: Update from ftp.gnu.org.
8587c478bd9Sstevel@tonic-gate
8597c478bd9Sstevel@tonic-gate2003-09-05  KB Sriram  <mail_kb@yahoo.com>
8607c478bd9Sstevel@tonic-gate
8617c478bd9Sstevel@tonic-gate	* stage2/fsys_fat.c: Fix missdetection of ext2fs as fatfs.
8627c478bd9Sstevel@tonic-gate
8637c478bd9Sstevel@tonic-gate2003-09-05  Robert Millan  <robertmh@gnu.org>
8647c478bd9Sstevel@tonic-gate
8657c478bd9Sstevel@tonic-gate	* docs/menu.lst (GNU/Linux): Add commented initrd command, which
8667c478bd9Sstevel@tonic-gate	is consistent with documentation.
8677c478bd9Sstevel@tonic-gate
8687c478bd9Sstevel@tonic-gate2003-09-01  Robert Millan  <robertmh@gnu.org>
8697c478bd9Sstevel@tonic-gate
8707c478bd9Sstevel@tonic-gate	* docs/menu.lst: Add NetBSD, OpenBSD, GNU/KFreeBSD and
8717c478bd9Sstevel@tonic-gate	GNU/KNetBSD.
8727c478bd9Sstevel@tonic-gate
8737c478bd9Sstevel@tonic-gate2003-08-13  Jason Thomas  <jason@intology.com.au>
8747c478bd9Sstevel@tonic-gate
8757c478bd9Sstevel@tonic-gate	* util/grub-install.in (resolve_symlink): New function to
8767c478bd9Sstevel@tonic-gate	resolve symlinks.
8777c478bd9Sstevel@tonic-gate	(find_device): Moved symlink code to new function.
8787c478bd9Sstevel@tonic-gate	Before we convert the install_device we attempt to resolve it if
8797c478bd9Sstevel@tonic-gate	its a symlink using the new function.
8807c478bd9Sstevel@tonic-gate	* util/mbchk.c (check_multiboot): The sense of an error message
8817c478bd9Sstevel@tonic-gate	was inverted.
8827c478bd9Sstevel@tonic-gate	Reported by Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>.
8837c478bd9Sstevel@tonic-gate
8847c478bd9Sstevel@tonic-gate2003-08-12  Jochen Hoenicke  <jochen@gnu.org>
8857c478bd9Sstevel@tonic-gate
8867c478bd9Sstevel@tonic-gate	* stage2/fsys_reiserfs.c (read_tree_node): Fixed a typo; only
8877c478bd9Sstevel@tonic-gate	matters for very large fs when tree doesn't fit in cache.
8887c478bd9Sstevel@tonic-gate	(IH_KEY_OFFSET): Don't check for INFO->version.  There are
8897c478bd9Sstevel@tonic-gate	actually old version file systems that use new version items.
8907c478bd9Sstevel@tonic-gate	(IH_KEY_ISTYPE): Likewise.
8917c478bd9Sstevel@tonic-gate	(reiserfs_dir): Likewise.
8927c478bd9Sstevel@tonic-gate
8937c478bd9Sstevel@tonic-gate2003-08-09  Thierry Laronde  <tlaronde@polynum.org>
8947c478bd9Sstevel@tonic-gate
8957c478bd9Sstevel@tonic-gate	* util/mkbimage: New File. `mkbimage' depends on GRUB and
8967c478bd9Sstevel@tonic-gate	existed	elsewhere. It is now part of GRUB so that people can
8977c478bd9Sstevel@tonic-gate	fix/contribute.
8987c478bd9Sstevel@tonic-gate	* util/Makefile.am (sbin_SCRIPTS): Added script `mkbimage'
8997c478bd9Sstevel@tonic-gate
9007c478bd9Sstevel@tonic-gate2003-08-01  Jason Thomas  <jason@intology.com.au>
9017c478bd9Sstevel@tonic-gate
9027c478bd9Sstevel@tonic-gate	* util/grub-install.in: support --no-floppy
9037c478bd9Sstevel@tonic-gate	This allow users to specify the --no-floppy option which
9047c478bd9Sstevel@tonic-gate	is passed onto the grub shell, so it does not probe the floppy
9057c478bd9Sstevel@tonic-gate	drive.
9067c478bd9Sstevel@tonic-gate	Patch from kesha@diedas.soften.ktu.lt
9077c478bd9Sstevel@tonic-gate
9087c478bd9Sstevel@tonic-gate2003-06-17  Jochen Hoenicke  <jochen@gnu.org>
9097c478bd9Sstevel@tonic-gate
9107c478bd9Sstevel@tonic-gate	* stage2/fsys_reiserfs.c (reiserfs_mount): Clear the node cache.
9117c478bd9Sstevel@tonic-gate	This fixes a problem where files from other partitions appear at
9127c478bd9Sstevel@tonic-gate	the wrong partition.  Problem reported by Johan Regin.
9137c478bd9Sstevel@tonic-gate
9147c478bd9Sstevel@tonic-gate2003-05-04  Yoshinori K. Okuji  <okuji@enbug.org>
9157c478bd9Sstevel@tonic-gate
9167c478bd9Sstevel@tonic-gate	* docs/grub.texi (partnew): Fixed the inconsistency between the
9177c478bd9Sstevel@tonic-gate	implementation and the documentation. The last argument is the
9187c478bd9Sstevel@tonic-gate	length instead of the ending address.
9197c478bd9Sstevel@tonic-gate	Reported by Daniel Farrell <s2108287@student.rmit.edu.au>.
9207c478bd9Sstevel@tonic-gate
9217c478bd9Sstevel@tonic-gate2003-03-19  Yoshinori K. Okuji  <okuji@enbug.org>
9227c478bd9Sstevel@tonic-gate
9237c478bd9Sstevel@tonic-gate	From Adam Lackorzynski <adam@os.inf.tu-dresden.de>:
9247c478bd9Sstevel@tonic-gate	* stage2/shared.h (KEY_NPAGE): Changed to 0x5100.
9257c478bd9Sstevel@tonic-gate	(KEY_PPAGE): Changed to 0x4900.
9267c478bd9Sstevel@tonic-gate
9277c478bd9Sstevel@tonic-gate2003-03-19  Yoshinori K. Okuji  <okuji@enbug.org>
9287c478bd9Sstevel@tonic-gate
9297c478bd9Sstevel@tonic-gate	* stage2/boot.c (load_image): Check if DATA_LEN plus SECTOR_SIZE
9307c478bd9Sstevel@tonic-gate	is less than or equal to MULTIBOOT_SEARCH, instead of if
9317c478bd9Sstevel@tonic-gate	DATA_LEN is less than or equal to MULTIBOOT_SEARCH.
9327c478bd9Sstevel@tonic-gate	Reported by Neelkanth Natu <neelnatu@yahoo.com>.
9337c478bd9Sstevel@tonic-gate
9347c478bd9Sstevel@tonic-gate2003-03-10  Yoshinori K. Okuji  <okuji@enbug.org>
9357c478bd9Sstevel@tonic-gate
9367c478bd9Sstevel@tonic-gate	From Andrew Walrond <andrew@walrond.org>:
9377c478bd9Sstevel@tonic-gate	* stage2/fsys_reiserfs.c (struct reiserfs_journal_header):
9387c478bd9Sstevel@tonic-gate	Remove an unnecessary ``long''.
9397c478bd9Sstevel@tonic-gate
9407c478bd9Sstevel@tonic-gate2003-03-10  Yoshinori K. Okuji  <okuji@enbug.org>
9417c478bd9Sstevel@tonic-gate
9427c478bd9Sstevel@tonic-gate	From Tilmann Bubeck:
9437c478bd9Sstevel@tonic-gate	* stage2/builtins.c [SUPPORT_SERIAL] (terminfo_func): Unescape
9447c478bd9Sstevel@tonic-gate	arguments before copying them, and escape sequences before
9457c478bd9Sstevel@tonic-gate	printing them.
9467c478bd9Sstevel@tonic-gate	* stage2/terminfo.h (TERMINFO_LEN): Changed to 40.
9477c478bd9Sstevel@tonic-gate
9487c478bd9Sstevel@tonic-gate2003-02-20  Yoshinori K. Okuji  <okuji@enbug.org>
9497c478bd9Sstevel@tonic-gate
9507c478bd9Sstevel@tonic-gate	* util/grub-install.in (find_device): Fix the sed script.
9517c478bd9Sstevel@tonic-gate
9527c478bd9Sstevel@tonic-gate2003-02-17  Yoshinori K. Okuji  <okuji@enbug.org>
9537c478bd9Sstevel@tonic-gate
9547c478bd9Sstevel@tonic-gate	* lib/device.c (check_device): If DEVICE is empty, just return
9557c478bd9Sstevel@tonic-gate	1.
9567c478bd9Sstevel@tonic-gate	(get_scsi_disk_name) [__QNXNTO__]: Make NAME empty, because SCSI
9577c478bd9Sstevel@tonic-gate	disks are detected as IDE disks on QNX RTP.
9587c478bd9Sstevel@tonic-gate
9597c478bd9Sstevel@tonic-gate	From Taketo Kabe <kabe@sra-tohoku.co.jp>:
9607c478bd9Sstevel@tonic-gate	* lib/device.c (get_ide_disk_name) [__QNXNTO__]: Set NAME to
9617c478bd9Sstevel@tonic-gate	"/dev/hdX".
9627c478bd9Sstevel@tonic-gate	(get_floppy_disk_name) [__QNXNTO__]: Set NAME to "/dev/fdX".
9637c478bd9Sstevel@tonic-gate	* stage2/mb_info.h (struct AddrRangeDesc): Specified with the
9647c478bd9Sstevel@tonic-gate	attribute packed.
9657c478bd9Sstevel@tonic-gate	* stage2/shared.h (struct mmar_desc): Likewise.
9667c478bd9Sstevel@tonic-gate
9677c478bd9Sstevel@tonic-gate2003-01-29  Yoshinori K. Okuji  <okuji@enbug.org>
9687c478bd9Sstevel@tonic-gate
9697c478bd9Sstevel@tonic-gate	From Ilguiz Latypov:
9707c478bd9Sstevel@tonic-gate	* configure.in: Fix a syntax error in a sed script.
9717c478bd9Sstevel@tonic-gate	* stage2/bios.c (get_diskinfo): PhoenixBIOS 4.0 Revision 6.0
9727c478bd9Sstevel@tonic-gate	for ZF Micro might understand the greater buffer size for the
9737c478bd9Sstevel@tonic-gate	"get drive parameters" int 0x13 call in its own way.
9747c478bd9Sstevel@tonic-gate	Supposedly the BIOS assumes even bigger space is available and
9757c478bd9Sstevel@tonic-gate	thus corrupts the stack.  This is why we specify the exactly
9767c478bd9Sstevel@tonic-gate	necessary size of 0x42 bytes.
9777c478bd9Sstevel@tonic-gate
9787c478bd9Sstevel@tonic-gate2003-01-25  Yoshinori K. Okuji  <okuji@enbug.org>
9797c478bd9Sstevel@tonic-gate
9807c478bd9Sstevel@tonic-gate	From Steven Dick <ssd.gnu@mmae.ucf.edu>:
9817c478bd9Sstevel@tonic-gate	* stage2/pc_slice.h (PC_SLICE_TYPE_DELL_UTIL): New macro.
9827c478bd9Sstevel@tonic-gate	(IS_PC_SLICE_TYPE_FAT): Recognize PC_SLIDE_TYPE_DELL_UTIL as
9837c478bd9Sstevel@tonic-gate	well.
9847c478bd9Sstevel@tonic-gate
9857c478bd9Sstevel@tonic-gate2003-01-25  Yoshinori K. Okuji  <okuji@enbug.org>
9867c478bd9Sstevel@tonic-gate
9877c478bd9Sstevel@tonic-gate	From Karsten Scheibler <karsten.scheibler@student.uni-halle.de>:
9887c478bd9Sstevel@tonic-gate	* stage2/terminfo.c (term): Don't use a C99-style initializer.
9897c478bd9Sstevel@tonic-gate
9907c478bd9Sstevel@tonic-gate2003-01-16  Yoshinori K. Okuji  <okuji@enbug.org>
9917c478bd9Sstevel@tonic-gate
9927c478bd9Sstevel@tonic-gate	From H.J. Lu <hjl@gnu.org>:
9937c478bd9Sstevel@tonic-gate	* stage2/disk_io.c (part_start): Use unsigned long to support
9947c478bd9Sstevel@tonic-gate	large disks.
9957c478bd9Sstevel@tonic-gate	(part_length): Likewise.
9967c478bd9Sstevel@tonic-gate	* stage2/shared.h (part_start): Likewise.
9977c478bd9Sstevel@tonic-gate	(part_length): Likewise.
9987c478bd9Sstevel@tonic-gate
9997c478bd9Sstevel@tonic-gate2003-01-05  Yoshinori K. Okuji  <okuji@enbug.org>
10007c478bd9Sstevel@tonic-gate
10017c478bd9Sstevel@tonic-gate	* configure.in (CFLAGS): When the default CFLAGS is used,
10027c478bd9Sstevel@tonic-gate	eliminate -O2 and -g from CFLAGS, because Autoconf may
10037c478bd9Sstevel@tonic-gate	automatically set CFLAGS to them.
10047c478bd9Sstevel@tonic-gate
10057c478bd9Sstevel@tonic-gate2003-01-02  Yoshinori K. Okuji  <okuji@enbug.org>
10067c478bd9Sstevel@tonic-gate
10077c478bd9Sstevel@tonic-gate	From Jeremy Katz:
10087c478bd9Sstevel@tonic-gate	* configure.in: Support building on x86_64 with gcc -m32.
10097c478bd9Sstevel@tonic-gate
10107c478bd9Sstevel@tonic-gate2003-01-02  Yoshinori K. Okuji  <okuji@enbug.org>
10117c478bd9Sstevel@tonic-gate
10127c478bd9Sstevel@tonic-gate	From Jeremy Katz:
10137c478bd9Sstevel@tonic-gate	* stage2/fsys_ext2fs.c (ext2fs_dir): Initialize STR_CHK to shut
10147c478bd9Sstevel@tonic-gate	up GCC.
10157c478bd9Sstevel@tonic-gate	* stage2/fsys_minix.c (minix_dir): Likewise.
10167c478bd9Sstevel@tonic-gate
10177c478bd9Sstevel@tonic-gate2002-12-21  Yoshinori K. Okuji  <okuji@enbug.org>
10187c478bd9Sstevel@tonic-gate
10197c478bd9Sstevel@tonic-gate	* stage2/asm.S (gateA20): First, try a BIOS call (INT 15H,
10207c478bd9Sstevel@tonic-gate	AX=2400/2401). Use the keyboard controller, only if that failed.
10217c478bd9Sstevel@tonic-gate
10227c478bd9Sstevel@tonic-gate2002-12-11  Yoshinori K. Okuji  <okuji@enbug.org>
10237c478bd9Sstevel@tonic-gate
10247c478bd9Sstevel@tonic-gate	Add a workaround for buggy BIOSes which don't pass boot drive
10257c478bd9Sstevel@tonic-gate	correctly. The idea is that GRUB forces the fixed disk flag
10267c478bd9Sstevel@tonic-gate	when booted from a hard disk. When BIOS loads GRUB directly,
10277c478bd9Sstevel@tonic-gate	the boot drive must be either of 0x00 and 0x80, so this should
10287c478bd9Sstevel@tonic-gate	work, if those BIOSes always pass zero to %dl. AFAIK, this
10297c478bd9Sstevel@tonic-gate	assumption is always correct.
10307c478bd9Sstevel@tonic-gate
10317c478bd9Sstevel@tonic-gate	* stage2/builtins.c (install_func): Store the fixed disk flag of
10327c478bd9Sstevel@tonic-gate	the destination drive in BOOT_DRIVE_MASK in Stage 1.
10337c478bd9Sstevel@tonic-gate
10347c478bd9Sstevel@tonic-gate	* stage1/stage1.h (STAGE1_BOOT_DRIVE_MASK): New macro.
10357c478bd9Sstevel@tonic-gate
10367c478bd9Sstevel@tonic-gate	* stage1/stage1.S (boot_drive_mask): New variable. It is or'ed
10377c478bd9Sstevel@tonic-gate	to %dl.
10387c478bd9Sstevel@tonic-gate
10397c478bd9Sstevel@tonic-gate2002-12-09  Yoshinori K. Okuji  <okuji@enbug.org>
10407c478bd9Sstevel@tonic-gate
10417c478bd9Sstevel@tonic-gate	* stage2/char_io.c (init_page): Change the software name from
10427c478bd9Sstevel@tonic-gate	"GRUB" to "GNU GRUB". This was inaccurate. Reported by Ciaran
10437c478bd9Sstevel@tonic-gate	O'Riordan <coriordan@compsoc.com>.
10447c478bd9Sstevel@tonic-gate
10457c478bd9Sstevel@tonic-gate2002-12-04  Yoshinori K. Okuji  <okuji@enbug.org>
10467c478bd9Sstevel@tonic-gate
10477c478bd9Sstevel@tonic-gate	* stage2/builtins.c (embed_func): When checking if the disk can
10487c478bd9Sstevel@tonic-gate	store Stage 1.5, check every partition, if it isn't empty.
10497c478bd9Sstevel@tonic-gate
10507c478bd9Sstevel@tonic-gate2002-12-04  Yoshinori K. Okuji  <okuji@enbug.org>
10517c478bd9Sstevel@tonic-gate
10527c478bd9Sstevel@tonic-gate	* stage2/stage2.c (print_entry): Put a right arrow, if the entry
10537c478bd9Sstevel@tonic-gate	is longer than 71 characters. Reported by Pavel Roskin.
10547c478bd9Sstevel@tonic-gate
10557c478bd9Sstevel@tonic-gate2002-12-04  Yoshinori K. Okuji  <okuji@enbug.org>
10567c478bd9Sstevel@tonic-gate
10577c478bd9Sstevel@tonic-gate	* stage2/disk_io.c (set_device): If '(n' is given, add 'd' into
10587c478bd9Sstevel@tonic-gate	DEVICE. Reported by Pavel Roskin.
10597c478bd9Sstevel@tonic-gate
10607c478bd9Sstevel@tonic-gate2002-12-03  Yoshinori K. Okuji  <okuji@enbug.org>
10617c478bd9Sstevel@tonic-gate
10627c478bd9Sstevel@tonic-gate	Change the terminal structure a bit, to turn the cursor state
10637c478bd9Sstevel@tonic-gate	explicitly. Suggested by Pavel Roskin.
10647c478bd9Sstevel@tonic-gate
10657c478bd9Sstevel@tonic-gate	* stage2/term.h (struct term_entry): Remove the member
10667c478bd9Sstevel@tonic-gate	`nocursor' and add `setcursor'.
10677c478bd9Sstevel@tonic-gate	[!STAGE1_5] (console_setcursor): New prototype.
10687c478bd9Sstevel@tonic-gate	[SUPPORT_HERCULES] (hercules_setcursor): Likewise.
10697c478bd9Sstevel@tonic-gate	[!STAGE1_5] (console_nocursor): Removed.
10707c478bd9Sstevel@tonic-gate	[SUPPORT_HERCULES] (hercules_nocursor): Likewise.
10717c478bd9Sstevel@tonic-gate
10727c478bd9Sstevel@tonic-gate	* stage2/stage2.c (run_menu): Call setcursor instead of
10737c478bd9Sstevel@tonic-gate	nocursor.
10747c478bd9Sstevel@tonic-gate	Call setcursor with 1 before starting a boot entry.
10757c478bd9Sstevel@tonic-gate
10767c478bd9Sstevel@tonic-gate	* stage2/shared.h (nocursor): Removed.
10777c478bd9Sstevel@tonic-gate	(setcursor): New prototype.
10787c478bd9Sstevel@tonic-gate
10797c478bd9Sstevel@tonic-gate	* stage2/hercules.c (herc_cursor_state): New variable.
10807c478bd9Sstevel@tonic-gate	(herc_turn_cursor): Removed.
10817c478bd9Sstevel@tonic-gate	(hercules_nocursor): Likewise.
10827c478bd9Sstevel@tonic-gate	(hercules_setcursor): New function.
10837c478bd9Sstevel@tonic-gate
10847c478bd9Sstevel@tonic-gate	* stage2/char_io.c (get_cmdline): Turn on the cursor at the
10857c478bd9Sstevel@tonic-gate	beginning, and restore it before returning.
10867c478bd9Sstevel@tonic-gate	(nocursor): Removed.
10877c478bd9Sstevel@tonic-gate	(setcursor): New function.
10887c478bd9Sstevel@tonic-gate
10897c478bd9Sstevel@tonic-gate	* stage2/asm.S (console_cursor_state): New variable.
10907c478bd9Sstevel@tonic-gate	(console_cursor_shape): Likewise.
10917c478bd9Sstevel@tonic-gate	(console_setcursor): New function.
10927c478bd9Sstevel@tonic-gate	(console_nocursor): Removed.
10937c478bd9Sstevel@tonic-gate
10947c478bd9Sstevel@tonic-gate	* grub/asmstub.c (console_setcursor): New function.
10957c478bd9Sstevel@tonic-gate	(hercules_setcursor): Likewise.
10967c478bd9Sstevel@tonic-gate	(console_nocursor): Removed.
10977c478bd9Sstevel@tonic-gate	(hercules_nocursor): Likewise.
10987c478bd9Sstevel@tonic-gate
10997c478bd9Sstevel@tonic-gate2002-12-03  Yoshinori K. Okuji  <okuji@enbug.org>
11007c478bd9Sstevel@tonic-gate
11017c478bd9Sstevel@tonic-gate	* docs/grub.texi (terminfo): Fix a misleading English sentence.
11027c478bd9Sstevel@tonic-gate	Reported by Pavel Roskin.
11037c478bd9Sstevel@tonic-gate	* stage2/builtins.c (builtin_terminfo): Likewise.
11047c478bd9Sstevel@tonic-gate
11057c478bd9Sstevel@tonic-gate2002-12-01  Yoshinori K. Okuji  <okuji@enbug.org>
11067c478bd9Sstevel@tonic-gate
11077c478bd9Sstevel@tonic-gate	From Alexander Langer <alex@big.endian.de>:
11087c478bd9Sstevel@tonic-gate	* stage2/freebsd.h (RB_GDB): New macro.
11097c478bd9Sstevel@tonic-gate	(RB_MUTE): Likewise.
11107c478bd9Sstevel@tonic-gate	(RB_MULTIPLE): Likewise.
11117c478bd9Sstevel@tonic-gate
11127c478bd9Sstevel@tonic-gate	* stage2/boot.c (bsd_boot): Set the bits of RB_MULTIPLE, RB_GDB
11137c478bd9Sstevel@tonic-gate	and RB_MUTE when "-D", "-g" and "-m" are specified,
11147c478bd9Sstevel@tonic-gate	respectively.
11157c478bd9Sstevel@tonic-gate
11167c478bd9Sstevel@tonic-gate2002-12-01  Yoshinori K. Okuji  <okuji@enbug.org>
11177c478bd9Sstevel@tonic-gate
11187c478bd9Sstevel@tonic-gate	* docs/grub.texi (Reporting bugs): Specify the project page of
11197c478bd9Sstevel@tonic-gate	the BTS instead of the BTS itself.
11207c478bd9Sstevel@tonic-gate
11217c478bd9Sstevel@tonic-gate2002-11-30  Yoshinori K. Okuji  <okuji@enbug.org>
11227c478bd9Sstevel@tonic-gate
11237c478bd9Sstevel@tonic-gate	* docs/Makefile.am (man_MANS): Added grub-terminfo.8.
11247c478bd9Sstevel@tonic-gate	($(srcdir)/grub_terminfo.8): New target.
11257c478bd9Sstevel@tonic-gate	* utils/grub-terminfo.in: New file.
11267c478bd9Sstevel@tonic-gate	* util/Makefile.am (sbin_SCRIPTS): Added grub-terminfo.
11277c478bd9Sstevel@tonic-gate	* configure.in (AC_OUTPUT): Added util/grub-terminfo.
11287c478bd9Sstevel@tonic-gate
11297c478bd9Sstevel@tonic-gate	* docs/grub.texi (terminfo): New subsection.
11307c478bd9Sstevel@tonic-gate	(Invoking grub-terminfo): New chapter.
11317c478bd9Sstevel@tonic-gate
11327c478bd9Sstevel@tonic-gate	From Tilmann Bubeck <t.bubeck@reinform.de>:
11337c478bd9Sstevel@tonic-gate	* stage2/Makefile.am (noinst_HEADERS): Added terminfo.h and
11347c478bd9Sstevel@tonic-gate	tparm.h.
11357c478bd9Sstevel@tonic-gate	(libgrub_a_SOURCES): Added terminfo.c and tparm.c.
11367c478bd9Sstevel@tonic-gate	(pre_stage2_exe_SOURCES): Likewise.
11377c478bd9Sstevel@tonic-gate	* stage2/terminfo.c: New file.
11387c478bd9Sstevel@tonic-gate	* stage2/terminfo.h: Likewise.
11397c478bd9Sstevel@tonic-gate	* stage2/tparm.c: Likewise.
11407c478bd9Sstevel@tonic-gate	* stage2/tparm.h: Likewise.
11417c478bd9Sstevel@tonic-gate	* stage2/stage2.c (get_line_from_config): Fix handling of
11427c478bd9Sstevel@tonic-gate	backslashes.
11437c478bd9Sstevel@tonic-gate	* stage2/char_io.c (grub_putstr): New function.
11447c478bd9Sstevel@tonic-gate	(grub_printf): Use grub_putstr.
11457c478bd9Sstevel@tonic-gate	(substring): Add const into both arguments.
11467c478bd9Sstevel@tonic-gate	* stage2/builtins.c [SUPPORT_SERIAL]: Include terminfo.h.
11477c478bd9Sstevel@tonic-gate	[SUPPORT_SERIAL] (terminfo_func): New function.
11487c478bd9Sstevel@tonic-gate	[SUPPORT_SERIAL] (builtin_terminfo): New variable.
11497c478bd9Sstevel@tonic-gate	 (builtin_table) [SUPPORT_SERIAL]: Added a pointer to
11507c478bd9Sstevel@tonic-gate	BUILTIN_TERMINFO.
11517c478bd9Sstevel@tonic-gate	* stage2/serial.c (serial_gotoxy): Use ti_cursor_address.
11527c478bd9Sstevel@tonic-gate	(serial_cls): Use ti_clear_screen.
11537c478bd9Sstevel@tonic-gate	(serial_highlight): use ti_enter_standout_mode and
11547c478bd9Sstevel@tonic-gate	ti_exit_standout_mode.
11557c478bd9Sstevel@tonic-gate
11567c478bd9Sstevel@tonic-gate2002-11-30  Yoshinori K. Okuji  <okuji@enbug.org>
11577c478bd9Sstevel@tonic-gate
11587c478bd9Sstevel@tonic-gate	* stage2/disk_io.c (rawread): Make sure that SECTOR is valid.
11597c478bd9Sstevel@tonic-gate	If not, set ERRNUM to ERR_GEOM and return zero. This check is
11607c478bd9Sstevel@tonic-gate	critical when a partition table is corrupted.
11617c478bd9Sstevel@tonic-gate
11627c478bd9Sstevel@tonic-gate2002-11-28  Yoshinori K. Okuji  <okuji@enbug.org>
11637c478bd9Sstevel@tonic-gate
11647c478bd9Sstevel@tonic-gate	* stage2/asm.S (console_cls): Write spaces to the entire screen
11657c478bd9Sstevel@tonic-gate	instead of getting/setting the video mode, because this flickers
11667c478bd9Sstevel@tonic-gate	the screen and is quite annoying, if using a LCD.
11677c478bd9Sstevel@tonic-gate
11687c478bd9Sstevel@tonic-gate2002-11-15  Yoshinori K. Okuji  <okuji@enbug.org>
11697c478bd9Sstevel@tonic-gate
11707c478bd9Sstevel@tonic-gate	* docs/grub.texi (QNX): New subsection. Reported by
11717c478bd9Sstevel@tonic-gate	Marian-Nicolae V. ION <marian_ion@noos.fr>.
11727c478bd9Sstevel@tonic-gate
11737c478bd9Sstevel@tonic-gate2002-10-28  Yoshinori K. Okuji  <okuji@enbug.org>
11747c478bd9Sstevel@tonic-gate
11757c478bd9Sstevel@tonic-gate	* grub/asmstub.c (console_translate_key): Deal with KEY_PPAGE
11767c478bd9Sstevel@tonic-gate	and KEY_NPAGE.
11777c478bd9Sstevel@tonic-gate	* stage2/serial.c (serial_translate_key_sequence): Added two new
11787c478bd9Sstevel@tonic-gate	codes for Page Up and Page Down.
11797c478bd9Sstevel@tonic-gate	* stage2/asm.S (translation_table): Added entries for KEY_PPAGE
11807c478bd9Sstevel@tonic-gate	and KEY_NPAGE.
11817c478bd9Sstevel@tonic-gate	* stage2/stage2.c (run_menu): Deal with Page Up and Page Down.
11827c478bd9Sstevel@tonic-gate	Also recognize the right key for the selection of a boot entry.
11837c478bd9Sstevel@tonic-gate	Suggested by Adam Lackorzynski <adam@os.inf.tu-dresden.de>.
11847c478bd9Sstevel@tonic-gate
11857c478bd9Sstevel@tonic-gate2002-10-10  Jason Thomas  <jason@topic.com.au>
11867c478bd9Sstevel@tonic-gate
11877c478bd9Sstevel@tonic-gate	* stage2/builtins.c (setup_func): Added missing space to --force-lba
11887c478bd9Sstevel@tonic-gate	option. Reported by Kenneth Crudup <kenny@panix.com>
11897c478bd9Sstevel@tonic-gate
11907c478bd9Sstevel@tonic-gate2002-10-06  Yoshinori K. Okuji  <okuji@enbug.org>
11917c478bd9Sstevel@tonic-gate
11927c478bd9Sstevel@tonic-gate	* stage2/asm.S (gateA20): Output a dummy command (0xff), as a
11937c478bd9Sstevel@tonic-gate	workaround for USB keyboard hanging problem. Suggested by
11947c478bd9Sstevel@tonic-gate	Hidetoshi Nishimaki <nishimaki@mxs.nes.nec.co.jp>.
11957c478bd9Sstevel@tonic-gate
11967c478bd9Sstevel@tonic-gate2002-10-06  Yoshinori K. Okuji  <okuji@enbug.org>
11977c478bd9Sstevel@tonic-gate
11987c478bd9Sstevel@tonic-gate	* configure.in (falign_loop_flag): New variable. Set to if GCC
11997c478bd9Sstevel@tonic-gate	supports `-falign-*'. If true, use `-falign-jumps',
12007c478bd9Sstevel@tonic-gate	`-falign-loops' and `-falign-functions' instead of
12017c478bd9Sstevel@tonic-gate	`-malign-jumps', `-malign-loops' and `-malign-functions',
12027c478bd9Sstevel@tonic-gate	because `-malign-*' are obsolete in GCC 3.x. Reported by Jeremy
12037c478bd9Sstevel@tonic-gate	Katz.
12047c478bd9Sstevel@tonic-gate
12057c478bd9Sstevel@tonic-gate2002-09-13  Yoshinori K. Okuji  <okuji@enbug.org>
12067c478bd9Sstevel@tonic-gate
12077c478bd9Sstevel@tonic-gate	* stage2/serial.c (fill_input_buf): Take a new argument NOWAIT.
12087c478bd9Sstevel@tonic-gate	If NOWAIT is true, don't loop.
12097c478bd9Sstevel@tonic-gate	All callers are changed.
12107c478bd9Sstevel@tonic-gate
12117c478bd9Sstevel@tonic-gate2002-09-08  Yoshinori K. Okuji  <okuji@enbug.org>
12127c478bd9Sstevel@tonic-gate
12137c478bd9Sstevel@tonic-gate	* configure.in (--disable-serial): Fix a typo in the
12147c478bd9Sstevel@tonic-gate	description.
12157c478bd9Sstevel@tonic-gate
12167c478bd9Sstevel@tonic-gate2002-08-20  Jason Thomas <jason@topic.com.au>
12177c478bd9Sstevel@tonic-gate
12187c478bd9Sstevel@tonic-gate	Changed highlight state code for hercules, console and serial.
12197c478bd9Sstevel@tonic-gate	The state was 0 - normal or 1 - highlight.
12207c478bd9Sstevel@tonic-gate	The state is now defined using an enum called color_state.
12217c478bd9Sstevel@tonic-gate
12227c478bd9Sstevel@tonic-gate	* stage2/term.h (color_state): New enum.
12237c478bd9Sstevel@tonic-gate	(COLOR_STATE_STANDARD): Standard color to use when not using
12247c478bd9Sstevel@tonic-gate	user defined.
12257c478bd9Sstevel@tonic-gate	(COLOR_STATE_NORMAL): User defined normal color.
12267c478bd9Sstevel@tonic-gate	(COLOR_STATE_HIGHLIGHT): User defined highlight color.
12277c478bd9Sstevel@tonic-gate	(console_highlight): Renamed to console_setcolorstate.
12287c478bd9Sstevel@tonic-gate	(serial_highlight): Renamed to serial_setcolorstate.
12297c478bd9Sstevel@tonic-gate	(hercules_highlight): Renamed to hercules_setcolorstate.
12307c478bd9Sstevel@tonic-gate	* stage2/hercules.c (herc_highlight_state): Removed.
12317c478bd9Sstevel@tonic-gate	(herc_standard_color): New variable.
12327c478bd9Sstevel@tonic-gate	(herc_color_state): Likewise.
12337c478bd9Sstevel@tonic-gate	(herc_highlight): Renamed to herc_setcolorstate.
12347c478bd9Sstevel@tonic-gate	(herc_setcolorstate): Added switch to handle new states.
12357c478bd9Sstevel@tonic-gate	* stage2/console.c (console_highlight_state): Removed.
12367c478bd9Sstevel@tonic-gate	(console_standard_color): New variable.
12377c478bd9Sstevel@tonic-gate	(console_color_state): Likewise.
12387c478bd9Sstevel@tonic-gate	(console_highlight): Renamed to console_setcolorstate.
12397c478bd9Sstevel@tonic-gate	(console_setcolorstate): Added switch to handle new states.
12407c478bd9Sstevel@tonic-gate	* stage2/serial.c (serial_highlight): Renamed to
12417c478bd9Sstevel@tonic-gate	serial_setcolorstate.
12427c478bd9Sstevel@tonic-gate	(serial_setcolorstate): Adjusted 'if' to suit new states.
12437c478bd9Sstevel@tonic-gate	* grub/asmstub.c (console_highlight): Renamed to
12447c478bd9Sstevel@tonic-gate	console_setcolorstate.
12457c478bd9Sstevel@tonic-gate	(console_setcolorstate): Adjusted 'if' to suit new states.
12467c478bd9Sstevel@tonic-gate	* stage2/stage2.c (print_entry): Set color states using new
12477c478bd9Sstevel@tonic-gate	states.
12487c478bd9Sstevel@tonic-gate	(print_border): Likewise.
12497c478bd9Sstevel@tonic-gate	* stage2/stage2.c (run_menu): Reverse if (!) to if () for
12507c478bd9Sstevel@tonic-gate	uniformitty.
12517c478bd9Sstevel@tonic-gate
12527c478bd9Sstevel@tonic-gate2002-07-12  Yoshinori K. Okuji  <okuji@enbug.org>
12537c478bd9Sstevel@tonic-gate
12547c478bd9Sstevel@tonic-gate	* stage2/boot.c (load_image): Rewrite the Linux booting support
12557c478bd9Sstevel@tonic-gate	radically. Now it should work even on a machine having, say,
12567c478bd9Sstevel@tonic-gate	only 128KB, theoretically. Of course, GRUB itself doesn't work
12577c478bd9Sstevel@tonic-gate	on such a system, though.
12587c478bd9Sstevel@tonic-gate	(load_initrd): Initialize LH based on CUR_ADDR, because the
12597c478bd9Sstevel@tonic-gate	location becomes dynamic.
12607c478bd9Sstevel@tonic-gate	* stage2/shared.h (LINUX_MAX_SETUP_SECTS): Set to 64.
12617c478bd9Sstevel@tonic-gate	(LINUX_HEAP_END_OFFSET): Set to (0x9000 - 0x200).
12627c478bd9Sstevel@tonic-gate	(LINUX_STAGING_AREA): Removed.
12637c478bd9Sstevel@tonic-gate	(LINUX_SETUP): Likewise.
12647c478bd9Sstevel@tonic-gate	(LINUX_KERNEL): Likewise.
12657c478bd9Sstevel@tonic-gate	(LINUX_KERNEL_MAXLEN): Likewise.
12667c478bd9Sstevel@tonic-gate	(LINUX_SETUP_SEG): Likewise.
12677c478bd9Sstevel@tonic-gate	(LINUX_INIT_SEG): Likewise.
12687c478bd9Sstevel@tonic-gate	(LINUX_SETUP_STACK): Set to 0x9000.
12697c478bd9Sstevel@tonic-gate	(LINUX_BZIMAGE_ADDR): New macro.
12707c478bd9Sstevel@tonic-gate	(LINUX_ZIMAGE_ADDR): Likewise.
12717c478bd9Sstevel@tonic-gate	(LINUX_OLD_REAL_MODE_ADDR): Likewise.
12727c478bd9Sstevel@tonic-gate	(CL_MY_LOCATION): Removed.
12737c478bd9Sstevel@tonic-gate	(CL_MY_END_ADDR): Likewise.
12747c478bd9Sstevel@tonic-gate	(CL_BASE_ADDR): Likewise.
12757c478bd9Sstevel@tonic-gate	(CL_MAGIC): Renamed to ...
12767c478bd9Sstevel@tonic-gate	(LINUX_CL_MAGIC): ... this.
12777c478bd9Sstevel@tonic-gate	(LINUX_CL_OFFSET): New macro.
12787c478bd9Sstevel@tonic-gate	(LINUX_CL_END_OFFSET): Likewise.
12797c478bd9Sstevel@tonic-gate	(LINUX_SETUP_MOVE_SIZE): Likewise.
12807c478bd9Sstevel@tonic-gate	(struct linux_kernel_header): Change the type of the member
12817c478bd9Sstevel@tonic-gate	"cmd_line_ptr" to char *.
12827c478bd9Sstevel@tonic-gate	(linux_data_tmp_addr): Declared.
12837c478bd9Sstevel@tonic-gate	(linux_data_real_addr): Likewise.
12847c478bd9Sstevel@tonic-gate	* stage2/asm.S [!STAGE1_5] (linux_data_tmp_addr): New variable.
12857c478bd9Sstevel@tonic-gate	[!STAGE1_5] (linux_data_real_addr): Likewise.
12867c478bd9Sstevel@tonic-gate	[!STAGE1_5] (big_linux_boot): Copy the real mode part from
12877c478bd9Sstevel@tonic-gate	LINUX_DATA_TMP_ADDR to LINUX_DATA_REAL_ADDR.
12887c478bd9Sstevel@tonic-gate	* grub/asmstub.c (linux_data_tmp_addr): New variable.
12897c478bd9Sstevel@tonic-gate	(linux_data_real_addr): Likewise.
12907c478bd9Sstevel@tonic-gate
12917c478bd9Sstevel@tonic-gate2002-07-09  Yoshinori K. Okuji  <okuji@enbug.org>
12927c478bd9Sstevel@tonic-gate
12937c478bd9Sstevel@tonic-gate	From Mark Kettenis <kettenis@chello.nl>:
12947c478bd9Sstevel@tonic-gate	* stage2/boot.c (load_image): Recognize newer FreeBSD kernels.
12957c478bd9Sstevel@tonic-gate	* stage2/i386-elf.h (EI_OSABI): New macro.
12967c478bd9Sstevel@tonic-gate	(EI_ABIVERSION): Likewise.
12977c478bd9Sstevel@tonic-gate	(ELFOSABI_FREEBSD): Likewise.
12987c478bd9Sstevel@tonic-gate	(EI_PAD): Set to 9.
12997c478bd9Sstevel@tonic-gate
13007c478bd9Sstevel@tonic-gate2002-07-06  Yoshinori K. Okuji  <okuji@enbug.org>
13017c478bd9Sstevel@tonic-gate
13027c478bd9Sstevel@tonic-gate	* stage2/shared.h (boot_part_offset): Removed.
13037c478bd9Sstevel@tonic-gate
13047c478bd9Sstevel@tonic-gate	* stage2/disk_io.c (set_bootdev): Copy the partition information
13057c478bd9Sstevel@tonic-gate	here. Now this function can call rawread, so it can fail.
13067c478bd9Sstevel@tonic-gate	(boot_part_offset): Removed.
13077c478bd9Sstevel@tonic-gate
13087c478bd9Sstevel@tonic-gate	* stage2/builtins.c (boot_func): Don't copy the partition
13097c478bd9Sstevel@tonic-gate	information here.
13107c478bd9Sstevel@tonic-gate	(real_root_func): Check ERRNUM after calling set_bootdev.
13117c478bd9Sstevel@tonic-gate
13127c478bd9Sstevel@tonic-gate2002-07-04  Yoshinori K. Okuji  <okuji@enbug.org>
13137c478bd9Sstevel@tonic-gate
13147c478bd9Sstevel@tonic-gate	* docs/grub.texi (Reporting bugs): Use the group name (i.e.
13157c478bd9Sstevel@tonic-gate	grub) instead of the group id (i.e. 68) for the URL of the BTS.
13167c478bd9Sstevel@tonic-gate
13177c478bd9Sstevel@tonic-gate2002-07-03  Yoshinori K. Okuji  <okuji@enbug.org>
13187c478bd9Sstevel@tonic-gate
13197c478bd9Sstevel@tonic-gate	* stage2/serial.c [!GRUB_UTIL] (inb): Added a delay into this
13207c478bd9Sstevel@tonic-gate	function itself.
13217c478bd9Sstevel@tonic-gate	[!GRUB_UTIL] (outb): Likewise.
13227c478bd9Sstevel@tonic-gate	[!GRUB_UTIL] (serial_hw_put): Increase the timeout value, and
13237c478bd9Sstevel@tonic-gate	don't call serial_hw_delay explicitly any longer.
13247c478bd9Sstevel@tonic-gate	(fill_input_buf): Increase the maximum number of retries, reset
13257c478bd9Sstevel@tonic-gate	the counter to zero after getting a valid character, and don't
13267c478bd9Sstevel@tonic-gate	call serial_hw_delay explicitly any longer.
13277c478bd9Sstevel@tonic-gate
13287c478bd9Sstevel@tonic-gate2002-07-03  Yoshinori K. Okuji  <okuji@enbug.org>
13297c478bd9Sstevel@tonic-gate
13307c478bd9Sstevel@tonic-gate	* stage2/serial.c [!GRUB_UTIL] (serial_hw_fetch): Fixed a typo.
13317c478bd9Sstevel@tonic-gate	Reported by Ilguiz Latypov.
13327c478bd9Sstevel@tonic-gate
13337c478bd9Sstevel@tonic-gate2002-07-01  Yoshinori K. Okuji <okuji@enbug.org>
13347c478bd9Sstevel@tonic-gate
13357c478bd9Sstevel@tonic-gate	* Makefile.am (AUTOMAKE_OPTIONS): New variable. Specify the
13367c478bd9Sstevel@tonic-gate	required Automake version explicitly.
13377c478bd9Sstevel@tonic-gate
13387c478bd9Sstevel@tonic-gate2002-06-30  Yoshinori K. Okuji <okuji@enbug.org>
13397c478bd9Sstevel@tonic-gate
13407c478bd9Sstevel@tonic-gate	* stage2/builtins.c [SUPPORT_SERIAL || SUPPORT_HERCULES]
13417c478bd9Sstevel@tonic-gate	(terminal_func): Set CURRENT_TERM to each of selected terminals
13427c478bd9Sstevel@tonic-gate	before calling grub_printf, and restore CURRENT_TERM after it.
13437c478bd9Sstevel@tonic-gate	Reported by Ilguiz Latypov.
13447c478bd9Sstevel@tonic-gate	Prepend a carriage return to the prompting message, because it
13457c478bd9Sstevel@tonic-gate	is ugly that the same messages fulfill the whole screen.
13467c478bd9Sstevel@tonic-gate
13477c478bd9Sstevel@tonic-gate2002-06-30  Yoshinori K. Okuji  <okuji@enbug.org>
13487c478bd9Sstevel@tonic-gate
13497c478bd9Sstevel@tonic-gate	* stage2/serial.c [!GRUB_UTIL] (serial_hw_fetch): Fixed the
13507c478bd9Sstevel@tonic-gate	conditional statement. Reported by Ilguiz Latypov.
13517c478bd9Sstevel@tonic-gate
13527c478bd9Sstevel@tonic-gate2002-06-24  Yoshinori K. Okuji  <okuji@enbug.org>
13537c478bd9Sstevel@tonic-gate
13547c478bd9Sstevel@tonic-gate	* MAINTENANCE: New file.
13557c478bd9Sstevel@tonic-gate
13567c478bd9Sstevel@tonic-gate2002-06-15  Yoshinori K. Okuji  <okuji@enbug.org>
13577c478bd9Sstevel@tonic-gate
13587c478bd9Sstevel@tonic-gate	* stage2/disk_io.c [SUPPORT_NETBOOT] (GRUB): Defined.
13597c478bd9Sstevel@tonic-gate	[SUPPORT_NETBOOT]: Include etherboot.h.
13607c478bd9Sstevel@tonic-gate	[!STAGE1_5] (print_completions) [SUPPORT_NETBOOT]: When
13617c478bd9Sstevel@tonic-gate	completing a disk name, if NETWORK_READY is true, add "nd" as a
13627c478bd9Sstevel@tonic-gate	completion.
13637c478bd9Sstevel@tonic-gate
13647c478bd9Sstevel@tonic-gate2002-06-15  Yoshinori K. Okuji  <okuji@enbug.org>
13657c478bd9Sstevel@tonic-gate
13667c478bd9Sstevel@tonic-gate	* stage2/fsys_xfs.c (le32): Don't use bswap, but use xchgb and
13677c478bd9Sstevel@tonic-gate	roll, because 386 doesn't have bswap. Reported by Frode Vatvedt
13687c478bd9Sstevel@tonic-gate	Fjeld <frodef@acm.org>.
13697c478bd9Sstevel@tonic-gate
13707c478bd9Sstevel@tonic-gate2002-06-12  Yoshinori K. Okuji  <okuji@enbug.org>
13717c478bd9Sstevel@tonic-gate
13727c478bd9Sstevel@tonic-gate	* netboot/main.c (ifconfig): If GW is specified, clear out the
13737c478bd9Sstevel@tonic-gate	ARP entry for the gateway. If SVR is specified, clear out the
13747c478bd9Sstevel@tonic-gate	ARP entry for the server. Reported by Uwe Dannowski
13757c478bd9Sstevel@tonic-gate	<ud3@ira.uka.de>.
13767c478bd9Sstevel@tonic-gate
13777c478bd9Sstevel@tonic-gate2002-06-12  Yoshinori K. Okuji  <okuji@enbug.org>
13787c478bd9Sstevel@tonic-gate
13797c478bd9Sstevel@tonic-gate	* util/grub-md5-crypt.in: Prompt to retype a password, and check
13807c478bd9Sstevel@tonic-gate	if the passwords matches. Suggested by Matt Perry
13817c478bd9Sstevel@tonic-gate	<matt@primefactor.com>.
13827c478bd9Sstevel@tonic-gate	Also, don't use Perl any longer, because *BSD's sh and GNU
13837c478bd9Sstevel@tonic-gate	support ``read -r'', and GRUB doesn't support any other
13847c478bd9Sstevel@tonic-gate	operating system anyway.
13857c478bd9Sstevel@tonic-gate
13867c478bd9Sstevel@tonic-gate2002-06-12  Yoshinori K. Okuji  <okuji@enbug.org>
13877c478bd9Sstevel@tonic-gate
13887c478bd9Sstevel@tonic-gate	The terminal handling code is rewritten radically.
13897c478bd9Sstevel@tonic-gate
13907c478bd9Sstevel@tonic-gate	* stage2/console.c: New file.
13917c478bd9Sstevel@tonic-gate	* stage2/term.h: Likewise.
13927c478bd9Sstevel@tonic-gate
13937c478bd9Sstevel@tonic-gate	* stage2/Makefile.am (noinst_HEADERS): Added term.h.
13947c478bd9Sstevel@tonic-gate	(libgrub_a_SOURCES): Added serial.c.
13957c478bd9Sstevel@tonic-gate	(pre_stage2_exec_SOURCES): Added console.c.
13967c478bd9Sstevel@tonic-gate
13977c478bd9Sstevel@tonic-gate	* stage2/asm.S (console_putchar): Rewritten from scratch.
13987c478bd9Sstevel@tonic-gate	[!STAGE1_5] (translation_table): New variable.
13997c478bd9Sstevel@tonic-gate	[!STAGE1_5] (translate_keycode): New function.
14007c478bd9Sstevel@tonic-gate	[!STAGE1_5] (console_getkey): Call translate_keycode.
14017c478bd9Sstevel@tonic-gate	[!STAGE1_5] (console_checkkey): Likewise.
14027c478bd9Sstevel@tonic-gate	[!STAGE1_5] (nocursor): Renamed to ...
14037c478bd9Sstevel@tonic-gate	[!STAGE1_5] (console_nocursor): ... this.
14047c478bd9Sstevel@tonic-gate	[!STAGE1_5] (console_set_attrib): Removed.
14057c478bd9Sstevel@tonic-gate
14067c478bd9Sstevel@tonic-gate	* stage2/builtins.c: Include term.h.
14077c478bd9Sstevel@tonic-gate	(terminal): Removed.
14087c478bd9Sstevel@tonic-gate	(normal_color): Likewise.
14097c478bd9Sstevel@tonic-gate	(highlight_color): Likewise.
14107c478bd9Sstevel@tonic-gate	(cat_func): Display a question mark when a non-printable
14117c478bd9Sstevel@tonic-gate	character was read.
14127c478bd9Sstevel@tonic-gate	(terminal_func): Rewritten almost from scratch.
14137c478bd9Sstevel@tonic-gate
14147c478bd9Sstevel@tonic-gate	* stage2/char_io.c: Include term.h.
14157c478bd9Sstevel@tonic-gate	[!STAGE1_5] (auto_fill): Removed.
14167c478bd9Sstevel@tonic-gate	[!STAGE1_5] (term_table): New variable.
14177c478bd9Sstevel@tonic-gate	[!STAGE1_5] (current_term): Likewise.
14187c478bd9Sstevel@tonic-gate	[!STAGE1_5] (real_get_cmdline): New function. The code was
14197c478bd9Sstevel@tonic-gate	stolen from the previous version of get_cmdline.
14207c478bd9Sstevel@tonic-gate	[!STAGE1_5] (get_cmdline): Rewritten from scratch.
14217c478bd9Sstevel@tonic-gate	[!STAGE1_5] (translate_keycode): Removed.
14227c478bd9Sstevel@tonic-gate	[!STAGE1_5] (getkey): Rewritten from scratch.
14237c478bd9Sstevel@tonic-gate	[!STAGE1_5] (checkkey): Likewise.
14247c478bd9Sstevel@tonic-gate	(grub_putchar): Likewise.
14257c478bd9Sstevel@tonic-gate	[!STAGE1_5] (gotoxy): Likewise.
14267c478bd9Sstevel@tonic-gate	[!STAGE1_5] (getxy): Likewise.
14277c478bd9Sstevel@tonic-gate	[!STAGE1_5] (cls): Likewise.
14287c478bd9Sstevel@tonic-gate	[!STAGE1_5] (nocursor): New function.
14297c478bd9Sstevel@tonic-gate	[SUPPORT_SERIAL] (serial_getxy): Removed.
14307c478bd9Sstevel@tonic-gate	[SUPPORT_SERIAL] (serial_gotoxy): Likewise.
14317c478bd9Sstevel@tonic-gate	[SUPPORT_SERIAL] (serial_cls): Likewise.
14327c478bd9Sstevel@tonic-gate	[SUPPORT_SERIAL] (serial_getxy): Likewise.
14337c478bd9Sstevel@tonic-gate	[!STAGE1_5] (set_attrib): Likewise.
14347c478bd9Sstevel@tonic-gate
14357c478bd9Sstevel@tonic-gate	* stage2/cmdline.c (init_cmdline): Set COUNT_LINES to -1.
14367c478bd9Sstevel@tonic-gate
14377c478bd9Sstevel@tonic-gate	* stage2/common.c [!STAGE1_5] (err_list): Removed
14387c478bd9Sstevel@tonic-gate	ERR_NEED_SERIAL and added ERR_DEV_NEED_INIT.
14397c478bd9Sstevel@tonic-gate
14407c478bd9Sstevel@tonic-gate	* stage2/hercules.c: Rewritten almost from scratch.
14417c478bd9Sstevel@tonic-gate	* stage2/hercules.h (herc_putchar): Removed.
14427c478bd9Sstevel@tonic-gate	(herc_cls): Likewise.
14437c478bd9Sstevel@tonic-gate	(herc_getxy): Likewise.
14447c478bd9Sstevel@tonic-gate	(herc_gotoxy): Likewise.
14457c478bd9Sstevel@tonic-gate	(herc_set_attrib): Likewise.
14467c478bd9Sstevel@tonic-gate
14477c478bd9Sstevel@tonic-gate	* stage2/serial.c: Rewritten almost from scratch.
14487c478bd9Sstevel@tonic-gate	* stage2/serial.h: Likewise.
14497c478bd9Sstevel@tonic-gate
14507c478bd9Sstevel@tonic-gate	* stage2/shared.h [GRUB_UTIL] (DISP_UL): Set to the same value
14517c478bd9Sstevel@tonic-gate	as VGA's.
14527c478bd9Sstevel@tonic-gate	[GRUB_UTIL] (DISP_UR): Likewise.
14537c478bd9Sstevel@tonic-gate	[GRUB_UTIL] (DISP_LL): Likewise.
14547c478bd9Sstevel@tonic-gate	[GRUB_UTIL] (DISP_LR): Likewise.
14557c478bd9Sstevel@tonic-gate	[GRUB_UTIL] (DISP_HORIZ): Likewise.
14567c478bd9Sstevel@tonic-gate	[GRUB_UTIL] (DISP_VERT): Likewise.
14577c478bd9Sstevel@tonic-gate	[GRUB_UTIL] (DISP_LEFT): Likewise.
14587c478bd9Sstevel@tonic-gate	[GRUB_UTIL] (DISP_RIGHT): Likewise.
14597c478bd9Sstevel@tonic-gate	[GRUB_UTIL] (DISP_UP): Likewise.
14607c478bd9Sstevel@tonic-gate	[GRUB_UTIL] (DISP_DOWN): Likewise.
14617c478bd9Sstevel@tonic-gate	(grub_error_t): Removed ERR_NEED_SERIAL.
14627c478bd9Sstevel@tonic-gate	Added ERR_DEV_NEED_INIT.
14637c478bd9Sstevel@tonic-gate	(normal_color): Removed.
14647c478bd9Sstevel@tonic-gate	(highlight_color): Likewise.
14657c478bd9Sstevel@tonic-gate	(console_cls): Removed, because this is declared in term.h.
14667c478bd9Sstevel@tonic-gate	(console_getxy): Likewise.
14677c478bd9Sstevel@tonic-gate	(console_gotoxy): Likewise.
14687c478bd9Sstevel@tonic-gate	(console_putchar): Likewise.
14697c478bd9Sstevel@tonic-gate	(console_getkey): Likewise.
14707c478bd9Sstevel@tonic-gate	(console_checkkey): Likewise.
14717c478bd9Sstevel@tonic-gate	(console_set_attrib): Removed.
14727c478bd9Sstevel@tonic-gate	(set_attrib): Likewise.
14737c478bd9Sstevel@tonic-gate	[GRUB_UTIL] (nocursor): Declared.
14747c478bd9Sstevel@tonic-gate	(auto_fill): Removed.
14757c478bd9Sstevel@tonic-gate	(terminal): Likewise.
14767c478bd9Sstevel@tonic-gate	(TERMINAL_CONSOLE): Likewise.
14777c478bd9Sstevel@tonic-gate	(TERMINAL_SERIAL): Likewise.
14787c478bd9Sstevel@tonic-gate	(TERMINAL_HERCULES): Likewise.
14797c478bd9Sstevel@tonic-gate	(TERMINAL_DUMB): Likewise.
14807c478bd9Sstevel@tonic-gate	(translate_keycode): Likewise.
14817c478bd9Sstevel@tonic-gate
14827c478bd9Sstevel@tonic-gate	* stage2/stage2.c: Include term.h.
14837c478bd9Sstevel@tonic-gate	(print_entry): Rewritten from scratch.
14847c478bd9Sstevel@tonic-gate	(print_entries): Likewise.
14857c478bd9Sstevel@tonic-gate	(print_border): Likewise.
14867c478bd9Sstevel@tonic-gate	(set_line): Removed.
14877c478bd9Sstevel@tonic-gate	(set_line_normal): Likewise.
14887c478bd9Sstevel@tonic-gate	(set_line_highlight): Likewise.
14897c478bd9Sstevel@tonic-gate
14907c478bd9Sstevel@tonic-gate	* grub/Makefile.am (AM_CFLAGS): Added -DSUPPORT_HERCULES=1.
14917c478bd9Sstevel@tonic-gate
14927c478bd9Sstevel@tonic-gate	* grub/asmstub.c: Don't include hercules.h. Include term.h.
14937c478bd9Sstevel@tonic-gate	(console_current_color): New variable.
14947c478bd9Sstevel@tonic-gate	(console_translate_key): New function.
14957c478bd9Sstevel@tonic-gate	(console_checkkey): Rewritten from scratch.
14967c478bd9Sstevel@tonic-gate	(console_getkey): Likewise.
14977c478bd9Sstevel@tonic-gate	(console_putchar): Likewise.
14987c478bd9Sstevel@tonic-gate	(console_set_attrib): Removed.
14997c478bd9Sstevel@tonic-gate	(console_highlight): New function.
15007c478bd9Sstevel@tonic-gate	(console_setcolor): Likewise.
15017c478bd9Sstevel@tonic-gate	(console_nocursor): Likewise.
15027c478bd9Sstevel@tonic-gate	(serial_getkey): Removed.
15037c478bd9Sstevel@tonic-gate	(serial_checkkey): Likewise.
15047c478bd9Sstevel@tonic-gate	(serial_putchar): Likewise.
15057c478bd9Sstevel@tonic-gate	(serial_exists): Likewise.
15067c478bd9Sstevel@tonic-gate	(serial_get_port): Likewise.
15077c478bd9Sstevel@tonic-gate	(serial_init): Likewise.
15087c478bd9Sstevel@tonic-gate	(serial_hw_fetch): New function.
15097c478bd9Sstevel@tonic-gate	(serial_hw_put): Likewise.
15107c478bd9Sstevel@tonic-gate	(serial_hw_delay): Likewise.
15117c478bd9Sstevel@tonic-gate	(serial_hw_get_port): Likewise.
15127c478bd9Sstevel@tonic-gate	(serial_hw_init): Likewise.
15137c478bd9Sstevel@tonic-gate	(set_serial_device): Renamed to ...
15147c478bd9Sstevel@tonic-gate	(serial_set_device): ... this.
15157c478bd9Sstevel@tonic-gate	(herc_putchar): Renamed to ...
15167c478bd9Sstevel@tonic-gate	(hercules_putchar): ... this.
15177c478bd9Sstevel@tonic-gate	(herc_cls): Renamed to ...
15187c478bd9Sstevel@tonic-gate	(hercules_cls): ... this.
15197c478bd9Sstevel@tonic-gate	(herc_getxy): Renamed to ...
15207c478bd9Sstevel@tonic-gate	(hercules_getxy): ... this.
15217c478bd9Sstevel@tonic-gate	(herc_gotoxy): Renamed to ...
15227c478bd9Sstevel@tonic-gate	(hercules_gotoxy): ... this.
15237c478bd9Sstevel@tonic-gate	(hercules_highlight): New function.
15247c478bd9Sstevel@tonic-gate	(hercules_setcolor): Likewise.
15257c478bd9Sstevel@tonic-gate	(hercules_nocursor): Likewise.
15267c478bd9Sstevel@tonic-gate	(herc_set_attrib): Removed.
15277c478bd9Sstevel@tonic-gate
15287c478bd9Sstevel@tonic-gate	* grub/main.c: Include term.h.
15297c478bd9Sstevel@tonic-gate	(main): If USE_CURSES is false, set CURRENT_TERM->FLAGS to
15307c478bd9Sstevel@tonic-gate	TERM_NO_EDIT | TERM_DUMB. TERMINAL is not used any longer.
15317c478bd9Sstevel@tonic-gate
15327c478bd9Sstevel@tonic-gate2002-06-01  Yoshinori K. Okuji  <okuji@enbug.org>
15337c478bd9Sstevel@tonic-gate
15347c478bd9Sstevel@tonic-gate	* docs/grub.texi (FAQ): Removed. See the GNU GRUB FAQ on the web
15357c478bd9Sstevel@tonic-gate	instead.
15367c478bd9Sstevel@tonic-gate
15377c478bd9Sstevel@tonic-gate2002-05-31  Yoshinori K. Okuji  <okuji@enbug.org>
15387c478bd9Sstevel@tonic-gate
15397c478bd9Sstevel@tonic-gate	* docs/grub.texi (Reporting bugs): Recommend using the BTS on
15407c478bd9Sstevel@tonic-gate	Savannah rather than the list bug-grub.
15417c478bd9Sstevel@tonic-gate
15427c478bd9Sstevel@tonic-gate2002-05-25  Yoshinori K. Okuji  <okuji@enbug.org>
15437c478bd9Sstevel@tonic-gate
15447c478bd9Sstevel@tonic-gate	* stage2/builtins.c (boot_func): Load the boot partition
15457c478bd9Sstevel@tonic-gate	information, only if the address of the boot partition entry is
15467c478bd9Sstevel@tonic-gate	set appropriately.
15477c478bd9Sstevel@tonic-gate	(real_root_func): If ATTEMPT_MOUNT is false, call open_partition
15487c478bd9Sstevel@tonic-gate	and if successful, call set_bootdev, to set the offset of the
15497c478bd9Sstevel@tonic-gate	boot partition and the address of the boot paetition entry.
15507c478bd9Sstevel@tonic-gate	IF ATTEMPT_MOUNT is false, don't set BOOTDEV. The BSD evil hack
15517c478bd9Sstevel@tonic-gate	is useless with the command "rootnoverify" anyway.
15527c478bd9Sstevel@tonic-gate	* stage2/disk_io.c (boot_part_addr): Initialized with zero
15537c478bd9Sstevel@tonic-gate	explicitly, to emphasize that it is invalid.
15547c478bd9Sstevel@tonic-gate
15557c478bd9Sstevel@tonic-gate2002-05-24  Yoshinori K. Okuji  <okuji@enbug.org>
15567c478bd9Sstevel@tonic-gate
15577c478bd9Sstevel@tonic-gate	* stage2/builtins.c (real_root_func): New function.
15587c478bd9Sstevel@tonic-gate	(root_func): Just call real_root_func.
15597c478bd9Sstevel@tonic-gate	(rootnoverify_func): Likewise.
15607c478bd9Sstevel@tonic-gate
15617c478bd9Sstevel@tonic-gate2002-05-23  Yoshinori K. Okuji  <okuji@enbug.org>
15627c478bd9Sstevel@tonic-gate
15637c478bd9Sstevel@tonic-gate	* configure.in (AM_INIT_AUTOMAKE): Changed the version number to
15647c478bd9Sstevel@tonic-gate	0.93.
15657c478bd9Sstevel@tonic-gate
15667c478bd9Sstevel@tonic-gate2002-05-23  Yoshinori K. Okuji  <okuji@enbug.org>
15677c478bd9Sstevel@tonic-gate
15687c478bd9Sstevel@tonic-gate	Define the behavior of the boot loader when the load end address
15697c478bd9Sstevel@tonic-gate	and the bss end address are zero in the Multiboot Specification,
15707c478bd9Sstevel@tonic-gate	and add the support into GRUB. I've modified a patch from Yuri
15717c478bd9Sstevel@tonic-gate	Zaporogets <yuriz@ukr.net>.
15727c478bd9Sstevel@tonic-gate
15737c478bd9Sstevel@tonic-gate	* stage2/boot.c (load_image): In the case of Multiboot a.out
15747c478bd9Sstevel@tonic-gate	kludge, set the load end address to the load address plus the
15757c478bd9Sstevel@tonic-gate	size of the OS image file, if it is zero. Similarly, set the bss
15767c478bd9Sstevel@tonic-gate	end address to the load end address, if it is zero.
15777c478bd9Sstevel@tonic-gate
15787c478bd9Sstevel@tonic-gate	* util/mbchk.c (check_multiboot): Don't check if the load
15797c478bd9Sstevel@tonic-gate	address is greater than or equal to the load end address, if the
15807c478bd9Sstevel@tonic-gate	load end address is zero. Don't check if the load end address is
15817c478bd9Sstevel@tonic-gate	greater than the bss end address, if the bss end address is
15827c478bd9Sstevel@tonic-gate	zero. And, don't check if the load end address is less than or
15837c478bd9Sstevel@tonic-gate	equal to the entry address, if the load end address is zero.
15847c478bd9Sstevel@tonic-gate
15857c478bd9Sstevel@tonic-gate	* docs/multiboot.texi (The address fields of Multiboot header):
15867c478bd9Sstevel@tonic-gate	Added descriptions about the behavior of the boot loader when
15877c478bd9Sstevel@tonic-gate	LOAD_END_ADDR is zero and BSS_END_ADDR is zero.
15887c478bd9Sstevel@tonic-gate
15897c478bd9Sstevel@tonic-gate2002-05-22  Yoshinori K. Okuji  <okuji@enbug.org>
15907c478bd9Sstevel@tonic-gate
15917c478bd9Sstevel@tonic-gate	* stage2/builtins.c (boot_func): If DEBUG is true, print
15927c478bd9Sstevel@tonic-gate	BOOT_DRIVE and BOOT_PART_OFFSET.
15937c478bd9Sstevel@tonic-gate	Don't set ERRNUM after rawread failed, because rawread should
15947c478bd9Sstevel@tonic-gate	set ERRNUM itself.
15957c478bd9Sstevel@tonic-gate
15967c478bd9Sstevel@tonic-gate2002-05-20  Yoshinori K. Okuji  <okuji@enbug.org>
15977c478bd9Sstevel@tonic-gate
15987c478bd9Sstevel@tonic-gate	* lib/device.c (read_device_map): Show an error message and exit
15997c478bd9Sstevel@tonic-gate	abnormally, if MAP[DRIVE] has already been filled.
16007c478bd9Sstevel@tonic-gate	* util/grub-install.in: If there is any dulicated entry, print
16017c478bd9Sstevel@tonic-gate	an error message and exit abnormally.
16027c478bd9Sstevel@tonic-gate
16037c478bd9Sstevel@tonic-gate2002-05-20  Yoshinori K. Okuji  <okuji@enbug.org>
16047c478bd9Sstevel@tonic-gate
16057c478bd9Sstevel@tonic-gate	* lib/device.c: Don't include linux/hdreg.h, linux/major.h,
16067c478bd9Sstevel@tonic-gate	or linux/kdev_t.h.
16077c478bd9Sstevel@tonic-gate	[__linux__] (HDIO_GETGEO): Defined.
16087c478bd9Sstevel@tonic-gate	[__linux__] (hd_geometry): Likewise.
16097c478bd9Sstevel@tonic-gate	[__linux__] (FLOPPY_MAJOR): Likewise.
16107c478bd9Sstevel@tonic-gate	[__linux__] (MINORBITS): Likewise.
16117c478bd9Sstevel@tonic-gate	[__linux__] (MAJOR): Likewise.
16127c478bd9Sstevel@tonic-gate
16137c478bd9Sstevel@tonic-gate2002-05-08  Yoshinori K. Okuji  <okuji@enbug.org>
16147c478bd9Sstevel@tonic-gate
16157c478bd9Sstevel@tonic-gate	* netboot/fsys_tftp.c (tftp_read): Don't call buf_fill unless
16167c478bd9Sstevel@tonic-gate	SIZE is positive.
16177c478bd9Sstevel@tonic-gate
16187c478bd9Sstevel@tonic-gate2002-05-08  Yoshinori K. Okuji  <okuji@enbug.org>
16197c478bd9Sstevel@tonic-gate
16207c478bd9Sstevel@tonic-gate	* netboot/etherboot.h (ETH_MAX_MTU): Because some DHCP/BOOTP
16217c478bd9Sstevel@tonic-gate	servers don't treat the maximum length the same as Etherboot,
16227c478bd9Sstevel@tonic-gate	subtract the size of an IP header and that of an UDP header.
16237c478bd9Sstevel@tonic-gate
16247c478bd9Sstevel@tonic-gate2002-04-30  Yoshinori K. Okuji  <okuji@enbug.org>
16257c478bd9Sstevel@tonic-gate
16267c478bd9Sstevel@tonic-gate	From Jean-Jacques Michel <jjmichel@linbox.com>:
16277c478bd9Sstevel@tonic-gate	* stage2/boot.c (load_image): For Linux, check if DATA_LEN is
16287c478bd9Sstevel@tonic-gate	greater than MULTIBOOT_SEARCH. If that's true, read the rest
16297c478bd9Sstevel@tonic-gate	after copying data already read in BUFFER.
16307c478bd9Sstevel@tonic-gate
16317c478bd9Sstevel@tonic-gate2002-04-30  Yoshinori K. Okuji  <okuji@enbug.org>
16327c478bd9Sstevel@tonic-gate
16337c478bd9Sstevel@tonic-gate	* stage2/boot.c (load_image): For Linux, don't check if the
16347c478bd9Sstevel@tonic-gate	length of protected mode code is greater than or equal to the
16357c478bd9Sstevel@tonic-gate	expected length minus 16. Instead, just check if no error
16367c478bd9Sstevel@tonic-gate	occurred. That was problematic, because memdisk has no protected
16377c478bd9Sstevel@tonic-gate	mode code. Also, I don't see what the magic number 16 was for.
16387c478bd9Sstevel@tonic-gate
16397c478bd9Sstevel@tonic-gate2002-04-29  Yoshinori K. Okuji  <okuji@enbug.org>
16407c478bd9Sstevel@tonic-gate
16417c478bd9Sstevel@tonic-gate	* stage2/builtins.c [SUPPORT_SERIAL] (terminal_func): Added a
16427c478bd9Sstevel@tonic-gate	new option ``--silent''. This suppresses messages, if specified.
16437c478bd9Sstevel@tonic-gate
16447c478bd9Sstevel@tonic-gate2002-04-29  Yoshinori K. Okuji  <okuji@enbug.org>
16457c478bd9Sstevel@tonic-gate
16467c478bd9Sstevel@tonic-gate	* config.guess: New upstream version.
16477c478bd9Sstevel@tonic-gate	* config.sub: Likewise.
16487c478bd9Sstevel@tonic-gate
16497c478bd9Sstevel@tonic-gate2002-04-20  Yoshinori K. Okuji  <okuji@enbug.org>
16507c478bd9Sstevel@tonic-gate
16517c478bd9Sstevel@tonic-gate	* netboot/config.c (PCI_NIC) [INCLUDE_DAVICOM]: Fix typos.
16527c478bd9Sstevel@tonic-gate	Reported by Julien Perrot <julien.perrot@iie.cnam.fr>.
16537c478bd9Sstevel@tonic-gate
16547c478bd9Sstevel@tonic-gate2002-04-17  Yoshinori K. Okuji  <okuji@enbug.org>
16557c478bd9Sstevel@tonic-gate
16567c478bd9Sstevel@tonic-gate	* stage2/builtins.c [SUPPORT_SERIAL] (terminal_func): Set
16577c478bd9Sstevel@tonic-gate	COUNT_LINES to -1, to disable the pager.
16587c478bd9Sstevel@tonic-gate
16597c478bd9Sstevel@tonic-gate2002-04-16  Yoshinori K. Okuji  <okuji@enbug.org>
16607c478bd9Sstevel@tonic-gate
16617c478bd9Sstevel@tonic-gate	* docs/grub.texi (Obtaining and Building GRUB): Update the link
16627c478bd9Sstevel@tonic-gate	to the binutils site.
16637c478bd9Sstevel@tonic-gate
16647c478bd9Sstevel@tonic-gate2002-04-06  Pavel Roskin  <proski@gnu.org>
16657c478bd9Sstevel@tonic-gate
16667c478bd9Sstevel@tonic-gate	* util/grub-install.in: Fix hardcoded /dev/hda1.
16677c478bd9Sstevel@tonic-gate
16687c478bd9Sstevel@tonic-gate2002-04-06  Yoshinori K. Okuji  <okuji@enbug.org>
16697c478bd9Sstevel@tonic-gate
16707c478bd9Sstevel@tonic-gate	* stage2/builtins.c [GRUB_UTIL] (dump_func): New function.
16717c478bd9Sstevel@tonic-gate	[GRUB_UTIL] (builtin_dump): New variable.
16727c478bd9Sstevel@tonic-gate	(builtin_table) [GRUB_UTIL]: Added a pointer to BUILTIN_DUMP.
16737c478bd9Sstevel@tonic-gate	* util/grub-install.in: Make sure that GRUB reads the same
16747c478bd9Sstevel@tonic-gate	images as the host operating system by comparing the result of
16757c478bd9Sstevel@tonic-gate	running the command "dump" with the contents of the OS file.
16767c478bd9Sstevel@tonic-gate
16777c478bd9Sstevel@tonic-gate2002-04-04  Yoshinori K. Okuji  <okuji@enbug.org>
16787c478bd9Sstevel@tonic-gate
16797c478bd9Sstevel@tonic-gate	* stage2/builtins.c (setup_func): Don't embed a drive number, if
16807c478bd9Sstevel@tonic-gate	unnecessary.
16817c478bd9Sstevel@tonic-gate
16827c478bd9Sstevel@tonic-gate2002-03-29  Yoshinori K. Okuji  <okuji@enbug.org>
16837c478bd9Sstevel@tonic-gate
16847c478bd9Sstevel@tonic-gate	* docs/grub.texi (General commands): Added ``pager'' into the
16857c478bd9Sstevel@tonic-gate	menu.
16867c478bd9Sstevel@tonic-gate	(pager): New subsection.
16877c478bd9Sstevel@tonic-gate	(terminal): Added a description about the option
16887c478bd9Sstevel@tonic-gate	``--lines=LINES''.
16897c478bd9Sstevel@tonic-gate
16907c478bd9Sstevel@tonic-gate	* configure.in (AC_INIT_AUTOMAKE): Set the version number to
16917c478bd9Sstevel@tonic-gate	0.92.
16927c478bd9Sstevel@tonic-gate
16937c478bd9Sstevel@tonic-gate2002-03-26  Yoshinori K. Okuji  <okuji@enbug.org>
16947c478bd9Sstevel@tonic-gate
16957c478bd9Sstevel@tonic-gate	* netboot/eepro100.c (eepro100_probe): Increase the delay at the
16967c478bd9Sstevel@tonic-gate	initialization.
16977c478bd9Sstevel@tonic-gate
16987c478bd9Sstevel@tonic-gate2002-03-26  Yoshinori K. Okuji  <okuji@enbug.org>
16997c478bd9Sstevel@tonic-gate
17007c478bd9Sstevel@tonic-gate	* stage2/boot.c (linux_mem_size): New variable.
17017c478bd9Sstevel@tonic-gate	(load_image): Check a mem= option and set LINUX_MEM_SIZE to the
17027c478bd9Sstevel@tonic-gate	specified memory size, if any. Otherwise, to zero. When an
17037c478bd9Sstevel@tonic-gate	overflow is detected, use LINUX_INITRD_MAX_ADDRESS instead.
17047c478bd9Sstevel@tonic-gate	(load_initrd): If LINUX_MEM_SIZE is non-zero, use it instead of
17057c478bd9Sstevel@tonic-gate	the actual memory size.
17067c478bd9Sstevel@tonic-gate	* stage2/char_io.c (safe_parse_maxint): Use ERR_NUMBER_OVERFLOW
17077c478bd9Sstevel@tonic-gate	instead of ERR_NUMBER_PARSING, when an overflow occurs.
17087c478bd9Sstevel@tonic-gate	* stage2/common.c [!STAGE1_5] (err_list): Added
17097c478bd9Sstevel@tonic-gate	ERR_NUMBER_OVERFLOW.
17107c478bd9Sstevel@tonic-gate	* stage2/shared.h (ERR_NUMBER_OVERFLOW): New constant.
17117c478bd9Sstevel@tonic-gate
17127c478bd9Sstevel@tonic-gate2002-03-24  Yoshinori K. Okuji  <okuji@enbug.org>
17137c478bd9Sstevel@tonic-gate
17147c478bd9Sstevel@tonic-gate	* stage2/stage2.c (run_menu): Call cls outside the loop to run
17157c478bd9Sstevel@tonic-gate	scripts.
17167c478bd9Sstevel@tonic-gate	* stage2/cmdline.c (run_script): Prompt a user's intervention,
17177c478bd9Sstevel@tonic-gate	only when FALLBACK_ENTRY is negative.
17187c478bd9Sstevel@tonic-gate
17197c478bd9Sstevel@tonic-gate2002-02-11  Pavel Roskin  <proski@gnu.org>
17207c478bd9Sstevel@tonic-gate
17217c478bd9Sstevel@tonic-gate	* util/grub-install.in (find_device): New function - find block
17227c478bd9Sstevel@tonic-gate	device for given file or directory.  Resolve symlinks to fix
17237c478bd9Sstevel@tonic-gate	problem on Linux with devfs and old device names in /etc/fstab.
17247c478bd9Sstevel@tonic-gate	Use find_device() for root_device, bootdir_device and
17257c478bd9Sstevel@tonic-gate	grubdir_device.
17267c478bd9Sstevel@tonic-gate
17277c478bd9Sstevel@tonic-gate2002-02-08  Yoshinori K. Okuji  <okuji@enbug.org>
17287c478bd9Sstevel@tonic-gate
17297c478bd9Sstevel@tonic-gate	* grub/main.c (OPT_NO_PAGER): New macro.
17307c478bd9Sstevel@tonic-gate	(longopts): Added an entry for "--no-pager".
17317c478bd9Sstevel@tonic-gate	(usage): Added a description about "--no-pager".
17327c478bd9Sstevel@tonic-gate	(main): In case of OPT_NO_PAGER, set USE_PAGER to zero. The same
17337c478bd9Sstevel@tonic-gate	thing is done with OPT_BATCH, because the pager is just harmful
17347c478bd9Sstevel@tonic-gate	in batch mode.
17357c478bd9Sstevel@tonic-gate
17367c478bd9Sstevel@tonic-gate2002-02-08  Yoshinori K. Okuji  <okuji@enbug.org>
17377c478bd9Sstevel@tonic-gate
17387c478bd9Sstevel@tonic-gate	* stage2/builtins.c (help_func): Show all the commands runnable
17397c478bd9Sstevel@tonic-gate	with the command-line interface, if "--all" is specified.
17407c478bd9Sstevel@tonic-gate
17417c478bd9Sstevel@tonic-gate2002-02-08  Yoshinori K. Okuji  <okuji@enbug.org>
17427c478bd9Sstevel@tonic-gate
17437c478bd9Sstevel@tonic-gate	An internal pager is implemented.
17447c478bd9Sstevel@tonic-gate
17457c478bd9Sstevel@tonic-gate	* stage2/builtins.c (pager_func): New function.
17467c478bd9Sstevel@tonic-gate	(builtin_pager): New variable.
17477c478bd9Sstevel@tonic-gate	(terminal_func): New option, "--lines=LINES" is added. If this
17487c478bd9Sstevel@tonic-gate	option is specified, set MAX_LINES to the value. Otherwise, set
17497c478bd9Sstevel@tonic-gate	MAX_LINES to 24.
17507c478bd9Sstevel@tonic-gate	(vbeprobe_func): Remove the pager code specific to this
17517c478bd9Sstevel@tonic-gate	function.
17527c478bd9Sstevel@tonic-gate	(builtin_table): Added a pointer to BUILTIN_PAGER.
17537c478bd9Sstevel@tonic-gate	* stage2/char_io.c (max_lines) [!STAGE1_5]: New variable.
17547c478bd9Sstevel@tonic-gate	(count_lines) [!STAGE1_5]: Likewise.
17557c478bd9Sstevel@tonic-gate	(use_pager) [!STAGE1_5]: Likewise.
17567c478bd9Sstevel@tonic-gate	(grub_putchar) [!STAGE1_5]: if C is a newline and COUNT_LINES is
17577c478bd9Sstevel@tonic-gate	not -1, count up the number of lines. If it exceeds the maximum
17587c478bd9Sstevel@tonic-gate	number of lines minus 2, show a message and wait for input of
17597c478bd9Sstevel@tonic-gate	return key. "minus 2" is to reserve space for the message
17607c478bd9Sstevel@tonic-gate	printed by this internal pager.
17617c478bd9Sstevel@tonic-gate	* stage2/cmdline.c (enter_cmdline): If USE_PAGER is true, set
17627c478bd9Sstevel@tonic-gate	COUNT_LINES to zero, before running a command, and reset
17637c478bd9Sstevel@tonic-gate	COUNT_LINES to -1 after that.
17647c478bd9Sstevel@tonic-gate	* stage2/shared.h (max_lines) [!STAGE1_5]: Declared.
17657c478bd9Sstevel@tonic-gate	(count_lines) [!STAGE1_5]: Likewise.
17667c478bd9Sstevel@tonic-gate	(use_pager) [!STAGE1_5]: Likewise.
17677c478bd9Sstevel@tonic-gate
17687c478bd9Sstevel@tonic-gate2002-02-08  Yoshinori K. Okuji  <okuji@enbug.org>
17697c478bd9Sstevel@tonic-gate
17707c478bd9Sstevel@tonic-gate	* stage2/fsys_jfs.c (jfs_read) [STAGE1_5]: Set and reset
17717c478bd9Sstevel@tonic-gate	DISK_READ_FUNC even in Stage 1.5.
17727c478bd9Sstevel@tonic-gate	* stage2/fsys_xfs.c (xfs_read) [STAGE1_5]: Likewise.
17737c478bd9Sstevel@tonic-gate
17747c478bd9Sstevel@tonic-gate	* stage2/stage1_5.c (saved_sector): Initialized with -1.
17757c478bd9Sstevel@tonic-gate	(cmain): Check if SAVED_SECTOR was set appropriately after
17767c478bd9Sstevel@tonic-gate	reading the second sector of Stage 2. If SAVED_SECTOR is not
17777c478bd9Sstevel@tonic-gate	set (i.e. it is equal to -1), print an error and stop.
17787c478bd9Sstevel@tonic-gate
17797c478bd9Sstevel@tonic-gate2002-02-05  Yoshinori K. Okuji  <okuji@enbug.org>
17807c478bd9Sstevel@tonic-gate
17817c478bd9Sstevel@tonic-gate	* stage2/builtins.c (setup_func): Add a VSTa fs entry into
17827c478bd9Sstevel@tonic-gate	STAGE1_5_MAP.
17837c478bd9Sstevel@tonic-gate
17847c478bd9Sstevel@tonic-gate2002-02-05  Yoshinori K. Okuji  <okuji@enbug.org>
17857c478bd9Sstevel@tonic-gate
17867c478bd9Sstevel@tonic-gate	* stage2/shared.h (BUILTIN_HELP_LIST): New macro. Used for
17877c478bd9Sstevel@tonic-gate	commands whose help messages are listed when no argument is
17887c478bd9Sstevel@tonic-gate	specified to the command "help".
17897c478bd9Sstevel@tonic-gate	* stage2/builtins.c (builtin_blocklist): Added the attribute
17907c478bd9Sstevel@tonic-gate	BUILTIN_HELP_LIST.
17917c478bd9Sstevel@tonic-gate	(builtin_boot): Likewise.
17927c478bd9Sstevel@tonic-gate	(builtin_bootp): Likewise.
17937c478bd9Sstevel@tonic-gate	(builtin_cat): Likewise.
17947c478bd9Sstevel@tonic-gate	(builtin_chainloader): Likewise.
17957c478bd9Sstevel@tonic-gate	(builtin_color): Likewise.
17967c478bd9Sstevel@tonic-gate	(builtin_configfile): Likewise.
17977c478bd9Sstevel@tonic-gate	(builtin_device): Likewise.
17987c478bd9Sstevel@tonic-gate	(builtin_dhcp): Likewise.
17997c478bd9Sstevel@tonic-gate	(builtin_displayapm): Likewise.
18007c478bd9Sstevel@tonic-gate	(builtin_displaymem): Likewise.
18017c478bd9Sstevel@tonic-gate	(builtin_find): Likewise.
18027c478bd9Sstevel@tonic-gate	(builtin_geometry): Likewise.
18037c478bd9Sstevel@tonic-gate	(builtin_halt): Likewise.
18047c478bd9Sstevel@tonic-gate	(builtin_help): Likewise.
18057c478bd9Sstevel@tonic-gate	(builtin_hide): Likewise.
18067c478bd9Sstevel@tonic-gate	(builtin_ifconfig): Likewise.
18077c478bd9Sstevel@tonic-gate	(builtin_initrd): Likewise.
18087c478bd9Sstevel@tonic-gate	(builtin_kernel): Likewise.
18097c478bd9Sstevel@tonic-gate	(builtin_makeactive): Likewise.
18107c478bd9Sstevel@tonic-gate	(builtin_map): Likewise.
18117c478bd9Sstevel@tonic-gate	(builtin_md5crypt): Likewise.
18127c478bd9Sstevel@tonic-gate	(builtin_module): Likewise.
18137c478bd9Sstevel@tonic-gate	(builtin_modulenounzip): Likewise.
18147c478bd9Sstevel@tonic-gate	(builtin_partnew): Likewise.
18157c478bd9Sstevel@tonic-gate	(builtin_parttype): Likewise.
18167c478bd9Sstevel@tonic-gate	(builtin_quit): Likewise.
18177c478bd9Sstevel@tonic-gate	(builtin_rarp): Likewise.
18187c478bd9Sstevel@tonic-gate	(builtin_reboot): Likewise.
18197c478bd9Sstevel@tonic-gate	(builtin_root): Likewise.
18207c478bd9Sstevel@tonic-gate	(builtin_rootnoverify): Likewise.
18217c478bd9Sstevel@tonic-gate	(builtin_serial): Likewise.
18227c478bd9Sstevel@tonic-gate	(builtin_setkey): Likewise.
18237c478bd9Sstevel@tonic-gate	(builtin_setup): Likewise.
18247c478bd9Sstevel@tonic-gate	(builtin_terminal): Likewise.
18257c478bd9Sstevel@tonic-gate	(builtin_testvbe): Likewise.
18267c478bd9Sstevel@tonic-gate	(builtin_tftpserver): Likewise.
18277c478bd9Sstevel@tonic-gate	(builtin_unhide): Likewise.
18287c478bd9Sstevel@tonic-gate	(builtin_uppermem): Likewise.
18297c478bd9Sstevel@tonic-gate	(builtin_vbeprobe): Likewise.
18307c478bd9Sstevel@tonic-gate
18317c478bd9Sstevel@tonic-gate	(help_func): When no argument is specified, if the last entry
18327c478bd9Sstevel@tonic-gate	was at the left column, print an extra newline.
18337c478bd9Sstevel@tonic-gate
18347c478bd9Sstevel@tonic-gate2002-02-05  Yoshinori K. Okuji  <okuji@enbug.org>
18357c478bd9Sstevel@tonic-gate
18367c478bd9Sstevel@tonic-gate	* stage2/shared.h (BUILTIN_HIDDEN): Renamed to ...
18377c478bd9Sstevel@tonic-gate	(BUILTIN_NO_ECHO): ... this. The old name was too difficult to
18387c478bd9Sstevel@tonic-gate	see _what_ was hidden.
18397c478bd9Sstevel@tonic-gate
18407c478bd9Sstevel@tonic-gate2002-02-05  Yoshinori K. Okuji  <okuji@enbug.org>
18417c478bd9Sstevel@tonic-gate
18427c478bd9Sstevel@tonic-gate	* netboot/misc.c (twiddle): Go back to the bar progress, copied
18437c478bd9Sstevel@tonic-gate	from etherboot-5.0.5/src/misc.c. Execute the code only if DEBUG
18447c478bd9Sstevel@tonic-gate	is true.
18457c478bd9Sstevel@tonic-gate
18467c478bd9Sstevel@tonic-gate2002-02-05  Yoshinori K. Okuji  <okuji@enbug.org>
18477c478bd9Sstevel@tonic-gate
18487c478bd9Sstevel@tonic-gate	* stage2/builtins.c (displaymem_func): Use hex digits to display
18497c478bd9Sstevel@tonic-gate	for consistency.
18507c478bd9Sstevel@tonic-gate
18517c478bd9Sstevel@tonic-gate2002-02-04  Jason Thomas  <jason@topic.com.ah>
18527c478bd9Sstevel@tonic-gate
18537c478bd9Sstevel@tonic-gate	From Denis Kitzman  <dkitzman@blue.weeg.uiowa.edu>:
18547c478bd9Sstevel@tonic-gate	* stage2/Makefile.am (libgrub_a_CFLAGS): Fixed a typo.
18557c478bd9Sstevel@tonic-gate	FSYS_XFS, USE_MD5_PASSWORDS, SUPPORT_SERIAL, and
18567c478bd9Sstevel@tonic-gate	SUPPORT_HERCULES did not get defined.
18577c478bd9Sstevel@tonic-gate
18587c478bd9Sstevel@tonic-gate2002-01-20  Yoshinori K. Okuji  <okuji@gnu.org>
18597c478bd9Sstevel@tonic-gate
18607c478bd9Sstevel@tonic-gate	* util/grub-image.in: Check stage2 instead of stage2.c to
18617c478bd9Sstevel@tonic-gate	determine where the script is invoked, because srcdir may not
18627c478bd9Sstevel@tonic-gate	be used for the compilation.
18637c478bd9Sstevel@tonic-gate
18647c478bd9Sstevel@tonic-gate2002-01-20  Yoshinori K. Okuji  <okuji@gnu.org>
18657c478bd9Sstevel@tonic-gate
18667c478bd9Sstevel@tonic-gate	* grub/asmstub.c (console_putchar): When not using curses,
18677c478bd9Sstevel@tonic-gate	ignore a carriage return, because a newline in Unix is only a
18687c478bd9Sstevel@tonic-gate	line feed.
18697c478bd9Sstevel@tonic-gate
18707c478bd9Sstevel@tonic-gate2002-01-18  Klaus Reichl  <Klaus.Reichl@alcatel.at>
18717c478bd9Sstevel@tonic-gate
18727c478bd9Sstevel@tonic-gate	* stage2/fsys_minix.c (minix_dir): Fixed bug getting filenames
18737c478bd9Sstevel@tonic-gate	with MAXNAMELEN right.
18747c478bd9Sstevel@tonic-gate
18757c478bd9Sstevel@tonic-gate	* stage2/char_io.c (get_cmdline, cl_refresh): If TERMINAL_DUMB
18767c478bd9Sstevel@tonic-gate	section is always 0.
18777c478bd9Sstevel@tonic-gate	Line is only cleared if !TERMINAL_DUMB.
18787c478bd9Sstevel@tonic-gate
18797c478bd9Sstevel@tonic-gate	* grub/main.c (use_curses): Initialize to 0 if !HAVE_LIBCURSES
18807c478bd9Sstevel@tonic-gate	(main): Check for curses use and set terminal to dumb if we
18817c478bd9Sstevel@tonic-gate	don't use it (helps for --batch and variants of non-curses
18827c478bd9Sstevel@tonic-gate	setup).
18837c478bd9Sstevel@tonic-gate
18847c478bd9Sstevel@tonic-gate2002-01-15  Yoshinori K. Okuji  <okuji@gnu.org>
18857c478bd9Sstevel@tonic-gate
18867c478bd9Sstevel@tonic-gate	* configure.in (AM_INIT_AUTOMAKE): The version number is
18877c478bd9Sstevel@tonic-gate	upgraded to 0.91.
18887c478bd9Sstevel@tonic-gate
18897c478bd9Sstevel@tonic-gate2002-01-15  Yoshinori K. Okuji  <okuji@gnu.org>
18907c478bd9Sstevel@tonic-gate
18917c478bd9Sstevel@tonic-gate	* docs/grub.texi (Preset Menu): New chapter.
18927c478bd9Sstevel@tonic-gate
18937c478bd9Sstevel@tonic-gate2002-01-15  Yoshinori K. Okuji  <okuji@gnu.org>
18947c478bd9Sstevel@tonic-gate
18957c478bd9Sstevel@tonic-gate	* docs/grub.texi: Added some text about JFS and XFS.
18967c478bd9Sstevel@tonic-gate
18977c478bd9Sstevel@tonic-gate2002-01-08  Yoshinori K. Okuji  <okuji@gnu.org>
18987c478bd9Sstevel@tonic-gate
18997c478bd9Sstevel@tonic-gate	* grub/main.c (use_preset_menu): New variable.
19007c478bd9Sstevel@tonic-gate	(OPT_PRESET_MENU): New macro.
19017c478bd9Sstevel@tonic-gate	(longopts): Added an entry for "--preset-menu".
19027c478bd9Sstevel@tonic-gate	(usage): Added a description for "--preset-menu". Also, change
19037c478bd9Sstevel@tonic-gate	the first character of the description for "--device-map" to
19047c478bd9Sstevel@tonic-gate	lower case for consistency.
19057c478bd9Sstevel@tonic-gate	(main): Set USE_PRESET_MENU to 1 in the case of OPT_PRESET_MENU.
19067c478bd9Sstevel@tonic-gate	* stage2/shared.h (use_preset_menu): Declared.
19077c478bd9Sstevel@tonic-gate	* stage2/stage2.c [PRESET_MENU_STRING || SUPPORT_DISKLESS]
19087c478bd9Sstevel@tonic-gate	(open_preset_menu) [GRUB_UTIL]: If USE_PRESET_MENU is false,
19097c478bd9Sstevel@tonic-gate	return zero immediately.
19107c478bd9Sstevel@tonic-gate
19117c478bd9Sstevel@tonic-gate2002-01-08  Yoshinori K. Okuji  <okuji@gnu.org>
19127c478bd9Sstevel@tonic-gate
19137c478bd9Sstevel@tonic-gate	* stage2/common.c [SUPPORT_DISKLESS]
19147c478bd9Sstevel@tonic-gate	(setup_diskless_environment): Removed. The feature is moved to
19157c478bd9Sstevel@tonic-gate	the preset menu.
19167c478bd9Sstevel@tonic-gate	* stage2/stage2.c [SUPPORT_DISKLESS] (preset_menu): Set to the
19177c478bd9Sstevel@tonic-gate	string "bootp\n".
19187c478bd9Sstevel@tonic-gate	[SUPPORT_DISKLESS] (preset_menu_offset): Defined, as if
19197c478bd9Sstevel@tonic-gate	PRESET_MENU_STRING is defined.
19207c478bd9Sstevel@tonic-gate	[SUPPORT_DISKLESS] (open_preset_menu): Likewise.
19217c478bd9Sstevel@tonic-gate	[SUPPORT_DISKLESS] (read_from_preset_menu): Likewise.
19227c478bd9Sstevel@tonic-gate	[SUPPORT_DISKLESS] (close_preset_menu): Likewise.
19237c478bd9Sstevel@tonic-gate
19247c478bd9Sstevel@tonic-gate2002-01-06  Yoshinori K. Okuji  <okuji@gnu.org>
19257c478bd9Sstevel@tonic-gate
19267c478bd9Sstevel@tonic-gate	The preset menu has a priority over the configuration file.
19277c478bd9Sstevel@tonic-gate	Suggested by Christoph Plattner.
19287c478bd9Sstevel@tonic-gate
19297c478bd9Sstevel@tonic-gate	* stage2/stage2.c [PRESET_MENU_STRING] (open_preset_menu):
19307c478bd9Sstevel@tonic-gate	Check if PRESET_MENU is not NULL.
19317c478bd9Sstevel@tonic-gate	[PRESET_MENU_STRING] (close_preset_menu): Set PRESET_MENU to
19327c478bd9Sstevel@tonic-gate	NULL.
19337c478bd9Sstevel@tonic-gate	(cmain): New internal function, reset. This function resets
19347c478bd9Sstevel@tonic-gate	AUTO_FILL, CONFIG_LEN, MENU_LEN, NUM_ENTRIES, CONFIG_ENTRIES,
19357c478bd9Sstevel@tonic-gate	MENU_ENTRIES and call init_config.
19367c478bd9Sstevel@tonic-gate	Try to open the preset menu first, and try to open the
19377c478bd9Sstevel@tonic-gate	configuration file, only if that failed.
19387c478bd9Sstevel@tonic-gate	Even if the preset menu was read, try to open the configuration
19397c478bd9Sstevel@tonic-gate	file. This time, opening the preset menu never succeed, because
19407c478bd9Sstevel@tonic-gate	close_preset_menu ensures that the preset menu is available at
19417c478bd9Sstevel@tonic-gate	most once.
19427c478bd9Sstevel@tonic-gate
19437c478bd9Sstevel@tonic-gate2002-01-06  Yoshinori K. Okuji  <okuji@gnu.org>
19447c478bd9Sstevel@tonic-gate
19457c478bd9Sstevel@tonic-gate	* netboot/misc.c (inet_aton): Don't check if *P is an asterisk,
19467c478bd9Sstevel@tonic-gate	if I is 3. Reported by Rick (his real name and address are
19477c478bd9Sstevel@tonic-gate	unknown).
19487c478bd9Sstevel@tonic-gate
19497c478bd9Sstevel@tonic-gate2002-01-03  Yoshinori K. Okuji  <okuji@gnu.org>
19507c478bd9Sstevel@tonic-gate
19517c478bd9Sstevel@tonic-gate	Update the netboot stuff to Etherboot-5.0.5.
19527c478bd9Sstevel@tonic-gate
19537c478bd9Sstevel@tonic-gate	* configure.in (--enable-3c590): Removed. This was a mistake.
19547c478bd9Sstevel@tonic-gate	(--enable-davicom): New option.
19557c478bd9Sstevel@tonic-gate	(--enable-eepro): Likewise.
19567c478bd9Sstevel@tonic-gate	(--enable-natsemi): Likewise.
19577c478bd9Sstevel@tonic-gate	(--enable-ni5010): Likewise.
19587c478bd9Sstevel@tonic-gate	(--enable-sis900): Likewise.
19597c478bd9Sstevel@tonic-gate	(--enable-w89c840): Likewise.
19607c478bd9Sstevel@tonic-gate	(--enable-3c509-hack): Removed.
19617c478bd9Sstevel@tonic-gate	(--enable-ns8390-force-16bit): Likewise.
19627c478bd9Sstevel@tonic-gate
19637c478bd9Sstevel@tonic-gate	* netboot/Makefile.am (libdrivers_a_SOURCES): Added timer.c and
19647c478bd9Sstevel@tonic-gate	timer.h.
19657c478bd9Sstevel@tonic-gate	(EXTRA_libdrivers_a_SOURCES): Added davicom.c, eepro.c, fa311.c,
19667c478bd9Sstevel@tonic-gate	natsemi.c, ni5010.c, sis900.c, sis900.h, tlan.c and w89c840.c.
19677c478bd9Sstevel@tonic-gate	(EXTRA_DIST): Added sis900.txt.
19687c478bd9Sstevel@tonic-gate	(3c595_drivers): Remove 3c590.o from this.
19697c478bd9Sstevel@tonic-gate	(davicom_drivers): New variable.
19707c478bd9Sstevel@tonic-gate	(eepro_drivers): Likewise.
19717c478bd9Sstevel@tonic-gate	(natsemi_drivers): Likewise.
19727c478bd9Sstevel@tonic-gate	(ni5010_drivers): Likewise.
19737c478bd9Sstevel@tonic-gate	(sis900_drivers): Likewise.
19747c478bd9Sstevel@tonic-gate	(w89c840_drivers): Likewise.
19757c478bd9Sstevel@tonic-gate	(3c590_o_CFLAGS): Removed.
19767c478bd9Sstevel@tonic-gate	(davicom_o_CFLAGS): New variable.
19777c478bd9Sstevel@tonic-gate	(eepro_o_CFLAGS): Likewise.
19787c478bd9Sstevel@tonic-gate	(natsemi_o_CFLAGS): Likewise.
19797c478bd9Sstevel@tonic-gate	(ni5010_o_CFLAGS): Likewise.
19807c478bd9Sstevel@tonic-gate	(sis900_o_CFLAGS): Likewise.
19817c478bd9Sstevel@tonic-gate	(w89c840_o_CFLAGS): Likewise.
19827c478bd9Sstevel@tonic-gate
19837c478bd9Sstevel@tonic-gate	* netboot/davicom.c: New file, from Etherboot-5.0.5.
19847c478bd9Sstevel@tonic-gate	* netboot/eepro.c: Likewise.
19857c478bd9Sstevel@tonic-gate	* netboot/natsemi.c: Likewise.
19867c478bd9Sstevel@tonic-gate	* netboot/ni5010.c: Likewise.
19877c478bd9Sstevel@tonic-gate	* netboot/sis900.c: Likewise.
19887c478bd9Sstevel@tonic-gate	* netboot/sis900.h: Likewise.
19897c478bd9Sstevel@tonic-gate	* netboot/sis900.txt: Likewise.
19907c478bd9Sstevel@tonic-gate	* netboot/timer.c: Likewise.
19917c478bd9Sstevel@tonic-gate	* netboot/timer.h: Likewise.
19927c478bd9Sstevel@tonic-gate	* netboot/w89c840.c: Likewise.
19937c478bd9Sstevel@tonic-gate	* netboot/fa311.c: Likewise.
19947c478bd9Sstevel@tonic-gate	* netboot/tlan.c: Likewise.
19957c478bd9Sstevel@tonic-gate
19967c478bd9Sstevel@tonic-gate	* netboot/3c509.c: Copied from Etherboot-5.0.5.
19977c478bd9Sstevel@tonic-gate	* netboot/3c509.h: Likewise.
19987c478bd9Sstevel@tonic-gate	* netboot/3c595.c: Likewise.
19997c478bd9Sstevel@tonic-gate	* netboot/3c90x.c: Likewise.
20007c478bd9Sstevel@tonic-gate	* netboot/3c90x.txt: Likewise.
20017c478bd9Sstevel@tonic-gate	* netboot/cards.h: Likewise.
20027c478bd9Sstevel@tonic-gate	* netboot/cs89x0.c: Likewise.
20037c478bd9Sstevel@tonic-gate	* netboot/depca.c: Likewise.
20047c478bd9Sstevel@tonic-gate	* netboot/eepro100.c: Likewise.
20057c478bd9Sstevel@tonic-gate	* netboot/epic100.c: Likewise.
20067c478bd9Sstevel@tonic-gate	* netboot/i82586.c: Likewise.
20077c478bd9Sstevel@tonic-gate	* netboot/lance.c: Likewise.
20087c478bd9Sstevel@tonic-gate	* netboot/linux-asm-string.h: Likewise.
20097c478bd9Sstevel@tonic-gate	* netboot/nic.h: Likewise.
20107c478bd9Sstevel@tonic-gate	* netboot/ns8390.c: Likewise.
20117c478bd9Sstevel@tonic-gate	* netboot/ns8390.h: Likewise.
20127c478bd9Sstevel@tonic-gate	* netboot/otulip.c: Likewise.
20137c478bd9Sstevel@tonic-gate	* netboot/pci.h: Likewise.
20147c478bd9Sstevel@tonic-gate	* netboot/rtl8139.c: Likewise.
20157c478bd9Sstevel@tonic-gate	* netboot/sk_g16.c: Likewise.
20167c478bd9Sstevel@tonic-gate	* netboot/smc9000.c: Likewise.
20177c478bd9Sstevel@tonic-gate	* netboot/tiara.c: Likewise.
20187c478bd9Sstevel@tonic-gate	* netboot/tulip.c: Likewise.
20197c478bd9Sstevel@tonic-gate	* netboot/via-rhine.c: Likewise.
20207c478bd9Sstevel@tonic-gate
20217c478bd9Sstevel@tonic-gate	* netboot/config.c: Applied a diff between Etherboot-4.6.4 and
20227c478bd9Sstevel@tonic-gate	Etherboot-5.0.5 manually.
20237c478bd9Sstevel@tonic-gate	* netboot/main.c: Likewise.
20247c478bd9Sstevel@tonic-gate	* netboot/pci.c: Likewise.
20257c478bd9Sstevel@tonic-gate	* netboot/etherboot.h: Rewritten mostly from scratch, based on
20267c478bd9Sstevel@tonic-gate	the same file in Etherboot-5.0.5.
20277c478bd9Sstevel@tonic-gate	* netboot/misc.c: Likewise.
20287c478bd9Sstevel@tonic-gate	* netboot/osdep.h: Likewise.
20297c478bd9Sstevel@tonic-gate	* netboot/fsys_tftp.c (GRUB): Defined.
20307c478bd9Sstevel@tonic-gate	(buf_fill): Use rfc2131_sleep_interval instead of rfc951_sleep.
20317c478bd9Sstevel@tonic-gate
20327c478bd9Sstevel@tonic-gate	* stage2/builtins.c [SUPPORT_NETBOOT] (GRUB): Defined.
20337c478bd9Sstevel@tonic-gate	(boot_func) [SUPPORT_NETBOOT]: Call cleanup_net.
20347c478bd9Sstevel@tonic-gate	* stage2/cmdline.c [SUPPORT_DISKLESS] (GRUB): Defined.
20357c478bd9Sstevel@tonic-gate	* stage2/common.c [SUPPORT_DISKLESS] (GRUB): Likewise.
20367c478bd9Sstevel@tonic-gate
20377c478bd9Sstevel@tonic-gate2002-01-02  Jeremy Katz  <katzj@redhat.com>
20387c478bd9Sstevel@tonic-gate
20397c478bd9Sstevel@tonic-gate	* util/grub-install.in: Support using mktemp as well as tempfile
20407c478bd9Sstevel@tonic-gate	for secure temporary file creation.
20417c478bd9Sstevel@tonic-gate
20427c478bd9Sstevel@tonic-gate2002-01-02  Jeremy Katz  <katzj@redhat.com>
20437c478bd9Sstevel@tonic-gate
20447c478bd9Sstevel@tonic-gate	* stage2/md5.c (md5_password): Ensure the password exists before
20457c478bd9Sstevel@tonic-gate	trying to check against the md5 crypted version.
20467c478bd9Sstevel@tonic-gate
20477c478bd9Sstevel@tonic-gate2001-12-30  Yoshinori K. Okuji  <okuji@gnu.org>
20487c478bd9Sstevel@tonic-gate
20497c478bd9Sstevel@tonic-gate	* stage1/stage1.S: Don't call INT 13, AH=48H, because it is
20507c478bd9Sstevel@tonic-gate	difficult to call this function with the workaround implemented
20517c478bd9Sstevel@tonic-gate	in the previous change due to the size limit of Stage 1.
20527c478bd9Sstevel@tonic-gate
20537c478bd9Sstevel@tonic-gate	(lba_mode) [NO_BUGGY_BIOS_IN_THE_WORLD]: Don't check the
20547c478bd9Sstevel@tonic-gate	geometry explicitly. This shouldn't be harmful, as INT 13,
20557c478bd9Sstevel@tonic-gate	AH=42H should take care of it, and if you cannot read Stage 2
20567c478bd9Sstevel@tonic-gate	even with LBA because of a geometry problem, you can never read
20577c478bd9Sstevel@tonic-gate	it.
20587c478bd9Sstevel@tonic-gate
20597c478bd9Sstevel@tonic-gate	* stage2/start.S (lba_mode) [NO_BUGGY_BIOS_IN_THE_WORLD]:
20607c478bd9Sstevel@tonic-gate	Likewise.
20617c478bd9Sstevel@tonic-gate
20627c478bd9Sstevel@tonic-gate2001-12-30  Yoshinori K. Okuji  <okuji@gnu.org>
20637c478bd9Sstevel@tonic-gate
20647c478bd9Sstevel@tonic-gate	* stage2/bios.c (get_diskinfo): Clear out the structure DRP
20657c478bd9Sstevel@tonic-gate	before calling get_diskinfo_int13_extensions, because the Ralf
20667c478bd9Sstevel@tonic-gate	Brown's Interrupt List says that Dell machines using PhoenixBIOS
20677c478bd9Sstevel@tonic-gate	4.0 Release 6.0 fail, if DRP.FLAGS is not zero. Setting the
20687c478bd9Sstevel@tonic-gate	entire structure to zero may be overkill, but it should be safe.
20697c478bd9Sstevel@tonic-gate
20707c478bd9Sstevel@tonic-gate	* stage2/char_io.c [STAGE1_5] (grub_memset): Defined.
20717c478bd9Sstevel@tonic-gate
20727c478bd9Sstevel@tonic-gate2001-12-30  Yoshinori K. Okuji  <okuji@gnu.org>
20737c478bd9Sstevel@tonic-gate
20747c478bd9Sstevel@tonic-gate	From John Goerzen <jgoerzen@complete.org>:
20757c478bd9Sstevel@tonic-gate	* util/grub-install.in (convert): Added NetBSD support.
20767c478bd9Sstevel@tonic-gate
20777c478bd9Sstevel@tonic-gate2001-12-30  Yoshinori K. Okuji  <okuji@gnu.org>
20787c478bd9Sstevel@tonic-gate
20797c478bd9Sstevel@tonic-gate	* util/grub-install.in: Set GRUB_PREFIX and BOOTDIR to "/grub"
20807c478bd9Sstevel@tonic-gate	and "${rootdir}" respectively in NetBSD.
20817c478bd9Sstevel@tonic-gate
20827c478bd9Sstevel@tonic-gate2001-12-30  Yoshinori K. Okuji  <okuji@gnu.org>
20837c478bd9Sstevel@tonic-gate
20847c478bd9Sstevel@tonic-gate	* stage2/builtins.c (builtin_geometry): Add extra space
20857c478bd9Sstevel@tonic-gate	characters into the long description.
20867c478bd9Sstevel@tonic-gate	(builtin_kernel): Likewise.
20877c478bd9Sstevel@tonic-gate	(builtin_vbeprobe): Likewise.
20887c478bd9Sstevel@tonic-gate
20897c478bd9Sstevel@tonic-gate2001-12-19  Yoshinori K. Okuji  <okuji@gnu.org>
20907c478bd9Sstevel@tonic-gate
20917c478bd9Sstevel@tonic-gate	From Michael Sullivan <mike@trdlnk.com>:
20927c478bd9Sstevel@tonic-gate	* stage1/stage1.S (real_start): Added a workaround for AST BIOS,
20937c478bd9Sstevel@tonic-gate	because it clobbers %dl with INT 13, AH=41H.
20947c478bd9Sstevel@tonic-gate
20957c478bd9Sstevel@tonic-gate2001-12-19  Yoshinori K. Okuji  <okuji@gnu.org>
20967c478bd9Sstevel@tonic-gate
20977c478bd9Sstevel@tonic-gate	* stage2/fsys_fat.c (fat_read): Fix the contradictory comment.
20987c478bd9Sstevel@tonic-gate	Reported by Filip Van Raemdonck <mechanix@digibel.org>.
20997c478bd9Sstevel@tonic-gate
21007c478bd9Sstevel@tonic-gate2001-12-11  Yoshinori K. Okuji  <okuji@gnu.org>
21017c478bd9Sstevel@tonic-gate
21027c478bd9Sstevel@tonic-gate	* stage2/builtins.c (displayapm_func): Don't use multi-line
21037c478bd9Sstevel@tonic-gate	string literals but string concatenation instead, to suppress
21047c478bd9Sstevel@tonic-gate	warnings from gcc-3.0.x.
21057c478bd9Sstevel@tonic-gate	* stage2/cmdline.c (print_cmdline_message): Likewise.
21067c478bd9Sstevel@tonic-gate	* util/mbchk.c (usage): Likewise.
21077c478bd9Sstevel@tonic-gate
21087c478bd9Sstevel@tonic-gate	* stage2/smp-imps.c (imps_read_config_table): Add a break
21097c478bd9Sstevel@tonic-gate	statement after the label ``default''.
21107c478bd9Sstevel@tonic-gate
21117c478bd9Sstevel@tonic-gate	* util/mbchk.c: Include <stdlib.h> for the prototype of exit.
21127c478bd9Sstevel@tonic-gate
21137c478bd9Sstevel@tonic-gate	* stage2/serial.c (serial_port): Initialize with 0 instead of
21147c478bd9Sstevel@tonic-gate	-1, as an invalid value, because SERIAL_PORT is unsigned. This
21157c478bd9Sstevel@tonic-gate	change shouldn't affect anything.
21167c478bd9Sstevel@tonic-gate	(serial_exists): For the above change, check SERIAL_PORT with 0
21177c478bd9Sstevel@tonic-gate	instead of -1.
21187c478bd9Sstevel@tonic-gate
21197c478bd9Sstevel@tonic-gate2001-12-10  Yoshinori K. Okuji  <okuji@gnu.org>
21207c478bd9Sstevel@tonic-gate
21217c478bd9Sstevel@tonic-gate	* stage2/shared.h (ERR_NO_DISK_SPACE): New constant.
21227c478bd9Sstevel@tonic-gate	* stage2/common.c (err_list): Added an entry for
21237c478bd9Sstevel@tonic-gate	ERR_NO_DISK_SPACE.
21247c478bd9Sstevel@tonic-gate	* docs/grub.texi (Stage2 errors): Added the description.
21257c478bd9Sstevel@tonic-gate	* stage2/builtins.c (embed_func): Use ERR_NO_DISK_SPACE instead
21267c478bd9Sstevel@tonic-gate	of ERR_DEV_VALUES when the spare space is too small. Suggested
21277c478bd9Sstevel@tonic-gate	by Eric Mumpower <nocturne@permabit.com>.
21287c478bd9Sstevel@tonic-gate
21297c478bd9Sstevel@tonic-gate2001-12-10  Yoshinori K. Okuji  <okuji@gnu.org>
21307c478bd9Sstevel@tonic-gate
21317c478bd9Sstevel@tonic-gate	* grub/asmstub.c: Include <signal.h>.
21327c478bd9Sstevel@tonic-gate	(grub_stage2) [HAVE_LIBCURSES]: If USE_CURSES is true, ignore
21337c478bd9Sstevel@tonic-gate	the signal SIGWINCH. Reported by Christian Hudon
21347c478bd9Sstevel@tonic-gate	<chrish@debian.org>.
21357c478bd9Sstevel@tonic-gate
21367c478bd9Sstevel@tonic-gate2001-11-29  Yoshinori K. Okuji  <okuji@gnu.org>
21377c478bd9Sstevel@tonic-gate
21387c478bd9Sstevel@tonic-gate	From Jason Thomas:
21397c478bd9Sstevel@tonic-gate	* stage2/disk_io.c (set_partition_hidden_flag): Complete rewrite
21407c478bd9Sstevel@tonic-gate	of this function which now supports logical partitions.
21417c478bd9Sstevel@tonic-gate
21427c478bd9Sstevel@tonic-gate2001-11-12  Yoshinori K. Okuji  <okuji@gnu.org>
21437c478bd9Sstevel@tonic-gate
21447c478bd9Sstevel@tonic-gate	* docs/grub.texi: The copyright of this file is only held by
21457c478bd9Sstevel@tonic-gate	Free Software Foundation, Inc., as Erich Boleyn has assigned his
21467c478bd9Sstevel@tonic-gate	copyright to the FSF.
21477c478bd9Sstevel@tonic-gate	* stage1/stage1.S: Likewise.
21487c478bd9Sstevel@tonic-gate	* stage2/asm.S: Likewise.
21497c478bd9Sstevel@tonic-gate	* stage2/boot.c: Likewise.
21507c478bd9Sstevel@tonic-gate	* stage2/builtins.c: Likewise.
21517c478bd9Sstevel@tonic-gate	* stage2/char_io.c: Likewise.
21527c478bd9Sstevel@tonic-gate	* stage2/cmdline.c: Likewise.
21537c478bd9Sstevel@tonic-gate	* stage2/common.c: Likewise.
21547c478bd9Sstevel@tonic-gate	* stage2/disk_io.c: Likewise.
21557c478bd9Sstevel@tonic-gate	* stage2/fat.h: Likewise.
21567c478bd9Sstevel@tonic-gate	* stage2/filesys.h: Likewise.
21577c478bd9Sstevel@tonic-gate	* stage2/freebsd.h: Likewise.
21587c478bd9Sstevel@tonic-gate	* stage2/fsys_ext2fs.c: Likewise.
21597c478bd9Sstevel@tonic-gate	* stage2/fsys_fat.c: Likewise.
21607c478bd9Sstevel@tonic-gate	* stage2/fsys_ffs.c: Likewise.
21617c478bd9Sstevel@tonic-gate	* stage2/gunzip.c: Likewise.
21627c478bd9Sstevel@tonic-gate	* stage2/i386-elf.h: Likewise.
21637c478bd9Sstevel@tonic-gate	* stage2/mb_header.h: Likewise.
21647c478bd9Sstevel@tonic-gate	* stage2/mb_info.h: Likewise.
21657c478bd9Sstevel@tonic-gate	* stage2/pc_slice.h: Likewise.
21667c478bd9Sstevel@tonic-gate	* stage2/shared.h: Likewise.
21677c478bd9Sstevel@tonic-gate	* stage2/stage1_5.c: Likewise.
21687c478bd9Sstevel@tonic-gate	* stage2/stage2.c: Likewise.
21697c478bd9Sstevel@tonic-gate	* stage2/start.S: Likewise.
21707c478bd9Sstevel@tonic-gate
21717c478bd9Sstevel@tonic-gate2001-11-07  Yoshinori K. Okuji  <okuji@gnu.org>
21727c478bd9Sstevel@tonic-gate
21737c478bd9Sstevel@tonic-gate	* stage2/builtins.c (terminal_func) [!SUPPORT_SERIAL]: Disable
21747c478bd9Sstevel@tonic-gate	the wait code, as it is usable only when serial support is on.
21757c478bd9Sstevel@tonic-gate	Reported by Karl Hammar <karl@kalle.csb.ki.se>.
21767c478bd9Sstevel@tonic-gate
21777c478bd9Sstevel@tonic-gate2001-10-27  Yoshinori K. Okuji  <okuji@gnu.org>
21787c478bd9Sstevel@tonic-gate
21797c478bd9Sstevel@tonic-gate	JFS and XFS support is added.
21807c478bd9Sstevel@tonic-gate
21817c478bd9Sstevel@tonic-gate	From Serguei Tzukanov <tzukanov@narod.ru>:
21827c478bd9Sstevel@tonic-gate	* configure.in (--disable-jfs): New option.
21837c478bd9Sstevel@tonic-gate	(--disable-xfs): Likewise.
21847c478bd9Sstevel@tonic-gate	* stage2/Makefile.am (noinst_HEADERS): Added jfs.h and xfs.h.
21857c478bd9Sstevel@tonic-gate	(libgrub_a_SOURCES): Added fsys_jfs.c and fsys_xfs.c.
21867c478bd9Sstevel@tonic-gate	(libgrub_a_CFLAGS): Added -DFSYS_JFS=1 and -DFSYS_XFS=1.
21877c478bd9Sstevel@tonic-gate	(pkgdata_DATA): Added jfs_stage1_5 and xfs_stage1_5.
21887c478bd9Sstevel@tonic-gate	(noinst_PROGRAMS): Added jfs_stage1_5.exec and
21897c478bd9Sstevel@tonic-gate	xfs_stage1_5.exec.
21907c478bd9Sstevel@tonic-gate	(pre_stage2_exec_SOURCES): Added fsys_jfs.c and fsys_xfs.c.
21917c478bd9Sstevel@tonic-gate	(jfs_stage1_5_exec_SOURCES): New variable.
21927c478bd9Sstevel@tonic-gate	(jfs_stage1_5_exec_CFLAGS): Likewise.
21937c478bd9Sstevel@tonic-gate	(jfs_stage1_5_exec_ASFLAGS): Likewise.
21947c478bd9Sstevel@tonic-gate	(jfs_stage1_5_exec_LDFLAGS): Likewise.
21957c478bd9Sstevel@tonic-gate	(xfs_stage1_5_exec_SOURCES): Likewise.
21967c478bd9Sstevel@tonic-gate	(xfs_stage1_5_exec_CFLAGS): Likewise.
21977c478bd9Sstevel@tonic-gate	(xfs_stage1_5_exec_ASFLAGS): Likewise.
21987c478bd9Sstevel@tonic-gate	(xfs_stage1_5_exec_LDFLAGS): Likewise.
21997c478bd9Sstevel@tonic-gate	* stage2/builtins.c (setup_func): Add items for JFS and XFS into
22007c478bd9Sstevel@tonic-gate	STAGE1_5_MAP.
22017c478bd9Sstevel@tonic-gate	* stage2/disk_io.c (fsys_table): Added entries for JFS and XFS.
22027c478bd9Sstevel@tonic-gate	* stage2/filesys.h [FSYS_JFS] (FSYS_JFS_NUM): Set to 1.
22037c478bd9Sstevel@tonic-gate	[FSYS_JFS] (jfs_mount): Declared.
22047c478bd9Sstevel@tonic-gate	[FSYS_JFS] (jfs_read): Likewise.
22057c478bd9Sstevel@tonic-gate	[FSYS_JFS] (jfs_dir): Likewise.
22067c478bd9Sstevel@tonic-gate	[FSYS_JFS] (jfs_embed): Likewise.
22077c478bd9Sstevel@tonic-gate	[!FSYS_JFS] (FSYS_JFS_NUM): Set to 0.
22087c478bd9Sstevel@tonic-gate	[FSYS_XFS] (FSYS_XFS_NUM): Set to 1.
22097c478bd9Sstevel@tonic-gate	[FSYS_XFS] (xfs_mount): Declared.
22107c478bd9Sstevel@tonic-gate	[FSYS_XFS] (xfs_read): Likewise.
22117c478bd9Sstevel@tonic-gate	[FSYS_XFS] (xfs_dir): Likewise.
22127c478bd9Sstevel@tonic-gate	(NUM_FSYS): Added FSYS_JFS_NUM and FSYS_XFS_NUM.
22137c478bd9Sstevel@tonic-gate	* stage2/shared.h (STAGE2_ID_JFS_STAGE1_5): New macro.
22147c478bd9Sstevel@tonic-gate	(STAGE2_ID_XFS_STAGE1_5): Likewise.
22157c478bd9Sstevel@tonic-gate	[FSYS_JFS] (STAGE2_ID): Set to STAGE2_ID_JFS_STAGE1_5.
22167c478bd9Sstevel@tonic-gate	[FSYS_XFS] (STAGE2_ID): Set to STAGE2_ID_XFS_STAGE1_5.
22177c478bd9Sstevel@tonic-gate	* stage2/fsys_jfs.c: New file.
22187c478bd9Sstevel@tonic-gate	* stage2/fsys_xfs.c: Likewise.
22197c478bd9Sstevel@tonic-gate	* stage2/jfs.h: Likewise.
22207c478bd9Sstevel@tonic-gate	* stage2/xfs.h: Likewise.
22217c478bd9Sstevel@tonic-gate
22227c478bd9Sstevel@tonic-gate2001-10-27  Yoshinori K. Okuji  <okuji@gnu.org>
22237c478bd9Sstevel@tonic-gate
22247c478bd9Sstevel@tonic-gate	* stage2/apm.S: Always disconnect from APM. Written by Erich
22257c478bd9Sstevel@tonic-gate	Stefan Boleyn.
22267c478bd9Sstevel@tonic-gate
22277c478bd9Sstevel@tonic-gate	* util/Makefile.am (noinst_DATA): Removed.
22287c478bd9Sstevel@tonic-gate	(EXTRA_DIST): Likewise.
22297c478bd9Sstevel@tonic-gate
22307c478bd9Sstevel@tonic-gate2001-10-14  Gordon Matzigkeit  <gord@fig.org>
22317c478bd9Sstevel@tonic-gate
22327c478bd9Sstevel@tonic-gate	* configure.in: Explicitly call _AM_DEPENDENCIES(CC) for the
22337c478bd9Sstevel@tonic-gate	benefit of older Autoconfs.
22347c478bd9Sstevel@tonic-gate
22357c478bd9Sstevel@tonic-gate2001-10-13  Yoshinori K. Okuji  <okuji@gnu.org>
22367c478bd9Sstevel@tonic-gate
22377c478bd9Sstevel@tonic-gate	* netboot/fsys_tftp.c (tftp_read): Move the unused data
22387c478bd9Sstevel@tonic-gate	forwards, only if AMT is more than zero. If AMT is not positive,
22397c478bd9Sstevel@tonic-gate	subtract BUF_READ from SAVED_FILEPOS and set BUF_READ to zero,
22407c478bd9Sstevel@tonic-gate	to skip the whole buffer. Reported by Frank Mehnert.
22417c478bd9Sstevel@tonic-gate
22427c478bd9Sstevel@tonic-gate2001-10-13  Yoshinori K. Okuji  <okuji@gnu.org>
22437c478bd9Sstevel@tonic-gate
22447c478bd9Sstevel@tonic-gate	Don't use get_diskinfo_floppy. Reported by Ben Liblit
22457c478bd9Sstevel@tonic-gate	<liblit@eecs.berkeley.edu>.
22467c478bd9Sstevel@tonic-gate
22477c478bd9Sstevel@tonic-gate	* stage2/asm.S (get_diskinfo_floppy): Removed (by cpp).
22487c478bd9Sstevel@tonic-gate	* stage2/bios.c (get_diskinfo_floppy): Removed.
22497c478bd9Sstevel@tonic-gate	(get_diskinfo): Don't call get_diskinfo_floppy any longer.
22507c478bd9Sstevel@tonic-gate
22517c478bd9Sstevel@tonic-gate2001-10-13  Yoshinori K. Okuji  <okuji@gnu.org>
22527c478bd9Sstevel@tonic-gate
22537c478bd9Sstevel@tonic-gate	Based on a patch from Jeremy Katz <katzj@redhat.com>:
22547c478bd9Sstevel@tonic-gate	* docs/grub.texi (Stage2 errors): Added documentation on the
22557c478bd9Sstevel@tonic-gate	error number 33 (Serial device not configured).
22567c478bd9Sstevel@tonic-gate	* grub/asmstub.c (serial_exists): New function.
22577c478bd9Sstevel@tonic-gate	* stage2/serial.c (serial_exists): Likewise.
22587c478bd9Sstevel@tonic-gate	* stage2/serial.h (serial_exists): New prototype.
22597c478bd9Sstevel@tonic-gate	* stage2/shared.h (grub_error_t): ERR_NEED_SERIAL is added.
22607c478bd9Sstevel@tonic-gate	* stage2/builtins.c (terminal_func) [SUPPORT_SERIAL]: If a
22617c478bd9Sstevel@tonic-gate	serial device is not configured yet, restore the terminal and
22627c478bd9Sstevel@tonic-gate	set ERRNUM to ERR_NEED_SERIAL.
22637c478bd9Sstevel@tonic-gate	* stage2/common.c (err_list): Added an item for ERR_NEED_SERIAL.
22647c478bd9Sstevel@tonic-gate
22657c478bd9Sstevel@tonic-gate2001-10-13  Yoshinori K. Okuji  <okuji@gnu.org>
22667c478bd9Sstevel@tonic-gate
22677c478bd9Sstevel@tonic-gate	From Jason Thomas <jason@topic.com.au>:
22687c478bd9Sstevel@tonic-gate	* util/grub-install.in (convert): Add support for DAC960.
22697c478bd9Sstevel@tonic-gate
22707c478bd9Sstevel@tonic-gate	From Adrian Phillips <a.phillips@dnmi.no>:
22717c478bd9Sstevel@tonic-gate	* lib/device.c (get_dac960_disk_name): New function.
22727c478bd9Sstevel@tonic-gate	(init_device_map) [__linux__]: Add support for DAC960.
22737c478bd9Sstevel@tonic-gate
22747c478bd9Sstevel@tonic-gate2001-10-11  Jochen Hoenicke  <jochen@gnu.org>
22757c478bd9Sstevel@tonic-gate
22767c478bd9Sstevel@tonic-gate	* stage2/fsys_reiserfs.c (reiserfs_super_block): Updated
22777c478bd9Sstevel@tonic-gate	to better match recent reiserfs versions.
22787c478bd9Sstevel@tonic-gate	(reiserfs_mount): Handle cases where journal can't be found,
22797c478bd9Sstevel@tonic-gate	e.g. journal on another disk or unexpected journal parameters.
22807c478bd9Sstevel@tonic-gate	In that case the journal isn't used.
22817c478bd9Sstevel@tonic-gate
22827c478bd9Sstevel@tonic-gate2001-10-10  Jochen Hoenicke  <jochen@gnu.org>
22837c478bd9Sstevel@tonic-gate
22847c478bd9Sstevel@tonic-gate	* stage2/fsys_reiserfs.c (reiserfs_mount):  Don't look at
22857c478bd9Sstevel@tonic-gate	the superblock field s_journal_block_count anymore.  It used
22867c478bd9Sstevel@tonic-gate	to contain 0, it never contained a valid value, and now I
22877c478bd9Sstevel@tonic-gate	have a report that it can contain an invalid value.
22887c478bd9Sstevel@tonic-gate	Bug reported by Jim Caley <caley@chesco.com>.
22897c478bd9Sstevel@tonic-gate
22907c478bd9Sstevel@tonic-gate2001-09-24  Jochen Hoenicke  <jochen@gnu.org>
22917c478bd9Sstevel@tonic-gate
22927c478bd9Sstevel@tonic-gate	* stage2/fsys_reiserfs.c (reiserfs_dir):  Set errnum to
22937c478bd9Sstevel@tonic-gate	ERR_FSYS_CORRUPT if a symlink can't be read for some reason,
22947c478bd9Sstevel@tonic-gate	but no error is set by read.
22957c478bd9Sstevel@tonic-gate
22967c478bd9Sstevel@tonic-gate2001-08-08  OKUJI Yoshinori  <okuji@gnu.org>
22977c478bd9Sstevel@tonic-gate
22987c478bd9Sstevel@tonic-gate	From Derrik Pates <dpates@dsdk12.net>:
22997c478bd9Sstevel@tonic-gate	* stage2/asm.S [!STAGE1_5] (grub_halt): Set the level of APM
23007c478bd9Sstevel@tonic-gate	support to 1.1, before turning off the power state.
23017c478bd9Sstevel@tonic-gate
23027c478bd9Sstevel@tonic-gate2001-08-08  OKUJI Yoshinori  <okuji@gnu.org>
23037c478bd9Sstevel@tonic-gate
23047c478bd9Sstevel@tonic-gate	* util/grub-md5-crypt.in: Prefix backquotes with backslashes in
23057c478bd9Sstevel@tonic-gate	strings.  From Fernando Silveira.
23067c478bd9Sstevel@tonic-gate
23077c478bd9Sstevel@tonic-gate2001-08-02  Gordon Matzigkeit  <gord@fig.org>
23087c478bd9Sstevel@tonic-gate
23097c478bd9Sstevel@tonic-gate	* stage2/common.c (init_bios_info): Ignore zero-length memory
23107c478bd9Sstevel@tonic-gate	ranges.  From Derrik Pates <dpates@dsdk12.net>.
23117c478bd9Sstevel@tonic-gate
23127c478bd9Sstevel@tonic-gate2001-07-26  Jochen Hoenicke  <jochen@gnu.org>
23137c478bd9Sstevel@tonic-gate
23147c478bd9Sstevel@tonic-gate	* stage2/Makefile.am (libgrub_a_CFLAGS): Enable USE_MD5_PASSWORDS
23157c478bd9Sstevel@tonic-gate	for libgrub.  Previously that was implicitly done by configure.in
23167c478bd9Sstevel@tonic-gate	until the patch from 2001-07-04, which moved that flag from CFLAGS
23177c478bd9Sstevel@tonic-gate	to FSYS_CFLAGS.  Reported by YAMAGUCHI Shingo
23187c478bd9Sstevel@tonic-gate	<shingo@kip.iis.toyama-u.ac.jp>
23197c478bd9Sstevel@tonic-gate
23207c478bd9Sstevel@tonic-gate2001-07-13  OKUJI Yoshinori  <okuji@gnu.org>
23217c478bd9Sstevel@tonic-gate
23227c478bd9Sstevel@tonic-gate	* util/grub-install.in (convert): Recognize the naming scheme
23237c478bd9Sstevel@tonic-gate	for Linux devfs floppy devices. Reported by Jason Thomas
23247c478bd9Sstevel@tonic-gate	<jason@topic.com.au>.
23257c478bd9Sstevel@tonic-gate
23267c478bd9Sstevel@tonic-gate2001-07-07  OKUJI Yoshinori  <okuji@gnu.org>
23277c478bd9Sstevel@tonic-gate
23287c478bd9Sstevel@tonic-gate	* netboot/compile: New file. This was also missing... How many
23297c478bd9Sstevel@tonic-gate	``compile''s does automake want?
23307c478bd9Sstevel@tonic-gate
23317c478bd9Sstevel@tonic-gate2001-07-07  OKUJI Yoshinori  <okuji@gnu.org>
23327c478bd9Sstevel@tonic-gate
23337c478bd9Sstevel@tonic-gate	From Jan Zerebecki <jan.list@elite-pferde.de>:
23347c478bd9Sstevel@tonic-gate	* acinclude.m4 (grub_DEFINE_FILE): Escape double-quotations as
23357c478bd9Sstevel@tonic-gate	well.
23367c478bd9Sstevel@tonic-gate
23377c478bd9Sstevel@tonic-gate2001-07-05  OKUJI Yoshinori  <okuji@gnu.org>
23387c478bd9Sstevel@tonic-gate
23397c478bd9Sstevel@tonic-gate	* configure.in (AM_INIT_AUTOMAKE): Set the version number to
23407c478bd9Sstevel@tonic-gate	0.90.
23417c478bd9Sstevel@tonic-gate
23427c478bd9Sstevel@tonic-gate2001-07-05  OKUJI Yoshinori  <okuji@gnu.org>
23437c478bd9Sstevel@tonic-gate
23447c478bd9Sstevel@tonic-gate	Ughh! I forgot to add this file to the CVS.
23457c478bd9Sstevel@tonic-gate
23467c478bd9Sstevel@tonic-gate	* docs/compile: New file.
23477c478bd9Sstevel@tonic-gate
23487c478bd9Sstevel@tonic-gate2001-07-05  OKUJI Yoshinori  <okuji@gnu.org>
23497c478bd9Sstevel@tonic-gate
23507c478bd9Sstevel@tonic-gate	* docs/grub.texi: Updated.
23517c478bd9Sstevel@tonic-gate
23527c478bd9Sstevel@tonic-gate2001-07-05  OKUJI Yoshinori  <okuji@gnu.org>
23537c478bd9Sstevel@tonic-gate
23547c478bd9Sstevel@tonic-gate	* stage2/boot.c (load_initrd) [!NO_DECOMPRESSION]: Set
23557c478bd9Sstevel@tonic-gate	NO_DECOMPRESSION to one before opening INITRD, so that GRUB
23567c478bd9Sstevel@tonic-gate	doesn't decompress an initrd automatically. Reported by
23577c478bd9Sstevel@tonic-gate	Thierry Laronde.
23587c478bd9Sstevel@tonic-gate
23597c478bd9Sstevel@tonic-gate2001-07-04  OKUJI Yoshinori  <okuji@gnu.org>
23607c478bd9Sstevel@tonic-gate
23617c478bd9Sstevel@tonic-gate	* stage2/compile: New file.
23627c478bd9Sstevel@tonic-gate	* docs/mdate-sh: Likewise.
23637c478bd9Sstevel@tonic-gate	* docs/texinfo.tex: Likewise.
23647c478bd9Sstevel@tonic-gate	* compile: Removed.
23657c478bd9Sstevel@tonic-gate	* mdate-sh: Likewise.
23667c478bd9Sstevel@tonic-gate	* texinfo.tex: Likewise.
23677c478bd9Sstevel@tonic-gate	* config.guess: Updated from automake-1.4h.
23687c478bd9Sstevel@tonic-gate	* config.sub: Likewise.
23697c478bd9Sstevel@tonic-gate	* depcomp: Likewise.
23707c478bd9Sstevel@tonic-gate	* install-sh: Likewise.
23717c478bd9Sstevel@tonic-gate	* missing: Likewise.
23727c478bd9Sstevel@tonic-gate	* mkinstalldirs: Likewise.
23737c478bd9Sstevel@tonic-gate	* configure.in (AS): New variable.
23747c478bd9Sstevel@tonic-gate	(ASFLAGS): Likewise.
23757c478bd9Sstevel@tonic-gate	(--disable-md5-password): Use FSYS_CFLAGS instead of CFLAGS.
23767c478bd9Sstevel@tonic-gate	* stage1/Makefile.am (AM_CFLAGS): Renamed to ...
23777c478bd9Sstevel@tonic-gate	(AM_ASFLAGS): ... this.
23787c478bd9Sstevel@tonic-gate	* stage2/Makefile.am (pre_stage2_exec_ASFLAGS): New variable.
23797c478bd9Sstevel@tonic-gate	(start_exec_CFLAGS): Renamed to ...
23807c478bd9Sstevel@tonic-gate	(start_exec_ASFLAGS): ... this.
23817c478bd9Sstevel@tonic-gate	(start_exec-start.o): Renamed to ...
23827c478bd9Sstevel@tonic-gate	(start_exec-start.$(OBJEXT)): ... this.
23837c478bd9Sstevel@tonic-gate	(e2fs_stage1_5_exec_ASFLAGS): New variable.
23847c478bd9Sstevel@tonic-gate	(fat_stage1_5_exec_ASFLAGS): Likewise.
23857c478bd9Sstevel@tonic-gate	(ffs_stage1_5_exec_ASFLAGS): Likewise.
23867c478bd9Sstevel@tonic-gate	(minix_stage1_5_exec_ASFLAGS): Likewise.
23877c478bd9Sstevel@tonic-gate	(reiserfs_stage1_5_exec_ASFLAGS): Likewise.
23887c478bd9Sstevel@tonic-gate	(vstafs_stage1_5_exec_ASFLAGS): Likewise.
23897c478bd9Sstevel@tonic-gate	(diskless_exec_ASFLAGS): Likewise.
23907c478bd9Sstevel@tonic-gate	(nbloader_exec_CFLAGS): Renamed to ...
23917c478bd9Sstevel@tonic-gate	(nbloader_exec_ASFLAGS): ... this.
23927c478bd9Sstevel@tonic-gate	(nbloader_exec-nbloader.o): Renamed to ...
23937c478bd9Sstevel@tonic-gate	(nbloader_exec-nbloader.$(OBJEXT)): ... this.
23947c478bd9Sstevel@tonic-gate	(pxeloader_exec_CFLAGS): Renamed to ...
23957c478bd9Sstevel@tonic-gate	(pxeloader_exec_ASFLAGS): ... this.
23967c478bd9Sstevel@tonic-gate	(pxeloader_exec-pxeloader.$(OBJEXT)): New target.
23977c478bd9Sstevel@tonic-gate
23987c478bd9Sstevel@tonic-gate2001-07-03  OKUJI Yoshinori  <okuji@gnu.org>
23997c478bd9Sstevel@tonic-gate
24007c478bd9Sstevel@tonic-gate	From Julien Bordet <julien.bordet@int-evry.fr>:
24017c478bd9Sstevel@tonic-gate	* stage2/i386-elf.h (Elf32_Shdr): New type.
24027c478bd9Sstevel@tonic-gate	* stage2/boot.c (load_image): Added ELF symbol loading support.
24037c478bd9Sstevel@tonic-gate
24047c478bd9Sstevel@tonic-gate2001-06-22  OKUJI Yoshinori  <okuji@gnu.org>
24057c478bd9Sstevel@tonic-gate
24067c478bd9Sstevel@tonic-gate	* stage2/char_io.c [STAGE1_5] (grub_strcmp): Defined, even
24077c478bd9Sstevel@tonic-gate	for Stage 1.5. See thecomment, for a possible future strategy.
24087c478bd9Sstevel@tonic-gate	* stage2/fsys_vstafs.c [!FSYS_VSTAFS]: Don't define anything.
24097c478bd9Sstevel@tonic-gate	[STAGE1_5] (grub_strcmp): Removed.
24107c478bd9Sstevel@tonic-gate	(get_file_info): Made static.
24117c478bd9Sstevel@tonic-gate	(vstafs_readdir): Likewise.
24127c478bd9Sstevel@tonic-gate	(vstafs_nextdir): Likewise.
24137c478bd9Sstevel@tonic-gate	(curr_ext): Likewise.
24147c478bd9Sstevel@tonic-gate	(current_direntry): Likewise.
24157c478bd9Sstevel@tonic-gate	(current_blockpos): Likewise.
24167c478bd9Sstevel@tonic-gate	(a): Likewise.
24177c478bd9Sstevel@tonic-gate
24187c478bd9Sstevel@tonic-gate2001-06-22  OKUJI Yoshinori  <okuji@gnu.org>
24197c478bd9Sstevel@tonic-gate
24207c478bd9Sstevel@tonic-gate	VSTa filesystem support is added.
24217c478bd9Sstevel@tonic-gate
24227c478bd9Sstevel@tonic-gate	From Kristoffer Br�nemyr <ztion@swipnet.se>:
24237c478bd9Sstevel@tonic-gate	* stage2/configure.in (--disable-vstafs): New option.
24247c478bd9Sstevel@tonic-gate	* stage2/Makefile.am (noinst_HEADERS): Added vstafs.h.
24257c478bd9Sstevel@tonic-gate	(libgrub_a_SOURCES): Added fsys_vstafs.c.
24267c478bd9Sstevel@tonic-gate	(libgrub_a_CFLAGS): Added -DFSYS_VSTAFS=1.
24277c478bd9Sstevel@tonic-gate	(pkgdata_DATA): Added vstafs_stage1_5.
24287c478bd9Sstevel@tonic-gate	(noinst_PROGRAMS): Added vstafs_stage1_5.exec.
24297c478bd9Sstevel@tonic-gate	(pre_stage2_exec_SOURCES): Added fsys_vstafs.c.
24307c478bd9Sstevel@tonic-gate	(vstafs_stage1_5_exec_SOURCES): New variable.
24317c478bd9Sstevel@tonic-gate	(vstafs_stage1_5_exec_CFLAGS): Likewise.
24327c478bd9Sstevel@tonic-gate	(vstafs_stage1_5_exec_LDFLAGS): Likewise.
24337c478bd9Sstevel@tonic-gate	* stage2/disk_io.c (fsys_table): Added an entry for vstafs.
24347c478bd9Sstevel@tonic-gate	* stage2/filesys.h [FSYS_VSTAFS] (FSYS_VSTAFS_NUM): Defined as
24357c478bd9Sstevel@tonic-gate	1.
24367c478bd9Sstevel@tonic-gate	[FSYS_VSTAFS] (vstafs_mount): New prototype.
24377c478bd9Sstevel@tonic-gate	[FSYS_VSTAFS] (vstafs_read): Likewise.
24387c478bd9Sstevel@tonic-gate	[FSYS_VSTAFS] (vstafs_dir): Likewise.
24397c478bd9Sstevel@tonic-gate	[!FSYS_VSTAFS] (FSYS_VSTAFS_NUM): Defined as 0.
24407c478bd9Sstevel@tonic-gate	(NUM_FSYS): Added FSYS_VSTAFS_NUM.
24417c478bd9Sstevel@tonic-gate	* stage2/pc_slice.h (PC_SLICE_TYPE_VSTAFS): New macro.
24427c478bd9Sstevel@tonic-gate	* stage2/shared.h (STAGE2_ID_VSTAFS_STAGE1_5): Likewise.
24437c478bd9Sstevel@tonic-gate	[STAGE1_5 && FSYS_VSTAFS] (STAGE2_ID): Defined as
24447c478bd9Sstevel@tonic-gate	STAGE2_ID_VSTAFS_STAGE1_5.
24457c478bd9Sstevel@tonic-gate	* stage2/vstafs.h: New file.
24467c478bd9Sstevel@tonic-gate	* stage2/fsys_vstafs.c: Likewise.
24477c478bd9Sstevel@tonic-gate
24487c478bd9Sstevel@tonic-gate2001-06-22  OKUJI Yoshinori  <okuji@gnu.org>
24497c478bd9Sstevel@tonic-gate
24507c478bd9Sstevel@tonic-gate	From Thierry Laronde <thierry@cri74.org>:
24517c478bd9Sstevel@tonic-gate	* stage2/builtins.c (configfile_func): Added a prototype.
24527c478bd9Sstevel@tonic-gate	(bootp_func): If `--with-configfile' is given, set
24537c478bd9Sstevel@tonic-gate	WITH_CONFIGFILE to one, and call configfile_func with
24547c478bd9Sstevel@tonic-gate	CONFIG_FILE.
24557c478bd9Sstevel@tonic-gate
24567c478bd9Sstevel@tonic-gate2001-06-21  OKUJI Yoshinori  <okuji@gnu.org>
24577c478bd9Sstevel@tonic-gate
24587c478bd9Sstevel@tonic-gate	* docs/grub.texi: Update the location of the CVS repository
24597c478bd9Sstevel@tonic-gate	[/home/cvs -> /cvsroot/grub].
24607c478bd9Sstevel@tonic-gate	* README: Likewise.
24617c478bd9Sstevel@tonic-gate
24627c478bd9Sstevel@tonic-gate2001-06-19  OKUJI Yoshinori  <okuji@gnu.org>
24637c478bd9Sstevel@tonic-gate
24647c478bd9Sstevel@tonic-gate	* stage2/boot.c (load_image): If the image is a Multiboot ELF OS
24657c478bd9Sstevel@tonic-gate	image, get the physical entry address, when a loaded memory
24667c478bd9Sstevel@tonic-gate	segment contains it. And, set ENTRY_ADDR to it, after printing
24677c478bd9Sstevel@tonic-gate	out the virtual one. Suggested by Rogelio M. Serrano Jr.
24687c478bd9Sstevel@tonic-gate	<rogelio@victorio.com>.
24697c478bd9Sstevel@tonic-gate
24707c478bd9Sstevel@tonic-gate2001-05-30  OKUJI Yoshinori  <okuji@gnu.org>
24717c478bd9Sstevel@tonic-gate
24727c478bd9Sstevel@tonic-gate	* docs/grub.texi: Fix some typos. Reported by Florian Hatat
24737c478bd9Sstevel@tonic-gate	<mininet@wanadoo.fr>.
24747c478bd9Sstevel@tonic-gate
24757c478bd9Sstevel@tonic-gate2001-05-29  Pavel Roskin  <proski@gnu.org>
24767c478bd9Sstevel@tonic-gate
24777c478bd9Sstevel@tonic-gate	* configure.in (AC_OUTPUT): Remove debian/Makefile.
24787c478bd9Sstevel@tonic-gate
24797c478bd9Sstevel@tonic-gate2001-05-28  Gordon Matzigkeit  <gord@fig.org>
24807c478bd9Sstevel@tonic-gate
24817c478bd9Sstevel@tonic-gate	* Makefile.am (SUBDIRS): Remove reference to debian directory.
24827c478bd9Sstevel@tonic-gate	Packaging is no longer done by the GRUB team.
24837c478bd9Sstevel@tonic-gate
24847c478bd9Sstevel@tonic-gate2001-05-03  Gordon Matzigkeit  <gord@fig.org>
24857c478bd9Sstevel@tonic-gate
24867c478bd9Sstevel@tonic-gate	* stage1/stage1.S (nt_magic): Explicitly reserve space for the NT
24877c478bd9Sstevel@tonic-gate	magic number.
24887c478bd9Sstevel@tonic-gate
24897c478bd9Sstevel@tonic-gate2001-05-25  Klaus Reichl  <Klaus.Reichl@alcatel.at>
24907c478bd9Sstevel@tonic-gate
24917c478bd9Sstevel@tonic-gate	* stage2/stage2.c (print_entries_raw): New function.
24927c478bd9Sstevel@tonic-gate	(run_menu): Use it to implement menu & command-list if on dumb
24937c478bd9Sstevel@tonic-gate	terminals.
24947c478bd9Sstevel@tonic-gate	Changes are:
24957c478bd9Sstevel@tonic-gate	  Adjust FIRST_ENTRY only on non-dumb terminals.
24967c478bd9Sstevel@tonic-gate	  Setting of SHOW_MENU is honoured also on dumb
24977c478bd9Sstevel@tonic-gate	    terminals.
24987c478bd9Sstevel@tonic-gate	  Likely if SHOW_MENU is false, ESC brings her to the
24997c478bd9Sstevel@tonic-gate	    menu - not to the command-line as before.
25007c478bd9Sstevel@tonic-gate	  PRINT_BORDER, GOTOXY, SET_LINE_xxx are only called if
25017c478bd9Sstevel@tonic-gate	    not on dumb terminals.
25027c478bd9Sstevel@tonic-gate	  Show entry number when timeout is running if terminal is dumb.
25037c478bd9Sstevel@tonic-gate	  Prompt with entry number when waiting for keys.
25047c478bd9Sstevel@tonic-gate
25057c478bd9Sstevel@tonic-gate2001-05-14  Pavel Roskin  <proski@gnu.org>
25067c478bd9Sstevel@tonic-gate
25077c478bd9Sstevel@tonic-gate	* stage2/shared.h (ENTRY): Remove unnecessary `##'.
25087c478bd9Sstevel@tonic-gate
25097c478bd9Sstevel@tonic-gate2001-05-03  Jochen Hoenicke  <jochen@gnu.org>
25107c478bd9Sstevel@tonic-gate
25117c478bd9Sstevel@tonic-gate	* grub/asmstub.c (biosdisk): Work around a bug in linux's ez
25127c478bd9Sstevel@tonic-gate	remapping.  Problem reported by Ben Byer <bbyer@rice.edu>.
25137c478bd9Sstevel@tonic-gate
25147c478bd9Sstevel@tonic-gate2001-03-28  Gordon Matzigkeit  <gord@fig.org>
25157c478bd9Sstevel@tonic-gate
25167c478bd9Sstevel@tonic-gate	* stage2/boot.c (load_image): Don't cast entry_addr to an int, or
25177c478bd9Sstevel@tonic-gate	the top bit will be interpreted as the sign.
25187c478bd9Sstevel@tonic-gate
25197c478bd9Sstevel@tonic-gate2001-03-16  OKUJI Yoshinori  <okuji@gnu.org>
25207c478bd9Sstevel@tonic-gate
25217c478bd9Sstevel@tonic-gate	From Bodo Rueskamp <br@itchigo.com>:
25227c478bd9Sstevel@tonic-gate	* stage2/boot.c (load_initrd): Avoid the last 64kb for
25237c478bd9Sstevel@tonic-gate	Linux 2.2.x bug.
25247c478bd9Sstevel@tonic-gate
25257c478bd9Sstevel@tonic-gate2001-03-03  OKUJI Yoshinori  <okuji@gnu.org>
25267c478bd9Sstevel@tonic-gate
25277c478bd9Sstevel@tonic-gate	* docs/multiboot.texi (History): Written.
25287c478bd9Sstevel@tonic-gate
25297c478bd9Sstevel@tonic-gate2001-02-28  OKUJI Yoshinori  <okuji@gnu.org>
25307c478bd9Sstevel@tonic-gate
25317c478bd9Sstevel@tonic-gate	From HASEGAWA Tomoki <thasegawa@mta.biglobe.ne.jp>:
25327c478bd9Sstevel@tonic-gate	* lib/device.c (get_ide_disk_name) [__FreeBSD__]: Add support
25337c478bd9Sstevel@tonic-gate	for FreeBSD-4.0 or later. Use "/dev/rad0".
25347c478bd9Sstevel@tonic-gate	* util/grub-install.in (convert): Add code for FreeBSD
25357c478bd9Sstevel@tonic-gate	disklabels.
25367c478bd9Sstevel@tonic-gate
25377c478bd9Sstevel@tonic-gate2001-02-28  OKUJI Yoshinori  <okuji@gnu.org>
25387c478bd9Sstevel@tonic-gate
25397c478bd9Sstevel@tonic-gate	From Thierry Laronde <thierry@cri74.org>:
25407c478bd9Sstevel@tonic-gate	* stage2/stage2.c (cmain): If the default entry is wrong, set it
25417c478bd9Sstevel@tonic-gate	to FALLBACK_ENTRY if FALLBACK_ENTRY is valid, otherwise set it
25427c478bd9Sstevel@tonic-gate	to zero. Suggested by Nicolas Boos <nicolas.boos@wanadoo.fr>.
25437c478bd9Sstevel@tonic-gate
25447c478bd9Sstevel@tonic-gate2001-02-28  OKUJI Yoshinori  <okuji@gnu.org>
25457c478bd9Sstevel@tonic-gate
25467c478bd9Sstevel@tonic-gate	* acconfig.h (AUTO_LINUX_MEM_OPT): New entry.
25477c478bd9Sstevel@tonic-gate	* configure.in (--disable-auto-linux-mem-opt): New option.
25487c478bd9Sstevel@tonic-gate	* stage2/builtins.c (kernel_func) [!AUTO_LINUX_MEM_OPT]: Add
25497c478bd9Sstevel@tonic-gate	KERNEL_LOAD_NO_MEM_OPTION into LOAD_FLAGS, whether the user
25507c478bd9Sstevel@tonic-gate	specifies --no-mem-option or not.
25517c478bd9Sstevel@tonic-gate
25527c478bd9Sstevel@tonic-gate2001-02-27  OKUJI Yoshinori  <okuji@gnu.org>
25537c478bd9Sstevel@tonic-gate
25547c478bd9Sstevel@tonic-gate	* stage2/builtins.c (chainloader_func): Don't check if the
25557c478bd9Sstevel@tonic-gate	current partition is FAT, but check if it has a FAT partition
25567c478bd9Sstevel@tonic-gate	type and the BPB has a system id starting with "MSWIN".
25577c478bd9Sstevel@tonic-gate
25587c478bd9Sstevel@tonic-gate2001-02-27  OKUJI Yoshinori  <okuji@gnu.org>
25597c478bd9Sstevel@tonic-gate
25607c478bd9Sstevel@tonic-gate	Added hercules support based on a patch by Frank Mehnert
25617c478bd9Sstevel@tonic-gate	<fm3@os.inf.tu-dresden.de>. I translated his assembly code into
25627c478bd9Sstevel@tonic-gate	C, and separated hercules from the normal console.
25637c478bd9Sstevel@tonic-gate
25647c478bd9Sstevel@tonic-gate	* configure.in (--disable-hercules): New option.
25657c478bd9Sstevel@tonic-gate
25667c478bd9Sstevel@tonic-gate	* grub/asmstub.c: Include <hercules.h>.
25677c478bd9Sstevel@tonic-gate	(set_attrib): Renamed to ...
25687c478bd9Sstevel@tonic-gate	(console_set_attrib): ... this.
25697c478bd9Sstevel@tonic-gate	(herc_cls): New function.
25707c478bd9Sstevel@tonic-gate	(herc_getxy): Likewise.
25717c478bd9Sstevel@tonic-gate	(herc_gotoxy): Likewise.
25727c478bd9Sstevel@tonic-gate	(herc_putchar): Likewise.
25737c478bd9Sstevel@tonic-gate	(herc_set_attrib): Likewise.
25747c478bd9Sstevel@tonic-gate
25757c478bd9Sstevel@tonic-gate	* stage2/Makefile.am (noinst_HEADERS): Added hercules.h.
25767c478bd9Sstevel@tonic-gate	(libgrub_a_CFLAGS): Added -DSUPPORT_HERCULES=1.
25777c478bd9Sstevel@tonic-gate	(HERCULES_FLAGS): New variable.
25787c478bd9Sstevel@tonic-gate	(STAGE2_COMPILE): Added $(HERCULES_FLAGS).
25797c478bd9Sstevel@tonic-gate	(pre_stage2_exec_SOURCES): Added hercules.c.
25807c478bd9Sstevel@tonic-gate	* stage2/asm.S [!STAGE1_5] (set_attrib) Renamed to ...
25817c478bd9Sstevel@tonic-gate	[!STAGE1_5] (console_set_attrib): ... this.
25827c478bd9Sstevel@tonic-gate	* stage2/builtins.c [SUPPORT_HERCULES] (terminal_func): Added
25837c478bd9Sstevel@tonic-gate	hercules support.
25847c478bd9Sstevel@tonic-gate	(builtin_table) [SUPPORT_HERCULES]: Added a pointer to
25857c478bd9Sstevel@tonic-gate	BUILTIN_TERMINAL.
25867c478bd9Sstevel@tonic-gate	* stage2/char_io.c [SUPPORT_HERCULES]: Include <hercules.h>.
25877c478bd9Sstevel@tonic-gate	[!STAGE1_5] (get_cmdline) [SUPPORT_HERCULES]: Added hercules
25887c478bd9Sstevel@tonic-gate	support.
25897c478bd9Sstevel@tonic-gate	[!STAGE1_5] (getkey) [SUPPORT_HERCULES]: Likewise.
25907c478bd9Sstevel@tonic-gate	[!STAGE1_5] (checkkey) [SUPPORT_HERCULES]: Likewise.
25917c478bd9Sstevel@tonic-gate	(grub_putchar) [SUPPORT_HERCULES]: Likewise.
25927c478bd9Sstevel@tonic-gate	[!STAGE1_5] (gotoxy) [SUPPORT_HERCULES]: Likewise.
25937c478bd9Sstevel@tonic-gate	[!STAGE1_5] (getxy) [SUPPORT_HERCULES]: Likewise.
25947c478bd9Sstevel@tonic-gate	[!STAGE1_5] (cls) [SUPPORT_HERCULES]: Likewise.
25957c478bd9Sstevel@tonic-gate	(set_attrib): New function.
25967c478bd9Sstevel@tonic-gate	* stage2/shared.h (console_set_attrib): Declared.
25977c478bd9Sstevel@tonic-gate	(TERMINAL_HERCULES): New macro.
25987c478bd9Sstevel@tonic-gate	* stage2/stage2.c (run_menu) [SUPPORT_HERCULES]: Added hercules
25997c478bd9Sstevel@tonic-gate	support.
26007c478bd9Sstevel@tonic-gate	* stage2/hercules.h: New file.
26017c478bd9Sstevel@tonic-gate	* stage2/hercules.c: Likewise.
26027c478bd9Sstevel@tonic-gate
26037c478bd9Sstevel@tonic-gate2001-02-17  OKUJI Yoshinori  <okuji@gnu.org>
26047c478bd9Sstevel@tonic-gate
26057c478bd9Sstevel@tonic-gate	From "Treutwein; Bernhard"
26067c478bd9Sstevel@tonic-gate	<Bernhard.Treutwein@Verwaltung.Uni-Muenchen.DE>:
26077c478bd9Sstevel@tonic-gate	* docs/grub.texi (DOS/Windows): Improved the readability.
26087c478bd9Sstevel@tonic-gate
26097c478bd9Sstevel@tonic-gate2001-02-11  OKUJI Yoshinori  <okuji@gnu.org>
26107c478bd9Sstevel@tonic-gate
26117c478bd9Sstevel@tonic-gate	* docs/grub.texi (Command-line and menu commands): Renamed to ...
26127c478bd9Sstevel@tonic-gate	(General commands): ... this.
26137c478bd9Sstevel@tonic-gate
26147c478bd9Sstevel@tonic-gate2001-02-08  OKUJI Yoshinori  <okuji@gnu.org>
26157c478bd9Sstevel@tonic-gate
26167c478bd9Sstevel@tonic-gate	* stage2/asm.S [STAGE1_5] (chain_stage2): Save the second sector
26177c478bd9Sstevel@tonic-gate	of stage2 in %ecx temporarily, and set %ebp to %ecx after
26187c478bd9Sstevel@tonic-gate	switching to protected mode. I forgot that %ebp is broken by
26197c478bd9Sstevel@tonic-gate	rot_to_real. Reported by Torvald Riegel
26207c478bd9Sstevel@tonic-gate	<tr16@inf.tu-dresden.de>.
26217c478bd9Sstevel@tonic-gate
26227c478bd9Sstevel@tonic-gate2001-02-08  OKUJI Yoshinori  <okuji@gnu.org>
26237c478bd9Sstevel@tonic-gate
26247c478bd9Sstevel@tonic-gate	* docs/grub-new.texi: Moved to ...
26257c478bd9Sstevel@tonic-gate	* docs/grub.texi: ... here. And, include internals.texi.
26267c478bd9Sstevel@tonic-gate	* docs/internals.texi: New file.
26277c478bd9Sstevel@tonic-gate	* docs/prog-ref.texi: Removed.
26287c478bd9Sstevel@tonic-gate	* docs/user-ref.texi: Likewise.
26297c478bd9Sstevel@tonic-gate	* docs/tutorial.texi: Likewise.
26307c478bd9Sstevel@tonic-gate	* docs/appendices.texi: Likewise.
26317c478bd9Sstevel@tonic-gate	* docs/Makefile.am (grub_TEXINFOS): Removed prog-ref.texi,
26327c478bd9Sstevel@tonic-gate	user-ref.texi, tutorial.texi, and appendices.texi. Added
26337c478bd9Sstevel@tonic-gate	internals.texi.
26347c478bd9Sstevel@tonic-gate
26357c478bd9Sstevel@tonic-gate2001-02-03  OKUJI Yoshinori  <okuji@gnu.org>
26367c478bd9Sstevel@tonic-gate
26377c478bd9Sstevel@tonic-gate	From Erik Schoenfelder <schoenfr@gaertner.de>:
26387c478bd9Sstevel@tonic-gate	* stage2/shared.h (LINUX_INITRD_MAX_ADDRESS): Changed from
26397c478bd9Sstevel@tonic-gate	0x3C000000 to 0x38000000.
26407c478bd9Sstevel@tonic-gate
26417c478bd9Sstevel@tonic-gate2001-02-03  OKUJI Yoshinori  <okuji@gnu.org>
26427c478bd9Sstevel@tonic-gate
26437c478bd9Sstevel@tonic-gate	* stage2/builtins.c (savedefault_func)
26447c478bd9Sstevel@tonic-gate	[!SUPPORT_DISKLESS && !GRUB_UTIL]: Check if the version
26457c478bd9Sstevel@tonic-gate	contained in the buffer matches to current one as well.
26467c478bd9Sstevel@tonic-gate
26477c478bd9Sstevel@tonic-gate2001-02-02  OKUJI Yoshinori  <okuji@gnu.org>
26487c478bd9Sstevel@tonic-gate
26497c478bd9Sstevel@tonic-gate	* stage2/builtins.c (savedefault_func)
26507c478bd9Sstevel@tonic-gate	[!SUPPORT_DISKLESS && !GRUB_UTIL]: Check if the stage2 id is
26517c478bd9Sstevel@tonic-gate	STAGE2_ID_STAGE2. Suggested by Jochen Hoenicke.
26527c478bd9Sstevel@tonic-gate
26537c478bd9Sstevel@tonic-gate	* stage2/stage2.c (cmain): If DEFAULT_ENTRY is out of entries,
26547c478bd9Sstevel@tonic-gate	reset DEFAULT_ENTRY to zero.
26557c478bd9Sstevel@tonic-gate
26567c478bd9Sstevel@tonic-gate2001-02-02  OKUJI Yoshinori  <okuji@gnu.org>
26577c478bd9Sstevel@tonic-gate
26587c478bd9Sstevel@tonic-gate	Make savedefault workable even with Stage 1.5. Reported by
26597c478bd9Sstevel@tonic-gate	Thierry Laronde <thierry@cri74.org>.
26607c478bd9Sstevel@tonic-gate
26617c478bd9Sstevel@tonic-gate	* grub/asmstub.c (chain_stage2): Added an additional argument,
26627c478bd9Sstevel@tonic-gate	SECOND_SECTOR.
26637c478bd9Sstevel@tonic-gate	* stage2/asm.S [STAGE1_5] (chain_stage2): Set %ebp to
26647c478bd9Sstevel@tonic-gate	SECOND_SECTOR.
26657c478bd9Sstevel@tonic-gate	* stage2/disk_io.c [STAGE1_5] (disk_read_hook): Defined.
26667c478bd9Sstevel@tonic-gate	[STAGE1_5] (disk_read_func): Likewise.
26677c478bd9Sstevel@tonic-gate	(rawread) [STAGE1_5]: Handle DISK_READ_FUNC.
26687c478bd9Sstevel@tonic-gate	(grub_read) [STAGE1_5]: Likewise.
26697c478bd9Sstevel@tonic-gate	* stage2/fsys_ext2fs.c (ext2fs_read) [STAGE1_5]: Likewise.
26707c478bd9Sstevel@tonic-gate	* stage2/fsys_fat.c (fat_read) [STAGE1_5]: Likewise.
26717c478bd9Sstevel@tonic-gate	* stage2/fsys_ffs.c (ffs_read) [STAGE1_5]: Likewise.
26727c478bd9Sstevel@tonic-gate	* stage2/fsys_minix.c (minix_read) [STAGE1_5]: Likewise.
26737c478bd9Sstevel@tonic-gate	* stage2/fsys_reiserfs.c (reiserfs_read) [STAGE1_5]: Likewise.
26747c478bd9Sstevel@tonic-gate
26757c478bd9Sstevel@tonic-gate2001-02-02  OKUJI Yoshinori  <okuji@gnu.org>
26767c478bd9Sstevel@tonic-gate
26777c478bd9Sstevel@tonic-gate	* netboot/config.c [GRUB && INCLUDE_PCI] (pci_dispatch_table):
26787c478bd9Sstevel@tonic-gate	New structure.
26797c478bd9Sstevel@tonic-gate	[GRUB && INCLUDE_PCI] (PCI_NIC): New variable.
26807c478bd9Sstevel@tonic-gate	(eth_probe) [GRUB && INCLUDE_PCI]: If a PCI NIC candidate is
26817c478bd9Sstevel@tonic-gate	present, probe it first.
26827c478bd9Sstevel@tonic-gate
26837c478bd9Sstevel@tonic-gate2001-01-27  OKUJI Yoshinori  <okuji@gnu.org>
26847c478bd9Sstevel@tonic-gate
26857c478bd9Sstevel@tonic-gate	From Danilo Godec <danci@agenda.si>:
26867c478bd9Sstevel@tonic-gate	* stage2/pc_slice.h (PC_SLICE_TYPE_LINUX_RAID): New macro.
26877c478bd9Sstevel@tonic-gate	* stage2/fsys_ext2fs.c (ext2fs_mount): Add a check for
26887c478bd9Sstevel@tonic-gate	PC_SLICE_LINUX_RAID.
26897c478bd9Sstevel@tonic-gate
26907c478bd9Sstevel@tonic-gate2001-01-27  OKUJI Yoshinori  <okuji@gnu.org>
26917c478bd9Sstevel@tonic-gate
26927c478bd9Sstevel@tonic-gate	From Bernhard Treutwein
26937c478bd9Sstevel@tonic-gate	<Bernhard.Treutwein@Verwaltung.Uni-Muenchen.DE>:
26947c478bd9Sstevel@tonic-gate	* docs/grub-new.texi (DOS/Windows): Made more readable.
26957c478bd9Sstevel@tonic-gate
26967c478bd9Sstevel@tonic-gate2001-01-27  OKUJI Yoshinori  <okuji@gnu.org>
26977c478bd9Sstevel@tonic-gate
26987c478bd9Sstevel@tonic-gate	* docs/multiboot.texi: Start reorganizing Multiboot
26997c478bd9Sstevel@tonic-gate	Specification.
27007c478bd9Sstevel@tonic-gate
27017c478bd9Sstevel@tonic-gate2001-01-15  OKUJI Yoshinori  <okuji@gnu.org>
27027c478bd9Sstevel@tonic-gate
27037c478bd9Sstevel@tonic-gate	From Thierry Laronde <thierry.laronde@polynum.com>:
27047c478bd9Sstevel@tonic-gate	* docs/user-ref.texi (Command-line and menu commands): Update
27057c478bd9Sstevel@tonic-gate	the description about setkey.
27067c478bd9Sstevel@tonic-gate	* stage2/builtins.c (setkey_func): When checking if TO_KEY and
27077c478bd9Sstevel@tonic-gate	FROM_KEY are specified, see *TO_KEY and *FROM_KEY instead of
27087c478bd9Sstevel@tonic-gate	TO_KEY and FROM_KEY, respectively.
27097c478bd9Sstevel@tonic-gate
27107c478bd9Sstevel@tonic-gate2001-01-13  OKUJI Yoshinori  <okuji@gnu.org>
27117c478bd9Sstevel@tonic-gate
27127c478bd9Sstevel@tonic-gate	From Thierry Laronde <thierry.laronde@polynum.com>:
27137c478bd9Sstevel@tonic-gate	* util/grub-md5-crypt.in (prefix): New variable.
27147c478bd9Sstevel@tonic-gate	(exec_prefix): Likewise.
27157c478bd9Sstevel@tonic-gate	(sbindir): Likewise.
27167c478bd9Sstevel@tonic-gate
27177c478bd9Sstevel@tonic-gate2001-01-12  OKUJI Yoshinori  <okuji@gnu.org>
27187c478bd9Sstevel@tonic-gate
27197c478bd9Sstevel@tonic-gate	* docs/multiboot.h [__ELF__] (MULTIBOOT_HEADER_FLAGS): Defined
27207c478bd9Sstevel@tonic-gate	as 0x00000003 instead of 0x00010003.
27217c478bd9Sstevel@tonic-gate	* docs/boot.S (multiboot_header) [__ELF__]: Don't define a.out
27227c478bd9Sstevel@tonic-gate	kludge information.
27237c478bd9Sstevel@tonic-gate
27247c478bd9Sstevel@tonic-gate	* docs/Makefile.am (EXTRA_PROGRAMS): New variable.
27257c478bd9Sstevel@tonic-gate	[BUILD_EXAMPLE_KERNEL] (noinst_DATA): Removed.
27267c478bd9Sstevel@tonic-gate	[BUILD_EXAMPLE_KERNEL] (noinst_PROGRAMS): Changed to kernel.
27277c478bd9Sstevel@tonic-gate	[BUILD_EXAMPLE_KERNEL] (kernel_exec_SOURCES): Renamed to ...
27287c478bd9Sstevel@tonic-gate	[BUILD_EXAMPLE_KERNEL] (kernel_SOURCES): ... this.
27297c478bd9Sstevel@tonic-gate	[BUILD_EXAMPLE_KERNEL] (kernel_exec_CFLAGS): Renamed to ...
27307c478bd9Sstevel@tonic-gate	[BUILD_EXAMPLE_KERNEL] (kernel_CFLAGS): ... this.
27317c478bd9Sstevel@tonic-gate	[BUILD_EXAMPLE_KERNEL] (kernel_exec_LDFLAGS): Renamed to ...
27327c478bd9Sstevel@tonic-gate	[BUILD_EXAMPLE_KERNEL] (kernel_LDFLAGS): ... this.
27337c478bd9Sstevel@tonic-gate	[BUILD_EXAMPLE_KERNEL] (kernel): Removed.
27347c478bd9Sstevel@tonic-gate	[BUILD_EXAMPLE_KERNEL] (boot.o): New dependency.
27357c478bd9Sstevel@tonic-gate	(CLEANFILES): New variable.
27367c478bd9Sstevel@tonic-gate
27377c478bd9Sstevel@tonic-gate2001-01-11  OKUJI Yoshinori  <okuji@gnu.org>
27387c478bd9Sstevel@tonic-gate
27397c478bd9Sstevel@tonic-gate	* stage2/builtins.c [SUPPORT_NETBOOT] (ifconfig_func): Always
27407c478bd9Sstevel@tonic-gate	print current network configuration.
27417c478bd9Sstevel@tonic-gate	[SUPPORT_NETBOOT] (tftpserver_func): Use ifconfig instead of
27427c478bd9Sstevel@tonic-gate	arp_server_override.
27437c478bd9Sstevel@tonic-gate	* netboot/main.c (arp_server_override): Removed.
27447c478bd9Sstevel@tonic-gate	* netboot/etherboot.h (arp_server_override): Likewise.
27457c478bd9Sstevel@tonic-gate
27467c478bd9Sstevel@tonic-gate2001-01-11  Eugene Doudine  <dudin@np.nk.nornik.ru>
27477c478bd9Sstevel@tonic-gate
27487c478bd9Sstevel@tonic-gate	* stage2/builtins.c [SUPPORT_NETBOOT] (ifconfig_func): New
27497c478bd9Sstevel@tonic-gate	function to configure network interface from command line.
27507c478bd9Sstevel@tonic-gate	[SUPPORT_NETBOOT] (builtin_ifconfig): New variable.
27517c478bd9Sstevel@tonic-gate	[SUPPORT_NETBOOT] (builtin_table): Added a pointer to
27527c478bd9Sstevel@tonic-gate	BUILTIN_IFCONFIG.
27537c478bd9Sstevel@tonic-gate	* netboot/main.c (ifconfig): New function.
27547c478bd9Sstevel@tonic-gate	* netboot/etherboot.h (ifconfig): Added the prototype.
27557c478bd9Sstevel@tonic-gate
27567c478bd9Sstevel@tonic-gate2001-01-11  OKUJI Yoshinori  <okuji@gnu.org>
27577c478bd9Sstevel@tonic-gate
27587c478bd9Sstevel@tonic-gate	* docs/Makefile.am [BUILD_EXAMPLE_KERNEL] (noinst_DATA): New
27597c478bd9Sstevel@tonic-gate	variable.
27607c478bd9Sstevel@tonic-gate	[BUILD_EXAMPLE_KERNEL] (noinst_PROGRAMS): Likewise.
27617c478bd9Sstevel@tonic-gate	[BUILD_EXAMPLE_KERNEL] (kernel_exec_SOURCES): Likewise.
27627c478bd9Sstevel@tonic-gate	[BUILD_EXAMPLE_KERNEL] (kernel_exec_CFLAGS): Likewise.
27637c478bd9Sstevel@tonic-gate	[BUILD_EXAMPLE_KERNEL] (kernel_exec_LDFLAGS): Likewise.
27647c478bd9Sstevel@tonic-gate	[BUILD_EXAMPLE_KERNEL] (kernel): New target.
27657c478bd9Sstevel@tonic-gate	* configure.in (--enable-example-kernel): New option.
27667c478bd9Sstevel@tonic-gate
27677c478bd9Sstevel@tonic-gate	* docs/kernel.c (cmain): Cast unsigned long variables to
27687c478bd9Sstevel@tonic-gate	unsigned explicitly, to suppress GCC warnings.
27697c478bd9Sstevel@tonic-gate
27707c478bd9Sstevel@tonic-gate2001-01-08  OKUJI Yoshinori  <okuji@gnu.org>
27717c478bd9Sstevel@tonic-gate
27727c478bd9Sstevel@tonic-gate	* stage2/shared.h (BOOTSEC_BPB_HIDDEN_SECTORS): New macro.
27737c478bd9Sstevel@tonic-gate
27747c478bd9Sstevel@tonic-gate	* stage2/builtins.c (chainloader_func): If CURRENT_PARTITION is
27757c478bd9Sstevel@tonic-gate	FAT, set the hidden sectors field of the BPB to PART_START, to
27767c478bd9Sstevel@tonic-gate	avoid a Windows bug which affects only when Windows is booted
27777c478bd9Sstevel@tonic-gate	from a logical partition. And, clear ERRNUM after testing if a
27787c478bd9Sstevel@tonic-gate	partition is FAT, because open_partition or fat_mount may set
27797c478bd9Sstevel@tonic-gate	ERRNUM. Reported by Ingo Korb <ingo@akana.de>.
27807c478bd9Sstevel@tonic-gate
27817c478bd9Sstevel@tonic-gate2001-01-07  OKUJI Yoshinori  <okuji@gnu.org>
27827c478bd9Sstevel@tonic-gate
27837c478bd9Sstevel@tonic-gate	* stage2/builtins.c (boot_func): In the chain-loading mode,
27847c478bd9Sstevel@tonic-gate	clear the active flag of each of the loaded partition entries,
27857c478bd9Sstevel@tonic-gate	and then set the active flag of the booted partition image.
27867c478bd9Sstevel@tonic-gate
27877c478bd9Sstevel@tonic-gate2001-01-04  Jochen Hoenicke  <jochen@gnu.org>
27887c478bd9Sstevel@tonic-gate
27897c478bd9Sstevel@tonic-gate	* stage2/builtins.c (embed_func): Call open_partition() even for
27907c478bd9Sstevel@tonic-gate 	MBR, so that part_start is correct.  This fixes a bug reported by
27917c478bd9Sstevel@tonic-gate 	Matthias Granberry <matthias@slurpee.org>.
27927c478bd9Sstevel@tonic-gate
27937c478bd9Sstevel@tonic-gate2000-12-22  OKUJI Yoshinori  <okuji@gnu.org>
27947c478bd9Sstevel@tonic-gate
27957c478bd9Sstevel@tonic-gate	* stage2/disk_io.c (make_saved_active): Change the variable name
27967c478bd9Sstevel@tonic-gate	``MBR'' to lower case.
27977c478bd9Sstevel@tonic-gate	(set_partition_hidden_flag): Likewise.
27987c478bd9Sstevel@tonic-gate
27997c478bd9Sstevel@tonic-gate2000-12-20  Jochen Hoenicke  <jochen@gnu.org>
28007c478bd9Sstevel@tonic-gate
28017c478bd9Sstevel@tonic-gate	From Cedric Ware <ware@com.enst.fr>:
28027c478bd9Sstevel@tonic-gate	* stage2/fsys_ext2.c (ext2fs_mount): Detect ext2 partitions in
28037c478bd9Sstevel@tonic-gate	a OpenBSD/NetBSD FS_EXT2FS slice.
28047c478bd9Sstevel@tonic-gate	* stage2/pc_slice.h (FS_ADOS): New Macro from OpenBSD/NetBSD.
28057c478bd9Sstevel@tonic-gate	(FS_HFS): Likewise.
28067c478bd9Sstevel@tonic-gate	(FS_FILECORE): Likewise.
28077c478bd9Sstevel@tonic-gate	(FS_EXT2FS): Likewise.
28087c478bd9Sstevel@tonic-gate
28097c478bd9Sstevel@tonic-gate2000-12-17  Jochen Hoenicke  <jochen@gnu.org>
28107c478bd9Sstevel@tonic-gate
28117c478bd9Sstevel@tonic-gate	* stage2/disk_io.c (rawread): Check if there is a EZD partition
28127c478bd9Sstevel@tonic-gate	and remap sector 0 to sector 1 like EZ-BIOS does.
28137c478bd9Sstevel@tonic-gate	(rawwrite): New function to write to disk.  Also does EZD
28147c478bd9Sstevel@tonic-gate	remapping.
28157c478bd9Sstevel@tonic-gate	(devwrite): New function.  Does the special remapping to
28167c478bd9Sstevel@tonic-gate	partitions needed for linux.  This contains the code that was
28177c478bd9Sstevel@tonic-gate	previously duplicated in embed_func and install_func at several
28187c478bd9Sstevel@tonic-gate	places.
28197c478bd9Sstevel@tonic-gate	(make_saved_active): Use rawwrite. Don't use SCRATCHSEG, as it is
28207c478bd9Sstevel@tonic-gate	needed by devwrite.
28217c478bd9Sstevel@tonic-gate	(set_partition_hidden_flag): Likewise.
28227c478bd9Sstevel@tonic-gate	* stage2/disk_io.h (rawwrite): New function.
28237c478bd9Sstevel@tonic-gate	(devwrite): Likewise.
28247c478bd9Sstevel@tonic-gate	* stage2/pc_slice.h (PC_SLICE_TYPE_EZD): New macro.
28257c478bd9Sstevel@tonic-gate	* stage2/builtins.c (embed_info): New variable to store the
28267c478bd9Sstevel@tonic-gate	position of the embedded stage1_5 for setup_func.
28277c478bd9Sstevel@tonic-gate	(embed_func): Don't embed after the MBR if an EZ-BIOS is detected
28287c478bd9Sstevel@tonic-gate	there.  Use the new devwrite method.  If embedding is successful
28297c478bd9Sstevel@tonic-gate	store position in embed_info.
28307c478bd9Sstevel@tonic-gate	(install_func): Use devwrite.  Don't use SCRATCHSEG.
28317c478bd9Sstevel@tonic-gate	(partnew_func): Use rawwrite.  Don't use SCRATCHSEG.
28327c478bd9Sstevel@tonic-gate	(parttype_func): Likewise.
28337c478bd9Sstevel@tonic-gate	(savedefault_func): Likewise.
28347c478bd9Sstevel@tonic-gate	(setup_func): New nested function embed_stage1_5.  Stage1_5 is now
28357c478bd9Sstevel@tonic-gate	also be embedded into filesystems which supports that.
28367c478bd9Sstevel@tonic-gate
28377c478bd9Sstevel@tonic-gate2000-12-17  OKUJI Yoshinori  <okuji@gnu.org>
28387c478bd9Sstevel@tonic-gate
28397c478bd9Sstevel@tonic-gate	* stage2/builtins.c (chainloader_func): Set ERRNUM to
28407c478bd9Sstevel@tonic-gate	ERR_EXEC_FORMAT, when ERRNUM is ERR_NONE, even if grub_read
28417c478bd9Sstevel@tonic-gate	fails in reading one sector.
28427c478bd9Sstevel@tonic-gate
28437c478bd9Sstevel@tonic-gate2000-12-14  OKUJI Yoshinori  <okuji@gnu.org>
28447c478bd9Sstevel@tonic-gate
28457c478bd9Sstevel@tonic-gate	* docs/prog-ref.texi (Partition types): Rewrite the footnotes.
28467c478bd9Sstevel@tonic-gate	Suggested by Ralf.Medow@t-online.de (Ralf Medow).
28477c478bd9Sstevel@tonic-gate
28487c478bd9Sstevel@tonic-gate2000-12-14  OKUJI Yoshinori  <okuji@gnu.org>
28497c478bd9Sstevel@tonic-gate
28507c478bd9Sstevel@tonic-gate	From Erik Schoenfelder <schoenfr@gaertner.de>:
28517c478bd9Sstevel@tonic-gate	* util/grub-install.in (convert): Revised the fix for floppy
28527c478bd9Sstevel@tonic-gate	device handling.
28537c478bd9Sstevel@tonic-gate
28547c478bd9Sstevel@tonic-gate2000-12-14  OKUJI Yoshinori  <okuji@gnu.org>
28557c478bd9Sstevel@tonic-gate
28567c478bd9Sstevel@tonic-gate	From HORIKAWA Kazunori <kaz-hori@tkd.att.ne.jp>:
28577c478bd9Sstevel@tonic-gate	* stage2/bios.c (get_diskinfo): Append 16 bytes dummy data to
28587c478bd9Sstevel@tonic-gate	DRP, because the BIOS of Thinkpad X20 write a garbage beyond the
28597c478bd9Sstevel@tonic-gate	size of the structure.
28607c478bd9Sstevel@tonic-gate
28617c478bd9Sstevel@tonic-gate2000-12-09  Jochen Hoenicke  <jochen@gnu.org>
28627c478bd9Sstevel@tonic-gate
28637c478bd9Sstevel@tonic-gate	* stage2/disk_io.c (next_partition): Mask out bsd partition sub
28647c478bd9Sstevel@tonic-gate	type when checking if last partition was a bsd partition.
28657c478bd9Sstevel@tonic-gate	Reported by Heikki Vatiainen <hessu@cs.tut.fi>.
28667c478bd9Sstevel@tonic-gate
28677c478bd9Sstevel@tonic-gate2000-12-09  OKUJI Yoshinori  <okuji@gnu.org>
28687c478bd9Sstevel@tonic-gate
28697c478bd9Sstevel@tonic-gate	From Leendert Meyer <leen.meyer@home.nl>:
28707c478bd9Sstevel@tonic-gate	* util/grub-install.in (convert): If a floppy device is
28717c478bd9Sstevel@tonic-gate	specified, remove everything from $tmp_part.
28727c478bd9Sstevel@tonic-gate
28737c478bd9Sstevel@tonic-gate2000-12-09  OKUJI Yoshinori  <okuji@gnu.org>
28747c478bd9Sstevel@tonic-gate
28757c478bd9Sstevel@tonic-gate	* lib/device.c [__linux__] (write_to_partition): Use strcpy
28767c478bd9Sstevel@tonic-gate	instead of strcat, to overwrite "/disc". Reported by Thiago
28777c478bd9Sstevel@tonic-gate	Macieira <thiagom@mail.com>.
28787c478bd9Sstevel@tonic-gate
28797c478bd9Sstevel@tonic-gate2000-12-05  Jochen Hoenicke  <jochen@gnu.org>
28807c478bd9Sstevel@tonic-gate
28817c478bd9Sstevel@tonic-gate	* stage2/fsys_minix.c (minix_mount): Corrected the check for
28827c478bd9Sstevel@tonic-gate	IS_PC_SLICE_TYPE_MINIX; minix was only working if slice type was
28837c478bd9Sstevel@tonic-gate	wrong! Reported by Ralf Medow <ralf.medow@t-online.de>.
28847c478bd9Sstevel@tonic-gate
28857c478bd9Sstevel@tonic-gate2000-11-27  Jochen Hoenicke  <jochen@gnu.org>
28867c478bd9Sstevel@tonic-gate
28877c478bd9Sstevel@tonic-gate	* stage2/fsys_reiserfs.c: Handle items with old version key on
28887c478bd9Sstevel@tonic-gate	new version reiserfs partition.
28897c478bd9Sstevel@tonic-gate	(K_OFFSET): Removed.
28907c478bd9Sstevel@tonic-gate	(IH_KEY_OFFSET): New Macro, which checks item head version.
28917c478bd9Sstevel@tonic-gate	(IH_KEY_ISOFFSET): Likewise.
28927c478bd9Sstevel@tonic-gate	(reiserfs_read): Use new macros.
28937c478bd9Sstevel@tonic-gate	(reiserfs_dir): Fixed version check for >4GB stat entries.
28947c478bd9Sstevel@tonic-gate
28957c478bd9Sstevel@tonic-gate2000-11-27  OKUJI Yoshinori  <okuji@gnu.org>
28967c478bd9Sstevel@tonic-gate
28977c478bd9Sstevel@tonic-gate	* stage2/common.c (init_bios_info) [!STAGE1_5]: Don't call
28987c478bd9Sstevel@tonic-gate	track_int13, because the current implementation hangs up in some
28997c478bd9Sstevel@tonic-gate	environments.
29007c478bd9Sstevel@tonic-gate
29017c478bd9Sstevel@tonic-gate2000-11-27  OKUJI Yoshinori  <okuji@gnu.org>
29027c478bd9Sstevel@tonic-gate
29037c478bd9Sstevel@tonic-gate	* grub/asmstub.c (serial_init) [!O_SYNC]: Don't specify O_SYNC
29047c478bd9Sstevel@tonic-gate	to open SERIAL_DEVICE.
29057c478bd9Sstevel@tonic-gate	(serial_init) [O_FSYNC]: Specify O_FSYNC to open SERIAL_DEVICE.
29067c478bd9Sstevel@tonic-gate	Reported by Farid Hajji <farid.hajji@ob.kamp.net>.
29077c478bd9Sstevel@tonic-gate
29087c478bd9Sstevel@tonic-gate2000-11-22  OKUJI Yoshinori  <okuji@gnu.org>
29097c478bd9Sstevel@tonic-gate
29107c478bd9Sstevel@tonic-gate	From Vesa Jaaskelainen <jaaskela@tietomyrsky.fi>:
29117c478bd9Sstevel@tonic-gate	* stage2/builtins.c (testvbe_func): Don't set the bit 14 of a
29127c478bd9Sstevel@tonic-gate	VBE mode number explicitly when calling get_vbe_mode_info.
29137c478bd9Sstevel@tonic-gate	(vbeprobe_func): Likewise.
29147c478bd9Sstevel@tonic-gate
29157c478bd9Sstevel@tonic-gate2000-11-22  OKUJI Yoshinori  <okuji@gnu.org>
29167c478bd9Sstevel@tonic-gate
29177c478bd9Sstevel@tonic-gate	The code for the "INT 13H tracking technique" is somewhat
29187c478bd9Sstevel@tonic-gate	simplified.
29197c478bd9Sstevel@tonic-gate
29207c478bd9Sstevel@tonic-gate	* stage2/asm.S [!STAGE1_5] (track_int13): Don't replace an int13
29217c478bd9Sstevel@tonic-gate	handler with set_tf_int13_handler. Instead, track_int13 itself
29227c478bd9Sstevel@tonic-gate	emulates an int13 interrupt.
29237c478bd9Sstevel@tonic-gate	[!STAGE1_5] (set_tf_int13_handler): Removed.
29247c478bd9Sstevel@tonic-gate	[!STAGE1_5] (int1_handler): Use movzbw instead of xorb and movb.
29257c478bd9Sstevel@tonic-gate
29267c478bd9Sstevel@tonic-gate2000-11-15  OKUJI Yoshinori  <okuji@gnu.org>
29277c478bd9Sstevel@tonic-gate
29287c478bd9Sstevel@tonic-gate	* acconfig.h (PRESET_MENU_STRING): New entry.
29297c478bd9Sstevel@tonic-gate	* acinclude.m4 (grub_DEFINE_FILE): New M4 macro.
29307c478bd9Sstevel@tonic-gate	* configure.in (--enable-preset-menu): New option.
29317c478bd9Sstevel@tonic-gate	* stage2/stage2.c [PRESET_MENU_STRING] (preset_menu): New
29327c478bd9Sstevel@tonic-gate	variable.
29337c478bd9Sstevel@tonic-gate	[PRESET_MENU_STRING] (preset_menu_offset): Likewise.
29347c478bd9Sstevel@tonic-gate	[PRESET_MENU_STRING] (open_preset_menu): New function.
29357c478bd9Sstevel@tonic-gate	[PRESET_MENU_STRING] (read_from_preset_menu): Likewise.
29367c478bd9Sstevel@tonic-gate	[PRESET_MENU_STRING] (close_preset_menu): Likewise.
29377c478bd9Sstevel@tonic-gate	[!PRESET_MENU_STRING] (open_preset_menu): New macro.
29387c478bd9Sstevel@tonic-gate	[!PRESET_MENU_STRING] (read_from_preset_menu): Likewise.
29397c478bd9Sstevel@tonic-gate	[!PRESET_MENU_STRING] (close_preset_menu): Likewise.
29407c478bd9Sstevel@tonic-gate	(get_line_from_config): Accept a new argument READ_FROM_FILE.
29417c478bd9Sstevel@tonic-gate	If it is false, read data from the preset menu instead.
29427c478bd9Sstevel@tonic-gate	(cmain): If grub_open fails in opening the configuration file,
29437c478bd9Sstevel@tonic-gate	then try to open the preset menu.
29447c478bd9Sstevel@tonic-gate
29457c478bd9Sstevel@tonic-gate2000-11-11  OKUJI Yoshinori  <okuji@gnu.org>
29467c478bd9Sstevel@tonic-gate
29477c478bd9Sstevel@tonic-gate	From Jan Fricke <fricke@uni-greifswald.de>:
29487c478bd9Sstevel@tonic-gate	* stage2/asm.S [!STAGE1_5] (set_vbe_mode): Add a missing `$'
29497c478bd9Sstevel@tonic-gate	prefix.
29507c478bd9Sstevel@tonic-gate
29517c478bd9Sstevel@tonic-gate2000-11-11  OKUJI Yoshinori  <okuji@gnu.org>
29527c478bd9Sstevel@tonic-gate
29537c478bd9Sstevel@tonic-gate	* stage2/bios.c (get_diskinfo): If BIOS supports LBA but doesn't
29547c478bd9Sstevel@tonic-gate	return the correct total number of sectors, compute this by
29557c478bd9Sstevel@tonic-gate	C/H/S returned by get_diskinfo_int13_extensions instead of
29567c478bd9Sstevel@tonic-gate	get_diskinfo_standard.
29577c478bd9Sstevel@tonic-gate
29587c478bd9Sstevel@tonic-gate2000-11-09  OKUJI Yoshinori  <okuji@gnu.org>
29597c478bd9Sstevel@tonic-gate
29607c478bd9Sstevel@tonic-gate	* stage2/disk_io.c (make_saved_active): Set ERRNUM to
29617c478bd9Sstevel@tonic-gate	ERR_DEV_VALUES instead of ERR_NO_PART, when the save partition
29627c478bd9Sstevel@tonic-gate	is not a primary partition.
29637c478bd9Sstevel@tonic-gate
29647c478bd9Sstevel@tonic-gate2000-11-05  OKUJI Yoshinori  <okuji@gnu.org>
29657c478bd9Sstevel@tonic-gate
29667c478bd9Sstevel@tonic-gate	* docs/user-ref.texi (Features): Update the URL of grub/98.
29677c478bd9Sstevel@tonic-gate
29687c478bd9Sstevel@tonic-gate2000-11-03  OKUJI Yoshinori  <okuji@gnu.org>
29697c478bd9Sstevel@tonic-gate
29707c478bd9Sstevel@tonic-gate	VBE support is _partially_ implemented.
29717c478bd9Sstevel@tonic-gate
29727c478bd9Sstevel@tonic-gate	* stage2/mb_header.h (multiboot_header): Added new fields,
29737c478bd9Sstevel@tonic-gate	mode_type, width, height, and depth.
29747c478bd9Sstevel@tonic-gate	(MULTIBOOT_FOUND): Check if MULTIBOOT_VIDEO_MODE is set, and
29757c478bd9Sstevel@tonic-gate	check if LEN is greater than or equal to 48, if set.
29767c478bd9Sstevel@tonic-gate	(MULTIBOOT_UNSUPPORTED): Set to 0x0000FFF8.
29777c478bd9Sstevel@tonic-gate	(MULTIBOOT_VIDEO_MODE): New macro.
29787c478bd9Sstevel@tonic-gate	* stage2/mb_info.h (multiboot_info): Added new fields,
29797c478bd9Sstevel@tonic-gate	vbe_control_info, vbe_mode_info, vbe_mode, vbe_interface_seg,
29807c478bd9Sstevel@tonic-gate	vbe_interface_off, and vbe_interface_len.
29817c478bd9Sstevel@tonic-gate	(MB_INFO_VIDEO_INFO): New macro.
29827c478bd9Sstevel@tonic-gate
29837c478bd9Sstevel@tonic-gate	* stage2/shared.h (vbe_controller): New structure.
29847c478bd9Sstevel@tonic-gate	(vbe_mode): Likewise.
29857c478bd9Sstevel@tonic-gate	(get_vbe_controller_info): Declared.
29867c478bd9Sstevel@tonic-gate	(get_vbe_mode_info): Likewise.
29877c478bd9Sstevel@tonic-gate	(set_vbe_mode): Likewise.
29887c478bd9Sstevel@tonic-gate	* stage2/asm.S [!STAGE1_5] (get_vbe_controller_info): New
29897c478bd9Sstevel@tonic-gate	function.
29907c478bd9Sstevel@tonic-gate	[!STAGE1_5] (get_vbe_mode_info): Likewise.
29917c478bd9Sstevel@tonic-gate	[!STAGE1_5] (set_vbe_mode): Likewise.
29927c478bd9Sstevel@tonic-gate	* grub/asmstub.c (get_vbe_controller_info): Likewise.
29937c478bd9Sstevel@tonic-gate	(get_vbe_mode_info): Likewise.
29947c478bd9Sstevel@tonic-gate	(set_vbe_mode): Likewise.
29957c478bd9Sstevel@tonic-gate
29967c478bd9Sstevel@tonic-gate	* stage2/builtins.c (testvbe_func): New function.
29977c478bd9Sstevel@tonic-gate	(builtin_testvbe): New variable.
29987c478bd9Sstevel@tonic-gate	(vbeprobe_func): New function.
29997c478bd9Sstevel@tonic-gate	(builtin_vbeprobe): New variable.
30007c478bd9Sstevel@tonic-gate	(builtin_table): Added pointers to BUILTIN_TESTVBE and
30017c478bd9Sstevel@tonic-gate	BUILTIN_VBEPROBE.
30027c478bd9Sstevel@tonic-gate
30037c478bd9Sstevel@tonic-gate2000-11-01  OKUJI Yoshinori  <okuji@gnu.org>
30047c478bd9Sstevel@tonic-gate
30057c478bd9Sstevel@tonic-gate	* docs/help2man: Copied from help2man-1.23.
30067c478bd9Sstevel@tonic-gate
30077c478bd9Sstevel@tonic-gate2000-10-29  OKUJI Yoshinori  <okuji@gnu.org>
30087c478bd9Sstevel@tonic-gate
30097c478bd9Sstevel@tonic-gate	* stage2/asm.S [STAGE1_5]: Don't include setjmp.S or apm.S.
30107c478bd9Sstevel@tonic-gate
30117c478bd9Sstevel@tonic-gate2000-10-27  OKUJI Yoshinori  <okuji@gnu.org>
30127c478bd9Sstevel@tonic-gate
30137c478bd9Sstevel@tonic-gate	* lib/device.c (read_device_map): Don't parse a line, if it is
30147c478bd9Sstevel@tonic-gate	empty. Reported by Holger Bauer <bauer@itsm.uni-stuttgart.de>.
30157c478bd9Sstevel@tonic-gate
30167c478bd9Sstevel@tonic-gate2000-10-25  Jochen Hoenicke  <jochen@gnu.org>
30177c478bd9Sstevel@tonic-gate
30187c478bd9Sstevel@tonic-gate	* stage2/builtins.c (md5crypt_func): Use all bits of currticks ()
30197c478bd9Sstevel@tonic-gate	to generate the salt.  The old code would often produce the same
30207c478bd9Sstevel@tonic-gate	one character salt.
30217c478bd9Sstevel@tonic-gate
30227c478bd9Sstevel@tonic-gate2000-10-25  OKUJI Yoshinori  <okuji@gnu.org>
30237c478bd9Sstevel@tonic-gate
30247c478bd9Sstevel@tonic-gate	* stage2/apm.S (get_apm_info): Fix a serious typo: prot_to_real
30257c478bd9Sstevel@tonic-gate	-> real_to_prot. Umm, I can't understand why it worked for me!
30267c478bd9Sstevel@tonic-gate
30277c478bd9Sstevel@tonic-gate2000-10-24  Jochen Hoenicke  <jochen@gnu.org>
30287c478bd9Sstevel@tonic-gate
30297c478bd9Sstevel@tonic-gate	* stage2/builtins.c (setup_func): When invoking install with an
30307c478bd9Sstevel@tonic-gate 	embedded stage1_5 give the path to menu.lst as real_config_file.
30317c478bd9Sstevel@tonic-gate
30327c478bd9Sstevel@tonic-gate2000-10-23  OKUJI Yoshinori  <okuji@gnu.org>
30337c478bd9Sstevel@tonic-gate
30347c478bd9Sstevel@tonic-gate	* docs/multiboot.texi: Upgraded to 0.6.92.
30357c478bd9Sstevel@tonic-gate	(Boot information format): Re-designed the graphics table.
30367c478bd9Sstevel@tonic-gate
30377c478bd9Sstevel@tonic-gate2000-10-22  OKUJI Yoshinori  <okuji@gnu.org>
30387c478bd9Sstevel@tonic-gate
30397c478bd9Sstevel@tonic-gate	* docs/tutorial.texi: Miscellaneous updates.
30407c478bd9Sstevel@tonic-gate	* docs/user-ref.texi: Likewise.
30417c478bd9Sstevel@tonic-gate	* docs/appendices.texi: Likewise.
30427c478bd9Sstevel@tonic-gate
30437c478bd9Sstevel@tonic-gate2000-10-22  OKUJI Yoshinori  <okuji@gnu.org>
30447c478bd9Sstevel@tonic-gate
30457c478bd9Sstevel@tonic-gate	* util/grub-install.in (usage): Removed unnecessary commas.
30467c478bd9Sstevel@tonic-gate
30477c478bd9Sstevel@tonic-gate	* util/grub-md5-crypt.in: New file.
30487c478bd9Sstevel@tonic-gate	* util/Makefile.am (sbin_SCRIPTS): Added grub-md5-crypt.
30497c478bd9Sstevel@tonic-gate	* configure.in (AC_OUTPUT): Added util/grub-md5-crypt.
30507c478bd9Sstevel@tonic-gate	* docs/Makefile.am (man_MANS): Added grub-md5-crypt.8.
30517c478bd9Sstevel@tonic-gate	[MAINTAINER_MODE] ($(srcdir)/grub-md5-crypt.8): New target.
30527c478bd9Sstevel@tonic-gate	* docs/grub-md5-crypt.8: New file. Generated by help2man.
30537c478bd9Sstevel@tonic-gate
30547c478bd9Sstevel@tonic-gate	* docs/grub.texi (grub-md5-crypt): New direntry.
30557c478bd9Sstevel@tonic-gate	(Invoking grub-md5-crypt): New entry.
30567c478bd9Sstevel@tonic-gate	* docs/user-ref.texi (Invoking grub-md5-crypt): New chapter.
30577c478bd9Sstevel@tonic-gate
30587c478bd9Sstevel@tonic-gate2000-10-22  OKUJI Yoshinori  <okuji@gnu.org>
30597c478bd9Sstevel@tonic-gate
30607c478bd9Sstevel@tonic-gate	From Matthias Granberry <matthias@slurpee.org>:
30617c478bd9Sstevel@tonic-gate	* util/grub-install.in (convert): Added backslashes into
30627c478bd9Sstevel@tonic-gate	continuous lines.
30637c478bd9Sstevel@tonic-gate
30647c478bd9Sstevel@tonic-gate2000-10-21  OKUJI Yoshinori  <okuji@gnu.org>
30657c478bd9Sstevel@tonic-gate
30667c478bd9Sstevel@tonic-gate	* stage2/md5.c (check_md5_password): Removed.
30677c478bd9Sstevel@tonic-gate	(md5_password): New function. Mostly copied from
30687c478bd9Sstevel@tonic-gate	check_md5_password.
30697c478bd9Sstevel@tonic-gate	(md5_init): Made static.
30707c478bd9Sstevel@tonic-gate	(md5_update): Likewise.
30717c478bd9Sstevel@tonic-gate	(md5_final): Likewise.
30727c478bd9Sstevel@tonic-gate	* stage2/md5.h (check_md5_password): Changed to just a macro.
30737c478bd9Sstevel@tonic-gate	(md5_password): Declared.
30747c478bd9Sstevel@tonic-gate	(make_md5_password): New macro.
30757c478bd9Sstevel@tonic-gate	* stage2/char_io.c [!STAGE1_5] (grub_strstr): Rewriten, because
30767c478bd9Sstevel@tonic-gate	it was too buggy.
30777c478bd9Sstevel@tonic-gate	* stage2/builtins.c [USE_MD5_PASSWORDS] (md5crypt_func): New
30787c478bd9Sstevel@tonic-gate	function.
30797c478bd9Sstevel@tonic-gate	[USE_MD5_PASSWORDS] (builtin_md5crypt): New variable.
30807c478bd9Sstevel@tonic-gate	(builtin_table) [USE_MD5_PASSWORDS]: Added a pointer to
30817c478bd9Sstevel@tonic-gate	BUILTIN_MD5CRYPT.
30827c478bd9Sstevel@tonic-gate	* docs/tutorial.texi (Security): Added a paragraph about
30837c478bd9Sstevel@tonic-gate	md5crypt.
30847c478bd9Sstevel@tonic-gate
30857c478bd9Sstevel@tonic-gate2000-10-21  OKUJI Yoshinori  <okuji@gnu.org>
30867c478bd9Sstevel@tonic-gate
30877c478bd9Sstevel@tonic-gate	* docs/user-ref.texi: Fixed several typos and some inappropriate
30887c478bd9Sstevel@tonic-gate	texinfo commands, and update the descriptions about some
30897c478bd9Sstevel@tonic-gate	commands.
30907c478bd9Sstevel@tonic-gate
30917c478bd9Sstevel@tonic-gate2000-10-20  OKUJI Yoshinori  <okuji@gnu.org>
30927c478bd9Sstevel@tonic-gate
30937c478bd9Sstevel@tonic-gate	* stage2/builtins.c (displayapm_func): New function.
30947c478bd9Sstevel@tonic-gate	(builtin_displayapm): New variable.
30957c478bd9Sstevel@tonic-gate	(builtin_table): Added a pointer to BUILTIN_DISPLAYAPM.
30967c478bd9Sstevel@tonic-gate
30977c478bd9Sstevel@tonic-gate2000-10-20  OKUJI Yoshinori  <okuji@gnu.org>
30987c478bd9Sstevel@tonic-gate
30997c478bd9Sstevel@tonic-gate	APM BIOS table support is added, based on a patch by Matt Yourst
31007c478bd9Sstevel@tonic-gate	<yourst@mit.edu>.
31017c478bd9Sstevel@tonic-gate
31027c478bd9Sstevel@tonic-gate	* docs/multiboot.texi (Boot information format): Added the
31037c478bd9Sstevel@tonic-gate	definition of APM table format.
31047c478bd9Sstevel@tonic-gate
31057c478bd9Sstevel@tonic-gate	* stage2/mb_info.h (apm_info): New structure.
31067c478bd9Sstevel@tonic-gate	(multiboot_info): Added a new element, apm_table.
31077c478bd9Sstevel@tonic-gate	(MB_INFO_APM_TABLE): New macro.
31087c478bd9Sstevel@tonic-gate	* stage2/asm.S (apm_bios_info): New variable.
31097c478bd9Sstevel@tonic-gate	Include "apm.S".
31107c478bd9Sstevel@tonic-gate	* stage2/apm.S: New file.
31117c478bd9Sstevel@tonic-gate	* stage2/common.c (init_bios_info) [!STAGE1_5]: Added APM BIOS
31127c478bd9Sstevel@tonic-gate	table support.
31137c478bd9Sstevel@tonic-gate	* stage2/shared.h (apm_bios_info): Declared.
31147c478bd9Sstevel@tonic-gate	(get_apm_info): Likewise.
31157c478bd9Sstevel@tonic-gate	* stage2/Makefile.am (EXTRA_DIST): Added apm.S.
31167c478bd9Sstevel@tonic-gate	* grub/asmstub.c (apm_bios_info): New variable.
31177c478bd9Sstevel@tonic-gate	(get_apm_info): New function.
31187c478bd9Sstevel@tonic-gate
31197c478bd9Sstevel@tonic-gate2000-10-19  OKUJI Yoshinori  <okuji@gnu.org>
31207c478bd9Sstevel@tonic-gate
31217c478bd9Sstevel@tonic-gate	Segregate functions which are copyrighted differently.
31227c478bd9Sstevel@tonic-gate
31237c478bd9Sstevel@tonic-gate	* stage2/setjmp.S: New file.
31247c478bd9Sstevel@tonic-gate	* stage2/Makefile.am (EXTRA_DIST): Added setjmp.S.
31257c478bd9Sstevel@tonic-gate	* stage2/asm.S: Include "setjmp.S".
31267c478bd9Sstevel@tonic-gate	(grub_setjmp): Moved to ...
31277c478bd9Sstevel@tonic-gate	* stage2/setjmp.S (grub_setjmp): ... here.
31287c478bd9Sstevel@tonic-gate	* stage2/asm.S (grub_longjmp): Moved to ...
31297c478bd9Sstevel@tonic-gate	* stage2/setjmp.S (grub_longjmp): ... here.
31307c478bd9Sstevel@tonic-gate
31317c478bd9Sstevel@tonic-gate2000-10-18  OKUJI Yoshinori  <okuji@gnu.org>
31327c478bd9Sstevel@tonic-gate
31337c478bd9Sstevel@tonic-gate	* stage2/Makefile.am (noinst_HEADERS): Added md5.h. Reported by
31347c478bd9Sstevel@tonic-gate	Volker Augustin <Volker.Augustin@stud.uni-regensburg.de>.
31357c478bd9Sstevel@tonic-gate
31367c478bd9Sstevel@tonic-gate2000-10-17  OKUJI Yoshinori  <okuji@gnu.org>
31377c478bd9Sstevel@tonic-gate
31387c478bd9Sstevel@tonic-gate	* configure.in (--disable-md5password): Renamed to ...
31397c478bd9Sstevel@tonic-gate	(--disable-md5-password): ... this. Just for my preference.
31407c478bd9Sstevel@tonic-gate
31417c478bd9Sstevel@tonic-gate2000-10-17  Jochen Hoenicke  <jochen@gnu.org>
31427c478bd9Sstevel@tonic-gate
31437c478bd9Sstevel@tonic-gate	Added MD5 passwords and extended password command:
31447c478bd9Sstevel@tonic-gate
31457c478bd9Sstevel@tonic-gate	* configure.in (--disable-md5password): New option.
31467c478bd9Sstevel@tonic-gate	* stage2/Makefile.am (libgrub_a_SOURCES): Added md5.c.
31477c478bd9Sstevel@tonic-gate	(pre_stage2_exec_SOURCES): Likewise.
31487c478bd9Sstevel@tonic-gate	* stage2/md5.c: New file.
31497c478bd9Sstevel@tonic-gate	* stage2/shared.h (password_t): New type.
31507c478bd9Sstevel@tonic-gate	(password_type): New variable.
31517c478bd9Sstevel@tonic-gate	(BUILTIN_HIDDEN): New flag, describing that a command should not
31527c478bd9Sstevel@tonic-gate	be printed when booting the entry.
31537c478bd9Sstevel@tonic-gate	(check_password): New function.
31547c478bd9Sstevel@tonic-gate	* stage2/cmdline.c (run_script): Don't show commands that have
31557c478bd9Sstevel@tonic-gate	the hidden attribute.
31567c478bd9Sstevel@tonic-gate	* stage2/builtins.c (password_type): New variable.
31577c478bd9Sstevel@tonic-gate	(check_password): New function.
31587c478bd9Sstevel@tonic-gate	(password_func): Handle the --md5 option and set password_type.
31597c478bd9Sstevel@tonic-gate	Check if in CMDLINE or SCRIPT mode and ask password immediately.
31607c478bd9Sstevel@tonic-gate	(builtin_password): Also allow passwords in CMDLINE mode, make
31617c478bd9Sstevel@tonic-gate	it hidden, so the user wont see the password he should enter.
31627c478bd9Sstevel@tonic-gate	Changed command description.
31637c478bd9Sstevel@tonic-gate	(builtin_pause): Make the command hidden.
31647c478bd9Sstevel@tonic-gate	(pause_func): Print argument, since the command is now hidden.
31657c478bd9Sstevel@tonic-gate	* stage2/stage2.c (run_menu): Call check_password to check password.
31667c478bd9Sstevel@tonic-gate	* docs/tutorial.texi (Security): Describe the new features of the
31677c478bd9Sstevel@tonic-gate	password commands.
31687c478bd9Sstevel@tonic-gate	* docs/user-ref.texi (Menu-specific commands): password command
31697c478bd9Sstevel@tonic-gate 	moved ...
31707c478bd9Sstevel@tonic-gate	(Command-line and menu commands): ... to here.  New features
31717c478bd9Sstevel@tonic-gate	doumented.
31727c478bd9Sstevel@tonic-gate
31737c478bd9Sstevel@tonic-gate2000-10-17  OKUJI Yoshinori  <okuji@gnu.org>
31747c478bd9Sstevel@tonic-gate
31757c478bd9Sstevel@tonic-gate	* stage2/builtins.c (setkey_func): Clear the all elements of
31767c478bd9Sstevel@tonic-gate	BIOS_KEY_MAP and ASCII_KEY_MAP instead of only the first
31777c478bd9Sstevel@tonic-gate	elements, when TO_KEY is NULL.
31787c478bd9Sstevel@tonic-gate
31797c478bd9Sstevel@tonic-gate2000-10-16  OKUJI Yoshinori  <okuji@gnu.org>
31807c478bd9Sstevel@tonic-gate
31817c478bd9Sstevel@tonic-gate	* stage2/boot.c (load_image): When handling Linux cmdline, don't
31827c478bd9Sstevel@tonic-gate	copy a null character from SRC to DEST, because this inserted an
31837c478bd9Sstevel@tonic-gate	extra null character into the cmdline. Reported by Robert
31847c478bd9Sstevel@tonic-gate	Bihlmeyer <robbe@orcus.priv.at>.
31857c478bd9Sstevel@tonic-gate
31867c478bd9Sstevel@tonic-gate2000-10-16  OKUJI Yoshinori  <okuji@gnu.org>
31877c478bd9Sstevel@tonic-gate
31887c478bd9Sstevel@tonic-gate	Some of the new Multiboot features are supported. APM support
31897c478bd9Sstevel@tonic-gate	and VESA support are not strictly defined or implemented yet.
31907c478bd9Sstevel@tonic-gate
31917c478bd9Sstevel@tonic-gate	* docs/multiboot.texi (Top): Increase the version number.
31927c478bd9Sstevel@tonic-gate	(Boot information format): Changed the drive information format,
31937c478bd9Sstevel@tonic-gate	because it was not straightforward.
31947c478bd9Sstevel@tonic-gate
31957c478bd9Sstevel@tonic-gate	* grub/asmstub.c (io_map): New variable.
31967c478bd9Sstevel@tonic-gate	(track_int13): New function.
31977c478bd9Sstevel@tonic-gate	(get_rom_config_table): Likewise.
31987c478bd9Sstevel@tonic-gate	* stage2/stage2.c (cmain): Set CONFIG_ENTRIES to MBI.DRIVES_ADDR
31997c478bd9Sstevel@tonic-gate	+ MBI.DRIVES.LENGTH instead of MBI.MMAP_ADDR + MBI.MMAP_LENGTH.
32007c478bd9Sstevel@tonic-gate	* stage2/common.c (init_bios_info) [!STAGE1_5]: Added support
32017c478bd9Sstevel@tonic-gate	for drive info, ROM config table, and boot loader name features
32027c478bd9Sstevel@tonic-gate	of the Multiboot Specification.
32037c478bd9Sstevel@tonic-gate	* stage2/mb_info.h (drive_info): New structure.
32047c478bd9Sstevel@tonic-gate	(MB_DI_CHS_MODE): New macro.
32057c478bd9Sstevel@tonic-gate	(MB_DI_LBA_MODE): Likewise.
32067c478bd9Sstevel@tonic-gate	(multiboot_info): Added drives_length, drives_addr,
32077c478bd9Sstevel@tonic-gate	config_table, and boot_loader_name.
32087c478bd9Sstevel@tonic-gate	(MB_INFO_DRIVE_INFO): New macro.
32097c478bd9Sstevel@tonic-gate	(MB_INFO_CONFIG_TABLE): Likewise.
32107c478bd9Sstevel@tonic-gate	(MB_INFO_BOOT_LOADER_NAME): Likewise.
32117c478bd9Sstevel@tonic-gate	* stage2/asm.S (get_rom_config_table): New function.
32127c478bd9Sstevel@tonic-gate	* stage2/shared.h (get_rom_config_table): Declared.
32137c478bd9Sstevel@tonic-gate
32147c478bd9Sstevel@tonic-gate2000-10-16  OKUJI Yoshinori  <okuji@gnu.org>
32157c478bd9Sstevel@tonic-gate
32167c478bd9Sstevel@tonic-gate	* util/grub-install.in (convert): Check only if the file exists,
32177c478bd9Sstevel@tonic-gate	instead of checking if the file is a block device as well.
32187c478bd9Sstevel@tonic-gate	Because, in a sane operating system, it should be a char device
32197c478bd9Sstevel@tonic-gate	but not a block device (unlike Linux), and it may be a symbolic
32207c478bd9Sstevel@tonic-gate	link (this can happen if you use Linux's devfs without devfsd).
32217c478bd9Sstevel@tonic-gate	(recheck): New variable. Set to "no" by default, and set to
32227c478bd9Sstevel@tonic-gate	"yes", if you specify the new option ``--recheck''. If $recheck
32237c478bd9Sstevel@tonic-gate	is "yes", remove the device map file, if present.
32247c478bd9Sstevel@tonic-gate
32257c478bd9Sstevel@tonic-gate2000-10-16  OKUJI Yoshinori  <okuji@gnu.org>
32267c478bd9Sstevel@tonic-gate
32277c478bd9Sstevel@tonic-gate	From Roderich Schupp:
32287c478bd9Sstevel@tonic-gate	* lib/device.c: Include <limits.h>.
32297c478bd9Sstevel@tonic-gate	[__linux__] (have_devfs): New function.
32307c478bd9Sstevel@tonic-gate	(get_floppy_disk_name) [__linux__]: If devfs is supported, use
32317c478bd9Sstevel@tonic-gate	the name "/dev/floppy/N" instead.
32327c478bd9Sstevel@tonic-gate	(init_device_map) [__linux__]: If devfs is supported, use
32337c478bd9Sstevel@tonic-gate	"/dev/discs/discN" instead.
32347c478bd9Sstevel@tonic-gate	[__linux__] (write_to_partition): Change the size of DEV to
32357c478bd9Sstevel@tonic-gate	PATH_MAX instead of 64.
32367c478bd9Sstevel@tonic-gate	If devfs is supported, replace "/disc" in the device name with
32377c478bd9Sstevel@tonic-gate	"/part".
32387c478bd9Sstevel@tonic-gate
32397c478bd9Sstevel@tonic-gate2000-10-15  OKUJI Yoshinori  <okuji@gnu.org>
32407c478bd9Sstevel@tonic-gate
32417c478bd9Sstevel@tonic-gate	From Roderich Schupp <rsch@ExperTeam.de>:
32427c478bd9Sstevel@tonic-gate	* util/grub-install.in (convert): Added support for "native"
32437c478bd9Sstevel@tonic-gate	devfs device names.
32447c478bd9Sstevel@tonic-gate
32457c478bd9Sstevel@tonic-gate2000-10-14  OKUJI Yoshinori  <okuji@gnu.org>
32467c478bd9Sstevel@tonic-gate
32477c478bd9Sstevel@tonic-gate	* docs/tutorial.texi (Serial terminal): Fixed a typo.
32487c478bd9Sstevel@tonic-gate	* docs/user-ref.texi (GRUB images): New chapter.
32497c478bd9Sstevel@tonic-gate	* docs/grub.texi: Added an entry for the chapter "GRUB images".
32507c478bd9Sstevel@tonic-gate
32517c478bd9Sstevel@tonic-gate2000-10-14  OKUJI Yoshinori  <okuji@gnu.org>
32527c478bd9Sstevel@tonic-gate
32537c478bd9Sstevel@tonic-gate	* stage2/builtins.c (setkey_func): If TO_KEY is NULL (i.e. the
32547c478bd9Sstevel@tonic-gate	user specifies no argument), clear BIOS_KEY_MAP and
32557c478bd9Sstevel@tonic-gate	ASCII_KEY_MAP.
32567c478bd9Sstevel@tonic-gate	If TO_KEY is non-NULL but FROM_KEY is NULL, set ERRNUM to
32577c478bd9Sstevel@tonic-gate	ERR_BAD_ARGUMENT and return one.
32587c478bd9Sstevel@tonic-gate
32597c478bd9Sstevel@tonic-gate2000-10-13  OKUJI Yoshinori  <okuji@gnu.org>
32607c478bd9Sstevel@tonic-gate
32617c478bd9Sstevel@tonic-gate	* docs/grub.texi: Added an entry for the new chapter "Security",
32627c478bd9Sstevel@tonic-gate	and the order of the chapters in the Tutorial Manual was
32637c478bd9Sstevel@tonic-gate	changed.
32647c478bd9Sstevel@tonic-gate	* docs/tutorial.texi (Configuration): Moved to right after the
32657c478bd9Sstevel@tonic-gate	chapter "Booting".
32667c478bd9Sstevel@tonic-gate	(Security): New chapter.
32677c478bd9Sstevel@tonic-gate
32687c478bd9Sstevel@tonic-gate2000-10-10  OKUJI Yoshinori  <okuji@gnu.org>
32697c478bd9Sstevel@tonic-gate
32707c478bd9Sstevel@tonic-gate	From Alessandro Rubini:
32717c478bd9Sstevel@tonic-gate	* util/grub-install.in (root_device): Use the regular expression
32727c478bd9Sstevel@tonic-gate	's%.*\(/dev/[^ 	]*\).*%\1%' instead of
32737c478bd9Sstevel@tonic-gate	's%.*\(/dev/[a-z0-9]*\).*%\1%'.
32747c478bd9Sstevel@tonic-gate	(bootdir_device): Likewise.
32757c478bd9Sstevel@tonic-gate	(grubdir_device): Likewise.
32767c478bd9Sstevel@tonic-gate
32777c478bd9Sstevel@tonic-gate2000-10-10  OKUJI Yoshinori  <okuji@gnu.org>
32787c478bd9Sstevel@tonic-gate
32797c478bd9Sstevel@tonic-gate	* stage2/start.S (copy_buffer): Use pusha and popa instead of
32807c478bd9Sstevel@tonic-gate	pushing and poping %di and %si individually, to reduce the code
32817c478bd9Sstevel@tonic-gate	size and save %cx as well. Reported by Herbert Nachtnebel
32827c478bd9Sstevel@tonic-gate	<nachtneb@iaee.tuwien.ac.at>.
32837c478bd9Sstevel@tonic-gate
32847c478bd9Sstevel@tonic-gate2000-10-10  OKUJI Yoshinori  <okuji@gnu.org>
32857c478bd9Sstevel@tonic-gate
32867c478bd9Sstevel@tonic-gate	From Daniel Pittman <daniel@rimspace.net>:
32877c478bd9Sstevel@tonic-gate	* stage2/builtins.c (setkey_func): Check if
32887c478bd9Sstevel@tonic-gate	KEYSYM_TABLE[I].UNSHIFTED_NAME and KEYSYM_TABLE[I].SHIFTED_NAME
32897c478bd9Sstevel@tonic-gate	are not NULLs, before calling grub_strcmp.
32907c478bd9Sstevel@tonic-gate
32917c478bd9Sstevel@tonic-gate2000-10-08  OKUJI Yoshinori  <okuji@gnu.org>
32927c478bd9Sstevel@tonic-gate
32937c478bd9Sstevel@tonic-gate	* util/grub-install.in (grub_prefix): New variable. The default
32947c478bd9Sstevel@tonic-gate	is "/boot/grub".
32957c478bd9Sstevel@tonic-gate	If the user has a separate boot partition, set grub_prefix
32967c478bd9Sstevel@tonic-gate	instead of grubdir to "/grub".
32977c478bd9Sstevel@tonic-gate	When running the command "setup", specify $grub_prefix instead
32987c478bd9Sstevel@tonic-gate	of $grubdir to the option "--prefix".
32997c478bd9Sstevel@tonic-gate	Report by Thierry Laronde.
33007c478bd9Sstevel@tonic-gate
33017c478bd9Sstevel@tonic-gate2000-10-08  OKUJI Yoshinori  <okuji@gnu.org>
33027c478bd9Sstevel@tonic-gate
33037c478bd9Sstevel@tonic-gate	* stage2/builtins.c (find_func): Clear ERRNUM after the last
33047c478bd9Sstevel@tonic-gate	call of next_partition, because it always sets ERRNUM. Reported
33057c478bd9Sstevel@tonic-gate	by Thierry Laronde <thierry.laronde@polynum.com>.
33067c478bd9Sstevel@tonic-gate
33077c478bd9Sstevel@tonic-gate2000-10-07  OKUJI Yoshinori  <okuji@gnu.org>
33087c478bd9Sstevel@tonic-gate
33097c478bd9Sstevel@tonic-gate	* lib/device.c [__linux__] (write_to_partition): Open DEV with
33107c478bd9Sstevel@tonic-gate	O_RDWR instead of O_ORONLY.
33117c478bd9Sstevel@tonic-gate
33127c478bd9Sstevel@tonic-gate2000-10-06  Alessandro Rubini  <rubini@gnu.org>
33137c478bd9Sstevel@tonic-gate
33147c478bd9Sstevel@tonic-gate	* docs/user-ref.texi (Commands): Added missing commands and
33157c478bd9Sstevel@tonic-gate	reworded part of the text.
33167c478bd9Sstevel@tonic-gate
33177c478bd9Sstevel@tonic-gate	* stage2/builtins.c (serial_func): Unswap the setting of "speed"
33187c478bd9Sstevel@tonic-gate	and "port".
33197c478bd9Sstevel@tonic-gate
33207c478bd9Sstevel@tonic-gate2000-10-06  OKUJI Yoshinori  <okuji@gnu.org>
33217c478bd9Sstevel@tonic-gate
33227c478bd9Sstevel@tonic-gate	* stage2/builtins.c (setup_func): Append "... " to the
33237c478bd9Sstevel@tonic-gate	messages when calling embed_func and install_func, and print
33247c478bd9Sstevel@tonic-gate	the result.
33257c478bd9Sstevel@tonic-gate	Don't jump to the label "fail", even when embed_func failed.
33267c478bd9Sstevel@tonic-gate
33277c478bd9Sstevel@tonic-gate2000-10-05  Gordon Matzigkeit  <gord@fig.org>
33287c478bd9Sstevel@tonic-gate
33297c478bd9Sstevel@tonic-gate	* stage2/disk_io.c (real_open_partition): Make sure that buf_geom
33307c478bd9Sstevel@tonic-gate	corresponds to the current drive before using it.
33317c478bd9Sstevel@tonic-gate
33327c478bd9Sstevel@tonic-gate	* lib/device.c (get_drive_geometry): Use fstat if the native
33337c478bd9Sstevel@tonic-gate	geometry methods fail, such as when the drive is mapped to a
33347c478bd9Sstevel@tonic-gate	regular file.
33357c478bd9Sstevel@tonic-gate
33367c478bd9Sstevel@tonic-gate	* docs/tutorial.texi: Add `@kbd{...}' to examples in order to
33377c478bd9Sstevel@tonic-gate	differentiate between command output and characters the user
33387c478bd9Sstevel@tonic-gate	should type.
33397c478bd9Sstevel@tonic-gate	* docs/user-ref.texi: Likewise.
33407c478bd9Sstevel@tonic-gate
33417c478bd9Sstevel@tonic-gate2000-10-05  OKUJI Yoshinori  <okuji@gnu.org>
33427c478bd9Sstevel@tonic-gate
33437c478bd9Sstevel@tonic-gate	* docs/grub.texi: Added an entry for the chapter "Serial
33447c478bd9Sstevel@tonic-gate	terminal".
33457c478bd9Sstevel@tonic-gate	* docs/tutorial.texi (Serial terminal): New chapter.
33467c478bd9Sstevel@tonic-gate
33477c478bd9Sstevel@tonic-gate2000-10-04  Gordon Matzigkeit  <gord@fig.org>
33487c478bd9Sstevel@tonic-gate
33497c478bd9Sstevel@tonic-gate	* util/grub-image (VERSION): Fix version calculation to tolerate
33507c478bd9Sstevel@tonic-gate	`(GNU GRUB 0.5.96)'-style versions.
33517c478bd9Sstevel@tonic-gate
33527c478bd9Sstevel@tonic-gate	* docs/grub.texi: Remove braces from `@unnumbered' sections so
33537c478bd9Sstevel@tonic-gate	that texi2html doesn't complain.
33547c478bd9Sstevel@tonic-gate
33557c478bd9Sstevel@tonic-gate	* debian/rules: Build HTML documentation to appease the Debian
33567c478bd9Sstevel@tonic-gate	masses.
33577c478bd9Sstevel@tonic-gate
33587c478bd9Sstevel@tonic-gate2000-10-04  OKUJI Yoshinori  <okuji@gnu.org>
33597c478bd9Sstevel@tonic-gate
33607c478bd9Sstevel@tonic-gate	* stage2/fsys_reiserfs.c (reiserfs_mount): Compare PART_LENGTH
33617c478bd9Sstevel@tonic-gate	with SUPERBLOCK + (sizeof(super) >> SECTOR_BITS) instead of
33627c478bd9Sstevel@tonic-gate	sizeof(struct reiserfs_super_block). Reported by Jochen
33637c478bd9Sstevel@tonic-gate	Hoenicke.
33647c478bd9Sstevel@tonic-gate
33657c478bd9Sstevel@tonic-gate2000-10-05  OKUJI Yoshinori  <okuji@gnu.org>
33667c478bd9Sstevel@tonic-gate
33677c478bd9Sstevel@tonic-gate	* configure.in (AM_INIT_AUTOMAKE): The version number is set to
33687c478bd9Sstevel@tonic-gate	0.5.97. This version number is a dummy, as we will never release
33697c478bd9Sstevel@tonic-gate	0.5.97 actually.
33707c478bd9Sstevel@tonic-gate
33717c478bd9Sstevel@tonic-gate2000-10-01  OKUJI Yoshinori  <okuji@gnu.org>
33727c478bd9Sstevel@tonic-gate
33737c478bd9Sstevel@tonic-gate	* lib/device.c [__linux__]: Don't include <linux/cdrom.h>.
33747c478bd9Sstevel@tonic-gate	[__linux__ && !CDROM_GET_CAPABILITY] (CDROM_GET_CAPABILITY):
33757c478bd9Sstevel@tonic-gate	Defined as 0x5331.
33767c478bd9Sstevel@tonic-gate
33777c478bd9Sstevel@tonic-gate2000-10-01  OKUJI Yoshinori  <okuji@gnu.org>
33787c478bd9Sstevel@tonic-gate
33797c478bd9Sstevel@tonic-gate	* lib/device.c (get_drive_geometry) [__GNU__]: Get the number of
33807c478bd9Sstevel@tonic-gate	total sectors by fstat. The rest are filled with arbitrary
33817c478bd9Sstevel@tonic-gate	values.
33827c478bd9Sstevel@tonic-gate
33837c478bd9Sstevel@tonic-gate2000-09-30  OKUJI Yoshinori  <okuji@gnu.org>
33847c478bd9Sstevel@tonic-gate
33857c478bd9Sstevel@tonic-gate	* util/grub-install.in (convert): The code for gnu* (i.e.
33867c478bd9Sstevel@tonic-gate	GNU/Hurd) was rewritten, since it didn't work for BSD
33877c478bd9Sstevel@tonic-gate	partitions.
33887c478bd9Sstevel@tonic-gate	Use "$tmp_disk *$" instead of "$tmp_disk" to get the drive name.
33897c478bd9Sstevel@tonic-gate
33907c478bd9Sstevel@tonic-gate2000-09-30  OKUJI Yoshinori  <okuji@gnu.org>
33917c478bd9Sstevel@tonic-gate
33927c478bd9Sstevel@tonic-gate	* stage2/fsys_reiserfs.c (reiserfs_mount): Check if the length
33937c478bd9Sstevel@tonic-gate	of the partition is less than the size of a super block, before
33947c478bd9Sstevel@tonic-gate	attempting to read the super block.
33957c478bd9Sstevel@tonic-gate
33967c478bd9Sstevel@tonic-gate	* grub/asmstub.c (console_putchar)
33977c478bd9Sstevel@tonic-gate	[HAVE_LIBCURSES_H && REFRESH_IMMEDIATELY]: Call refresh, to ease
33987c478bd9Sstevel@tonic-gate	debugging.
33997c478bd9Sstevel@tonic-gate
34007c478bd9Sstevel@tonic-gate2000-09-30  OKUJI Yoshinori  <okuji@gnu.org>
34017c478bd9Sstevel@tonic-gate
34027c478bd9Sstevel@tonic-gate	Added two new commands, "partnew" and "parttype", based on the
34037c478bd9Sstevel@tonic-gate	patch by Stefan Ondrejicka <ondrej@idata.sk>:
34047c478bd9Sstevel@tonic-gate	* stage2/builtins.c (partnew_func): New function.
34057c478bd9Sstevel@tonic-gate	(builtin_partnew): New variable.
34067c478bd9Sstevel@tonic-gate	(parttype_func): New function.
34077c478bd9Sstevel@tonic-gate	(builtin_parttype): New variable.
34087c478bd9Sstevel@tonic-gate	(builtin_table): Added pointers to BUILTIN_PARTNEW and to
34097c478bd9Sstevel@tonic-gate	BUILTIN_PARTTYPE.
34107c478bd9Sstevel@tonic-gate
34117c478bd9Sstevel@tonic-gate2000-09-29  OKUJI Yoshinori  <okuji@gnu.org>
34127c478bd9Sstevel@tonic-gate
34137c478bd9Sstevel@tonic-gate	* stage2/builtins.c (find_func): New variable GOT_FILE is set to
34147c478bd9Sstevel@tonic-gate	one if FILENAME is found. Otherwise, it is set to zero.
34157c478bd9Sstevel@tonic-gate	Clear ERRNUM at the end in the loop for floppies, to ensure that
34167c478bd9Sstevel@tonic-gate	ERRNUM is cleared before examining hard disks.
34177c478bd9Sstevel@tonic-gate	Rewrite the loop for hard disks using next_partitions, so this
34187c478bd9Sstevel@tonic-gate	function now checks all partitions you have certainly.
34197c478bd9Sstevel@tonic-gate	If GOT_FILE is non-zero, set ERRNUM to ERR_FILE_NOT_FOUND and
34207c478bd9Sstevel@tonic-gate	return one.
34217c478bd9Sstevel@tonic-gate
34227c478bd9Sstevel@tonic-gate2000-09-29  OKUJI Yoshinori  <okuji@gnu.org>
34237c478bd9Sstevel@tonic-gate
34247c478bd9Sstevel@tonic-gate	* stage2/disk_io.c (check_BSD_parts): Removed.
34257c478bd9Sstevel@tonic-gate	(next_partition): New function.
34267c478bd9Sstevel@tonic-gate	(real_open_partition): Rewritten using next_partition.
34277c478bd9Sstevel@tonic-gate	(set_device) [!STAGE1_5]: Skip a comma in DEVICE, even when the
34287c478bd9Sstevel@tonic-gate	BSD partition is not specified.
34297c478bd9Sstevel@tonic-gate	[!STAGE1_5] (print_completions): Don't append ')' if the
34307c478bd9Sstevel@tonic-gate	partition is a PC slice which may have BSD partitions. Instead,
34317c478bd9Sstevel@tonic-gate	try to complete the command-line with possible partitions.
34327c478bd9Sstevel@tonic-gate	* stage2/shared.h (next_partition): Declared.
34337c478bd9Sstevel@tonic-gate
34347c478bd9Sstevel@tonic-gate2000-09-27  OKUJI Yoshinori  <okuji@gnu.org>
34357c478bd9Sstevel@tonic-gate
34367c478bd9Sstevel@tonic-gate	* configure.in (--enable-serial): Changed to ...
34377c478bd9Sstevel@tonic-gate	(--disable-serial): ... this. Now the serial support is enabled
34387c478bd9Sstevel@tonic-gate	by default.
34397c478bd9Sstevel@tonic-gate
34407c478bd9Sstevel@tonic-gate2000-09-27  OKUJI Yoshinori  <okuji@gnu.org>
34417c478bd9Sstevel@tonic-gate
34427c478bd9Sstevel@tonic-gate	* stage2/char_io.c [!STAGE1_5] (get_cmdline) [!SUPPORT_SERIAL]:
34437c478bd9Sstevel@tonic-gate	Don't check if the terminal is dumb. If the terminal is console,
34447c478bd9Sstevel@tonic-gate	always use console functions.
34457c478bd9Sstevel@tonic-gate	* stage2/builtins.c [!SUPPORT_NETBOOT] (bootp_func): Undefined.
34467c478bd9Sstevel@tonic-gate	[!SUPPORT_NETBOOT] (builtin_bootp): Likewise.
34477c478bd9Sstevel@tonic-gate	[!GRUB_UTIL] (device_func): Likewise.
34487c478bd9Sstevel@tonic-gate	[!GRUB_UTIL] (builtin_device): Likewise.
34497c478bd9Sstevel@tonic-gate	[!SUPPORT_NETBOOT] (dhcp_func): Likewise.
34507c478bd9Sstevel@tonic-gate	[!SUPPORT_NETBOOT] (builtin_dhcp): Likewise.
34517c478bd9Sstevel@tonic-gate	[!GRUB_UTIL] (quit_func): Likewise.
34527c478bd9Sstevel@tonic-gate	[!GRUB_UTIL] (builtin_quit): Likewise.
34537c478bd9Sstevel@tonic-gate	[!SUPPORT_NETBOOT] (rarp_func): Likewise.
34547c478bd9Sstevel@tonic-gate	[!SUPPORT_NETBOOT] (builtin_rarp): Likewise.
34557c478bd9Sstevel@tonic-gate	[!SUPPORT_SERIAL] (serial_func): Likewise.
34567c478bd9Sstevel@tonic-gate	[!SUPPORT_SERIAL] (builtin_serial): Likewise.
34577c478bd9Sstevel@tonic-gate	[!SUPPORT_SERIAL] (terminal_func): Likewise.
34587c478bd9Sstevel@tonic-gate	[!SUPPORT_SERIAL] (builtin_terminal): Likewise.
34597c478bd9Sstevel@tonic-gate	[!SUPPORT_NETBOOT] (tftpserver_func): Likewise.
34607c478bd9Sstevel@tonic-gate	[!SUPPORT_NETBOOT] (builtin_tftpserver): Likewise.
34617c478bd9Sstevel@tonic-gate	(builtin_table) [!SUPPORT_NETBOOT]: Removed the pointers to
34627c478bd9Sstevel@tonic-gate	BUILTIN_BOOTP, BUILTIN_DHCP, BUILTIN_RARP, and
34637c478bd9Sstevel@tonic-gate	BUILTIN_TFTPSERVER.
34647c478bd9Sstevel@tonic-gate	(builtin_table) [!SUPPORT_SERIAL]: Removed the pointers to
34657c478bd9Sstevel@tonic-gate	BUILTIN_SERIAL and BUILTIN_TERMINAL.
34667c478bd9Sstevel@tonic-gate	(builtin_table) [!GRUB_UTIL]: Removed the pointers to
34677c478bd9Sstevel@tonic-gate	BUILTIN_DEVICE and BUILTIN_QUIT.
34687c478bd9Sstevel@tonic-gate
34697c478bd9Sstevel@tonic-gate2000-09-26  OKUJI Yoshinori  <okuji@gnu.org>
34707c478bd9Sstevel@tonic-gate
34717c478bd9Sstevel@tonic-gate	* util/grub-install.in (bootdir_device): New variable. If
34727c478bd9Sstevel@tonic-gate	$bootdir_device is not the same as $root_device, set root_device
34737c478bd9Sstevel@tonic-gate	and grubdir to $bootdir_device and "/grub", respectively.
34747c478bd9Sstevel@tonic-gate	Add --prefix=$grubdir into the command "setup".
34757c478bd9Sstevel@tonic-gate
34767c478bd9Sstevel@tonic-gate2000-09-26  OKUJI Yoshinori  <okuji@gnu.org>
34777c478bd9Sstevel@tonic-gate
34787c478bd9Sstevel@tonic-gate	Add --prefix=DIR to the command "setup".
34797c478bd9Sstevel@tonic-gate
34807c478bd9Sstevel@tonic-gate	* stage2/builtins.c (setup_func): New nested function,
34817c478bd9Sstevel@tonic-gate	check_file checks if the file FILE exists.
34827c478bd9Sstevel@tonic-gate	Remove the prefix "/boot/grub" in STAGE1_5_MAP.
34837c478bd9Sstevel@tonic-gate	Don't hardcode "/boot/grub/stage1", "/boot/grub/stage2", or
34847c478bd9Sstevel@tonic-gate	"/boot/grub/menu.lst". Instead, check if ARG contains
34857c478bd9Sstevel@tonic-gate	"--prefix=", and if specified, set PREFIX to the value.
34867c478bd9Sstevel@tonic-gate	If not specified, check "/boot/grub/stage1" and, if not found,
34877c478bd9Sstevel@tonic-gate	check "/grub/stage1". If a stage1 was found, set PREFIX to the
34887c478bd9Sstevel@tonic-gate	directory which contains the stage1.
34897c478bd9Sstevel@tonic-gate
34907c478bd9Sstevel@tonic-gate2000-09-12  OKUJI Yoshinori  <okuji@gnu.org>
34917c478bd9Sstevel@tonic-gate
34927c478bd9Sstevel@tonic-gate	Add additional magic to avoid a bug in Linux. *sigh*
34937c478bd9Sstevel@tonic-gate
34947c478bd9Sstevel@tonic-gate	* stage2/boot.c (load_image): Copy SRC to DEST first, and append
34957c478bd9Sstevel@tonic-gate	a "mem=" option to DEST instead of prepending.
34967c478bd9Sstevel@tonic-gate
34977c478bd9Sstevel@tonic-gate2000-09-11  OKUJI Yoshinori  <okuji@gnu.org>
34987c478bd9Sstevel@tonic-gate
34997c478bd9Sstevel@tonic-gate	Reported by Alessandro Rubini:
35007c478bd9Sstevel@tonic-gate	* stage2/fsys_minix.c (minix_mount): Check if CURRENT_SLICE is a
35017c478bd9Sstevel@tonic-gate	partition type for minix fs, using the macro
35027c478bd9Sstevel@tonic-gate	IS_PC_SLICE_TYPE_MINIX.
35037c478bd9Sstevel@tonic-gate	* stage2/pc_slice.h (PC_SLICE_TYPE_LINUX_MINIX): New macro.
35047c478bd9Sstevel@tonic-gate	(IS_PC_SLICE_TYPE_MINIX): Likewise.
35057c478bd9Sstevel@tonic-gate
35067c478bd9Sstevel@tonic-gate2000-09-09  Alessandro Rubini  <rubini@morgana.systemy.it>
35077c478bd9Sstevel@tonic-gate
35087c478bd9Sstevel@tonic-gate	* stage1/stage1.S (notification_string): Print "GRUB " instead
35097c478bd9Sstevel@tonic-gate	of "stage1 ".
35107c478bd9Sstevel@tonic-gate	* stage2/start.S [STAGE1_5] (notification_string): Print
35117c478bd9Sstevel@tonic-gate	"Loading stage1.5" instead of "stage1.5 ".
35127c478bd9Sstevel@tonic-gate	[!STAGE1_5] (notification_string): Print "Loading stage2"
35137c478bd9Sstevel@tonic-gate	instead of "stage2 ".
35147c478bd9Sstevel@tonic-gate	(notification_step): New label, followed by a string ".".
35157c478bd9Sstevel@tonic-gate	(notification_done): New label, followed by a string "\r\n".
35167c478bd9Sstevel@tonic-gate	(copy_buffer): Print NOTIFICATION_STEP after copying the buffer.
35177c478bd9Sstevel@tonic-gate	(bootit): Print NOTIFICATION_DONE before restoring %dx.
35187c478bd9Sstevel@tonic-gate
35197c478bd9Sstevel@tonic-gate2000-09-09  OKUJI Yoshinori  <okuji@gnu.org>
35207c478bd9Sstevel@tonic-gate
35217c478bd9Sstevel@tonic-gate	From Alessandro Rubini:
35227c478bd9Sstevel@tonic-gate	* configure.in (CPPFLAGS): Added -malign-jumps=1,
35237c478bd9Sstevel@tonic-gate	-malign-loops=1 and -malign-functions=1.
35247c478bd9Sstevel@tonic-gate
35257c478bd9Sstevel@tonic-gate2000-09-07  OKUJI Yoshinori  <okuji@gnu.org>
35267c478bd9Sstevel@tonic-gate
35277c478bd9Sstevel@tonic-gate	From Hal Snyder <hal@vailsys.com>:
35287c478bd9Sstevel@tonic-gate	* lib/device.c (get_drive_geometry) [__FreeBSD__ || __NetBSD__
35297c478bd9Sstevel@tonic-gate	|| __OpenBSD__]: Call ioctl for FD instead of
35307c478bd9Sstevel@tonic-gate	DISKS[DRIVE].FLAGS. This was a mistake when I segregated this
35317c478bd9Sstevel@tonic-gate	function from asmstub.c.
35327c478bd9Sstevel@tonic-gate
35337c478bd9Sstevel@tonic-gate2000-09-07  Alessandro Rubini  <rubini@gnu.org>
35347c478bd9Sstevel@tonic-gate
35357c478bd9Sstevel@tonic-gate	* docs/tutorial.texi: Fixed a few typos and minor imprecisions.
35367c478bd9Sstevel@tonic-gate	* docs/prog-ref.texi: Likewise.
35377c478bd9Sstevel@tonic-gate	* docs/user-ref.texi: Likewise.
35387c478bd9Sstevel@tonic-gate
35397c478bd9Sstevel@tonic-gate2000-09-07  OKUJI Yoshinori  <okuji@gnu.org>
35407c478bd9Sstevel@tonic-gate
35417c478bd9Sstevel@tonic-gate	From Alessandro Rubini:
35427c478bd9Sstevel@tonic-gate	* stage2/builtins.c (terminal_func): Rename TIMEOUT to TO, to
35437c478bd9Sstevel@tonic-gate	suppress GCC warnings.
35447c478bd9Sstevel@tonic-gate	* grub/asmstub.c (serial_checkkey): Likewise.
35457c478bd9Sstevel@tonic-gate
35467c478bd9Sstevel@tonic-gate2000-09-06  OKUJI Yoshinori  <okuji@gnu.org>
35477c478bd9Sstevel@tonic-gate
35487c478bd9Sstevel@tonic-gate	* stage2/char_io.c [!STAGE1_5] (auto_fill): New variable.
35497c478bd9Sstevel@tonic-gate	[!STAGE1_5] (get_cmdline): Save AUTO_FILL in SAVED_AUTO_FILL in
35507c478bd9Sstevel@tonic-gate	the beginning and restore AUTO_FILL before return.
35517c478bd9Sstevel@tonic-gate	Set AUTO_FILL to one and zero before and after calling
35527c478bd9Sstevel@tonic-gate	print_completions, respectively.
35537c478bd9Sstevel@tonic-gate	(grub_putchar) [!STAGE1_5]: Use a static variable COL to track
35547c478bd9Sstevel@tonic-gate	the position of the cursor. If C is a carriage return, clear
35557c478bd9Sstevel@tonic-gate	COL. If C is a backspace and COL is positive, decrease COL. If C
35567c478bd9Sstevel@tonic-gate	is a printable character, increase COL. In this case, if
35577c478bd9Sstevel@tonic-gate	AUTO_FILL is non-zero and COL is greater than or equal to 79,
35587c478bd9Sstevel@tonic-gate	put a newline automatically.
35597c478bd9Sstevel@tonic-gate	* stage2/shared.h (auto_fill): Declared.
35607c478bd9Sstevel@tonic-gate	* stage2/stage2.c (run_menu): In the menu interface, disable the
35617c478bd9Sstevel@tonic-gate	auto fill mode (i.e. set AUTO_FILL to zero), and enable it again
35627c478bd9Sstevel@tonic-gate	when booting an entry.
35637c478bd9Sstevel@tonic-gate	(cmain): Initialize AUTO_FILL (i.e. set it to one) in the
35647c478bd9Sstevel@tonic-gate	beginning of the loop.
35657c478bd9Sstevel@tonic-gate
35667c478bd9Sstevel@tonic-gate2000-09-06  OKUJI Yoshinori  <okuji@gnu.org>
35677c478bd9Sstevel@tonic-gate
35687c478bd9Sstevel@tonic-gate	Add support for "boot previously booted entry by default", based
35697c478bd9Sstevel@tonic-gate	on the patch by Mike Meyer <mwm@mired.org>, but I've modified
35707c478bd9Sstevel@tonic-gate	his patch thoroughly.
35717c478bd9Sstevel@tonic-gate
35727c478bd9Sstevel@tonic-gate	* grub/asmstub.c (saved_entryno): New variable. This is a dummy.
35737c478bd9Sstevel@tonic-gate	* stage1/stage1.h (COMPAT_VERSION_MINOR): Incremented.
35747c478bd9Sstevel@tonic-gate	* stage2/asm.S (saved_entryno): New variable.
35757c478bd9Sstevel@tonic-gate	(codestart) [!SUPPORT_DISKLESS]: Set INSTALL_SECOND_SECTOR to
35767c478bd9Sstevel@tonic-gate	%ebp. %ebp is set in start.S.
35777c478bd9Sstevel@tonic-gate	(install_second_sector): New variable.
35787c478bd9Sstevel@tonic-gate	* stage2/builtins.c (current_entryno): New variable.
35797c478bd9Sstevel@tonic-gate	(default_func) [!SUPPORT_DISKLESS]: If ARG is "saved", set
35807c478bd9Sstevel@tonic-gate	DEFAULT_ENTRY to SAVED_ENTRYNO.
35817c478bd9Sstevel@tonic-gate	(savedefault_func): New function.
35827c478bd9Sstevel@tonic-gate	(builtin_savedefault): New variable.
35837c478bd9Sstevel@tonic-gate	(builtin_table): Added a pointer to BUILTIN_SAVEDEFAULT.
35847c478bd9Sstevel@tonic-gate	* stage2/shared.h (STAGE2_SAVED_ENTRYNO): New macro.
35857c478bd9Sstevel@tonic-gate	(STAGE2_STAGE2_ID): Changed to 0x10.
35867c478bd9Sstevel@tonic-gate	(STAGE2_FORCE_LBA): Chaged to 0x11.
35877c478bd9Sstevel@tonic-gate	(STAGE2_VER_STR_OFFS): Changed to 0x12.
35887c478bd9Sstevel@tonic-gate	(install_second_sector): Declared.
35897c478bd9Sstevel@tonic-gate	(saved_entryno): Likewise.
35907c478bd9Sstevel@tonic-gate	(current_entryno): Likewise.
35917c478bd9Sstevel@tonic-gate	* stage2/stage2.c (run_menu): Set CURRENT_ENTRYNO to FIRST_ENTRY
35927c478bd9Sstevel@tonic-gate	+ ENTRYNO, right before calling run_script.
35937c478bd9Sstevel@tonic-gate	* stage2/start.S (start): Save the sector number of the second
35947c478bd9Sstevel@tonic-gate	sector in %ebp.
35957c478bd9Sstevel@tonic-gate
35967c478bd9Sstevel@tonic-gate2000-09-05  OKUJI Yoshinori  <okuji@gnu.org>
35977c478bd9Sstevel@tonic-gate
35987c478bd9Sstevel@tonic-gate	* stage1/stage1.S (lba_mode) [!NO_BUGGY_BIOS_IN_THE_WORLD]:
35997c478bd9Sstevel@tonic-gate	Don't check for the geometry, since some BIOSes don't return the
36007c478bd9Sstevel@tonic-gate	number of total sectors correctly, even if they have working LBA
36017c478bd9Sstevel@tonic-gate	support.
36027c478bd9Sstevel@tonic-gate	* stage2/start.S (lba_mode) [!NO_BUGGY_BIOS_IN_THE_WORLD]:
36037c478bd9Sstevel@tonic-gate	Likewise.
36047c478bd9Sstevel@tonic-gate	* stage2/bios.c (biosdisk) [!NO_BUGGY_BIOS_IN_THE_WORLD]:
36057c478bd9Sstevel@tonic-gate	Likewise.
36067c478bd9Sstevel@tonic-gate	Reported by Jan Fricke <fricke@uni-greifswald.de> and Pixel
36077c478bd9Sstevel@tonic-gate	<pixel@mandrakesoft.com>.
36087c478bd9Sstevel@tonic-gate
36097c478bd9Sstevel@tonic-gate2000-09-05  OKUJI Yoshinori  <okuji@gnu.org>
36107c478bd9Sstevel@tonic-gate
36117c478bd9Sstevel@tonic-gate	From Alessandro Rubini <rubini@gnu.org>:
36127c478bd9Sstevel@tonic-gate	* stage2/char_io.c (print_error) [!STAGE1_5]: Print ERRNUM like
36137c478bd9Sstevel@tonic-gate	"Error 9: Unknown boot failure".
36147c478bd9Sstevel@tonic-gate	(print_error) [STAGE1_5]: Don't print a colon.
36157c478bd9Sstevel@tonic-gate	* util/grub-install.in: When checking if an error occurred, use
36167c478bd9Sstevel@tonic-gate	the expression "Error [0-9]*: " instead of "Error: ".
36177c478bd9Sstevel@tonic-gate	* docs/user-ref.texi (Stage1.5 errors): Updated, since the error
36187c478bd9Sstevel@tonic-gate	form changed.
36197c478bd9Sstevel@tonic-gate
36207c478bd9Sstevel@tonic-gate2000-09-04  OKUJI Yoshinori  <okuji@gnu.org>
36217c478bd9Sstevel@tonic-gate
36227c478bd9Sstevel@tonic-gate	* stage2/stage2.c (run_menu) [GRUB_UTIL]: Set DISP_UP and
36237c478bd9Sstevel@tonic-gate	DISP_DOWN to ACS_UARROW and ACS_DARROW, respectively. Don't call
36247c478bd9Sstevel@tonic-gate	grub_printf here.
36257c478bd9Sstevel@tonic-gate	(run_menu) [!GRUB_UTIL]: Don't call grub_printf here. Instead,
36267c478bd9Sstevel@tonic-gate	call it...
36277c478bd9Sstevel@tonic-gate	(run_menu): ... here.
36287c478bd9Sstevel@tonic-gate	* stage2/shared.h (ACS_ULCORNER): Always define this ourselves,
36297c478bd9Sstevel@tonic-gate	whether your curses library has the definition.
36307c478bd9Sstevel@tonic-gate	(ACS_URCORNER): Likewise.
36317c478bd9Sstevel@tonic-gate	(ACS_LLCORNER): Likewise.
36327c478bd9Sstevel@tonic-gate	(ACS_LRCORNER): Likewise.
36337c478bd9Sstevel@tonic-gate	(ACS_HLINE): Likewise.
36347c478bd9Sstevel@tonic-gate	(ACS_VLINE): Likewise.
36357c478bd9Sstevel@tonic-gate	(ACS_LARROW): Likewise.
36367c478bd9Sstevel@tonic-gate	(ACS_RARROW): Likewise.
36377c478bd9Sstevel@tonic-gate	(ACS_UARROW): Likewise.
36387c478bd9Sstevel@tonic-gate	(ACS_DARROW): Likewise.
36397c478bd9Sstevel@tonic-gate
36407c478bd9Sstevel@tonic-gate	* stage2/char_io.c [SUPPORT_SERIAL] (serial_cls): If the
36417c478bd9Sstevel@tonic-gate	terminal is dumb, just put a newline.
36427c478bd9Sstevel@tonic-gate	* stage2/builtins.c (terminal_func) [SUPPORT_SERIAL]: When
36437c478bd9Sstevel@tonic-gate	choosing a terminal, don't set TERMINAL to the type of the
36447c478bd9Sstevel@tonic-gate	terminal. Instead, apply a logical AND operation with
36457c478bd9Sstevel@tonic-gate	TERMINAL_DUMB, since previous code brushed off the dumb
36467c478bd9Sstevel@tonic-gate	attribute.
36477c478bd9Sstevel@tonic-gate
36487c478bd9Sstevel@tonic-gate2000-09-04  OKUJI Yoshinori  <okuji@gnu.org>
36497c478bd9Sstevel@tonic-gate
36507c478bd9Sstevel@tonic-gate	* stage2/stage2.c (run_menu): If SHOW_MENU is zero, print a
36517c478bd9Sstevel@tonic-gate	message with the timeout per second.
36527c478bd9Sstevel@tonic-gate	If GRUB_TIMEOUT is negative, set SHOW_MENU to one, since the
36537c478bd9Sstevel@tonic-gate	condition "no timeout and no interface" is nonsense.
36547c478bd9Sstevel@tonic-gate	If GRUB_TIMEOUT is equal to or greater than zero and the
36557c478bd9Sstevel@tonic-gate	terminal is dumb, set SHOW_MENU to zero.
36567c478bd9Sstevel@tonic-gate	If SHOW_MENU is non-zero and the terminal is dumb, enter the
36577c478bd9Sstevel@tonic-gate	command-line interface instead. If AUTH is false and PASSWORD is
36587c478bd9Sstevel@tonic-gate	non-NULL, prompt the user to enter a password until the entered
36597c478bd9Sstevel@tonic-gate	password is identical to PASSWORD.
36607c478bd9Sstevel@tonic-gate
36617c478bd9Sstevel@tonic-gate2000-09-03  OKUJI Yoshinori  <okuji@gnu.org>
36627c478bd9Sstevel@tonic-gate
36637c478bd9Sstevel@tonic-gate	* util/grub-install.in: Fix a typo: grub_dir -> grubdir.
36647c478bd9Sstevel@tonic-gate	* stage2/builtins.c (install_func) [GRUB_UTIL]: Open a Stage 2
36657c478bd9Sstevel@tonic-gate	with "r+" instead of "r", as GRUB needs to overwrite it.
36667c478bd9Sstevel@tonic-gate
36677c478bd9Sstevel@tonic-gate2000-09-02  OKUJI Yoshinori  <okuji@gnu.org>
36687c478bd9Sstevel@tonic-gate
36697c478bd9Sstevel@tonic-gate	* stage2/stage2.c (run_menu): Don't use either `p' or `n' to
36707c478bd9Sstevel@tonic-gate	move the cursor, because `p' is already used for another
36717c478bd9Sstevel@tonic-gate	purpose (password).
36727c478bd9Sstevel@tonic-gate	(run_menu) [SUPPORT_SERIAL]: Don't set the variables DISP_UP and
36737c478bd9Sstevel@tonic-gate	DISP_DOWN at the start time. Instead, set them just before using
36747c478bd9Sstevel@tonic-gate	them actually, because TERMINAL may change when running a menu.
36757c478bd9Sstevel@tonic-gate
36767c478bd9Sstevel@tonic-gate2000-09-01  Klaus Reichl  <Klaus.Reichl@alcatel.at>
36777c478bd9Sstevel@tonic-gate
36787c478bd9Sstevel@tonic-gate	* stage2/stage2.c (run_menu): Setup and use disp_up, disp_down
36797c478bd9Sstevel@tonic-gate	depending on the terminal mode.
36807c478bd9Sstevel@tonic-gate	(run_menu): Allow '^' (resp. 'p') and 'v' (resp 'n') keys we
36817c478bd9Sstevel@tonic-gate	described in our help above (resp. authors preferences).
36827c478bd9Sstevel@tonic-gate
36837c478bd9Sstevel@tonic-gate2000-08-31  Klaus Reichl  <Klaus.Reichl@alcatel.at>
36847c478bd9Sstevel@tonic-gate
36857c478bd9Sstevel@tonic-gate	* stage2/stage2.c (set_line): Go back one char, which is
36867c478bd9Sstevel@tonic-gate	consistent with the original situation, when a timeout was
36877c478bd9Sstevel@tonic-gate	running.
36887c478bd9Sstevel@tonic-gate	(run_menu): If GRUB_TIMEOUT is stopped don't loop busy over
36897c478bd9Sstevel@tonic-gate	CHECKKEY, just relax in GETKEY.
36907c478bd9Sstevel@tonic-gate
36917c478bd9Sstevel@tonic-gate	* stage2/builtins.c (serial_func): --speed handling: corrected
36927c478bd9Sstevel@tonic-gate	typo: set SPEED instead of PORT.
36937c478bd9Sstevel@tonic-gate
36947c478bd9Sstevel@tonic-gate2000-08-31  OKUJI Yoshinori  <okuji@gnu.org>
36957c478bd9Sstevel@tonic-gate
36967c478bd9Sstevel@tonic-gate	* stage2/builtins.c (terminal_func): Added two new options,
36977c478bd9Sstevel@tonic-gate	--dumb and --timeout=SECS.
36987c478bd9Sstevel@tonic-gate	* stage2/char_io.c [!STAGE1_5] (getkey): Use logical AND
36997c478bd9Sstevel@tonic-gate	operations, when checking if the terminal is a console or a
37007c478bd9Sstevel@tonic-gate	serial terminal.
37017c478bd9Sstevel@tonic-gate	[!STAGE1_5] (getkey) [SUPPORT_SERIAL]: Don't check if both
37027c478bd9Sstevel@tonic-gate	TERMINAL_CONSOLE and TERMINAL_SERIAL are set in TERMINAL.
37037c478bd9Sstevel@tonic-gate
37047c478bd9Sstevel@tonic-gate2000-08-31  OKUJI Yoshinori  <okuji@gnu.org>
37057c478bd9Sstevel@tonic-gate
37067c478bd9Sstevel@tonic-gate	* stage1/stage1.S (MOV_MEM_TO_AL): New macro.
37077c478bd9Sstevel@tonic-gate	(real_start): Use the macro MOV_MEM_TO_AL instead of using movb
37087c478bd9Sstevel@tonic-gate	directly, because binutils-2.9.1.0.x doesn't produce a short
37097c478bd9Sstevel@tonic-gate	opcode for it automatically. Reported by Alessandro Rubini
37107c478bd9Sstevel@tonic-gate	<rubini@gnu.org>.
37117c478bd9Sstevel@tonic-gate
37127c478bd9Sstevel@tonic-gate2000-08-30  OKUJI Yoshinori  <okuji@gnu.org>
37137c478bd9Sstevel@tonic-gate
37147c478bd9Sstevel@tonic-gate	* configure.in (CPPFLAGS): Remove -Wundef by default. Add the
37157c478bd9Sstevel@tonic-gate	option only if the C compiler supports it, because GCC 2.7.x
37167c478bd9Sstevel@tonic-gate	doesn't support it.
37177c478bd9Sstevel@tonic-gate	* grub/main.c (longopts): The type of the argument for "hold" is
37187c478bd9Sstevel@tonic-gate	changed to OPTIONAL_ARGUMENT.
37197c478bd9Sstevel@tonic-gate	(main): If --hold is specified, check if OPTARG is zero. If so,
37207c478bd9Sstevel@tonic-gate	set HOLD to -1, otherwise, set it to the digit OPTARG.
37217c478bd9Sstevel@tonic-gate	If HOLD is greater than zero, decrease it once per loop.
37227c478bd9Sstevel@tonic-gate
37237c478bd9Sstevel@tonic-gate2000-08-30  OKUJI Yoshinori  <okuji@gnu.org>
37247c478bd9Sstevel@tonic-gate
37257c478bd9Sstevel@tonic-gate	The command-line interface is switched to single-line editing
37267c478bd9Sstevel@tonic-gate	mode.
37277c478bd9Sstevel@tonic-gate
37287c478bd9Sstevel@tonic-gate	* stage2/char_io.c [!STAGE1_5] (get_cmdline): Extensively
37297c478bd9Sstevel@tonic-gate	rewritten. The nested functions cl_print and cl_kill_to_end are
37307c478bd9Sstevel@tonic-gate	removed, cl_refresh, cl_backward, cl_forward and cl_delete are
37317c478bd9Sstevel@tonic-gate	added, and, cl_init and cl_insert are rewritten from scratch.
37327c478bd9Sstevel@tonic-gate	See the source code, for more information. I don't think this
37337c478bd9Sstevel@tonic-gate	kind of changes can be represented in ChangeLog.
37347c478bd9Sstevel@tonic-gate	[!STAGE1_5] (CMDLINE_WIDTH): New macro.
37357c478bd9Sstevel@tonic-gate	[!STAGE1_5] (CMDLINE_MARGIN): Likewise.
37367c478bd9Sstevel@tonic-gate	* stage2/shared.h (TERMINAL_DUMB): Likewise.
37377c478bd9Sstevel@tonic-gate
37387c478bd9Sstevel@tonic-gate2000-08-28  OKUJI Yoshinori  <okuji@gnu.org>
37397c478bd9Sstevel@tonic-gate
37407c478bd9Sstevel@tonic-gate	* grub/asmstub.c (console_putchar) [HAVE_LIBCURSES]: If
37417c478bd9Sstevel@tonic-gate	USE_CURSES is true, emulate a new line like a ordinary terminal,
37427c478bd9Sstevel@tonic-gate	because ncurses treats it badly. If current position on y-axis
37437c478bd9Sstevel@tonic-gate	is the bottom of the screen, call scroll. Otherwise, call move
37447c478bd9Sstevel@tonic-gate	with the arguments, Y + 1 and X, where X and Y are current
37457c478bd9Sstevel@tonic-gate	position of the cursor.
37467c478bd9Sstevel@tonic-gate
37477c478bd9Sstevel@tonic-gate2000-08-28  OKUJI Yoshinori  <okuji@gnu.org>
37487c478bd9Sstevel@tonic-gate
37497c478bd9Sstevel@tonic-gate	* stage2/asm.S (console_putchar): Don't print a carriage return
37507c478bd9Sstevel@tonic-gate	when C is a newline.
37517c478bd9Sstevel@tonic-gate	* stage2/char_io.c (grub_putchar): Call grub_putchar with the
37527c478bd9Sstevel@tonic-gate	arugment set to a carriage return, if C is a newline.
37537c478bd9Sstevel@tonic-gate	[!STAGE1_5 && SUPPORT_SERIAL]: Don't print a carriage return
37547c478bd9Sstevel@tonic-gate	when C is a newline.
37557c478bd9Sstevel@tonic-gate
37567c478bd9Sstevel@tonic-gate2000-08-27  OKUJI Yoshinori  <okuji@gnu.org>
37577c478bd9Sstevel@tonic-gate
37587c478bd9Sstevel@tonic-gate	* lib/device.c [__linux__]: Don't include linux/fs.h.
37597c478bd9Sstevel@tonic-gate	[!BLKGETSIZE] (BLKGETSIZE): Defined as _IO(0x12,96).
37607c478bd9Sstevel@tonic-gate	* grub/asmstub.c [__linux__]: Don't include linux/fs.h.
37617c478bd9Sstevel@tonic-gate
37627c478bd9Sstevel@tonic-gate2000-08-27  OKUJI Yoshinori  <okuji@gnu.org>
37637c478bd9Sstevel@tonic-gate
37647c478bd9Sstevel@tonic-gate	Preserve a magic number used by Windows NT in a MBR. Shit!
37657c478bd9Sstevel@tonic-gate	Reported by Khimenko Victor.
37667c478bd9Sstevel@tonic-gate
37677c478bd9Sstevel@tonic-gate	* stage1/stage1.h (STAGE1_WINDOWS_NT_MAGIC): New macro.
37687c478bd9Sstevel@tonic-gate	* stage1/stage1.S (copy_buffer): Use pusha and popa, instead of
37697c478bd9Sstevel@tonic-gate	pushing/poping %cx and %si separately, to reduce the code size.
37707c478bd9Sstevel@tonic-gate	(nt_magic): New label. Set the offset to _start plus
37717c478bd9Sstevel@tonic-gate	STAGE1_WINDOWS_NT_MAGIC
37727c478bd9Sstevel@tonic-gate	(part_start): New label.
37737c478bd9Sstevel@tonic-gate	* stage2/builtins.c (install_func): If DEST_DRIVE is a hard
37747c478bd9Sstevel@tonic-gate	disk, copy the possible partition table and Windows NT magic to
37757c478bd9Sstevel@tonic-gate	STAGE1_BUFFER from OLD_SECT.
37767c478bd9Sstevel@tonic-gate
37777c478bd9Sstevel@tonic-gate2000-08-26  OKUJI Yoshinori  <okuji@gnu.org>
37787c478bd9Sstevel@tonic-gate
37797c478bd9Sstevel@tonic-gate	* stage2/char_io.c (translate_keycode) [SUPPORT_SERIAL]: Don't
37807c478bd9Sstevel@tonic-gate	drain the input buffer, since that was irritating.
37817c478bd9Sstevel@tonic-gate
37827c478bd9Sstevel@tonic-gate2000-08-26  OKUJI Yoshinori  <okuji@gnu.org>
37837c478bd9Sstevel@tonic-gate
37847c478bd9Sstevel@tonic-gate	Don't save/restore fragile registers unnecessarily.
37857c478bd9Sstevel@tonic-gate
37867c478bd9Sstevel@tonic-gate	* stage2/asm.S [!STAGE1_5] (track_int13): Don't save/restore
37877c478bd9Sstevel@tonic-gate	%ecx, %edx, or %eax.
37887c478bd9Sstevel@tonic-gate	[!STAGE1_5] (set_int13_handler): Likewise.
37897c478bd9Sstevel@tonic-gate	(biosdisk_int13_extensions): Likewise.
37907c478bd9Sstevel@tonic-gate	(biosdisk_standard): Likewise.
37917c478bd9Sstevel@tonic-gate	(check_int13_extensions): Likewise.
37927c478bd9Sstevel@tonic-gate	(get_diskinfo_int13_extensions): Likewise.
37937c478bd9Sstevel@tonic-gate	(get_diskinfo_standard): Likewise.
37947c478bd9Sstevel@tonic-gate	(get_diskinfo_floppy): Likewise.
37957c478bd9Sstevel@tonic-gate	[!STAGE1_5] (get_eisamemsize): Likewise.
37967c478bd9Sstevel@tonic-gate	[!STAGE1_5] (get_mmap_entry): Likewise.
37977c478bd9Sstevel@tonic-gate	[!STAGE1_5] (console_cls): Likewise.
37987c478bd9Sstevel@tonic-gate	[!STAGE1_5] (nocursor): Likewise.
37997c478bd9Sstevel@tonic-gate	[!STAGE1_5] (console_getxy): Likewise.
38007c478bd9Sstevel@tonic-gate	[!STAGE1_5] (console_gotoxy): Likewise.
38017c478bd9Sstevel@tonic-gate	[!STAGE1_5] (set_attrib): Likewise.
38027c478bd9Sstevel@tonic-gate	[!STAGE1_5] (getrtsecs): Likewise.
38037c478bd9Sstevel@tonic-gate	[!STAGE1_5] (currticks): Likewise, and don't zero %eax
38047c478bd9Sstevel@tonic-gate	explicitly, since prot_to_real does that.
38057c478bd9Sstevel@tonic-gate
38067c478bd9Sstevel@tonic-gate2000-08-25  OKUJI Yoshinori  <okuji@gnu.org>
38077c478bd9Sstevel@tonic-gate
38087c478bd9Sstevel@tonic-gate	* stage2/char_io.c [!STAGE1_5] (translate_keycode): New
38097c478bd9Sstevel@tonic-gate	function. The serial part is stolen from the patch by Christoph
38107c478bd9Sstevel@tonic-gate	Plattner.
38117c478bd9Sstevel@tonic-gate	[!STAGE1_5] (get_cmdline): Call translate_keycode instead of
38127c478bd9Sstevel@tonic-gate	translating special key codes into ASCII characters by itself.
38137c478bd9Sstevel@tonic-gate	* stage2/stage2.c (run_menu): Wrap getkey with the macro
38147c478bd9Sstevel@tonic-gate	ASCII_CHAR, when checking if ESC is pressed.
38157c478bd9Sstevel@tonic-gate	Call translate_keycode as well as getkey, unless checkkey
38167c478bd9Sstevel@tonic-gate	returns -1. So don't check if C is KEY_DOWN or KEY_UP. And don't
38177c478bd9Sstevel@tonic-gate	use the macro ASCII_CHAR for C explicitly.
38187c478bd9Sstevel@tonic-gate	* stage2/shared.h (translate_keycode): Declared.
38197c478bd9Sstevel@tonic-gate
38207c478bd9Sstevel@tonic-gate2000-08-24  OKUJI Yoshinori  <okuji@gnu.org>
38217c478bd9Sstevel@tonic-gate
38227c478bd9Sstevel@tonic-gate	* stage2/builtins.c [GRUB_UTIL]: Include stdio.h before
38237c478bd9Sstevel@tonic-gate	shared.h. Reported by Mathieu Chouquet-Stringer
38247c478bd9Sstevel@tonic-gate	<mchouque@cs.stevens-tech.edu>.
38257c478bd9Sstevel@tonic-gate
38267c478bd9Sstevel@tonic-gate2000-08-21  OKUJI Yoshinori  <okuji@gnu.org>
38277c478bd9Sstevel@tonic-gate
38287c478bd9Sstevel@tonic-gate	* configure.in (--enable-serial-speed-emulation): New option.
38297c478bd9Sstevel@tonic-gate	(SERIAL_SPEED_SIMULATION): New conditional.
38307c478bd9Sstevel@tonic-gate	* grub/Makefile.am (SERIAL_FLAGS): New variable. Set
38317c478bd9Sstevel@tonic-gate	-DSUPPORT_SERIAL=1 and -DSIMULATE_SLOWNESS_OF_SERIAL=1, if
38327c478bd9Sstevel@tonic-gate	SERIAL_SPEED_SIMULATION is defined, otherwise, set it to
38337c478bd9Sstevel@tonic-gate	only -DSUPPORT_SERIAL=1.
38347c478bd9Sstevel@tonic-gate	(AM_CFLAGS): Removed -DSUPPORT_SERIAL=1 and added
38357c478bd9Sstevel@tonic-gate	$(SERIAL_FLAGS).
38367c478bd9Sstevel@tonic-gate	* grub/asmstub.c [SIMULATE_SLOWNESS_OF_SERIAL] (serial_speed):
38377c478bd9Sstevel@tonic-gate	New variable.
38387c478bd9Sstevel@tonic-gate	(grub_setjmp): Removed.
38397c478bd9Sstevel@tonic-gate	(grub_longjmp): Likewise.
38407c478bd9Sstevel@tonic-gate	(serial_getkey) [SIMULATE_SLOWNESS_OF_SERIAL]: Wait for
38417c478bd9Sstevel@tonic-gate	1000000 / (SERIAL_SPEED >> 3) microseconds using gettimeofday.
38427c478bd9Sstevel@tonic-gate	(serial_putchar) [SIMULATE_SLOWNESS_OF_SERIAL]: Likewise.
38437c478bd9Sstevel@tonic-gate	(serial_init) [SIMULATE_SLOWNESS_OF_SERIAL]: Set SERIAL_SPEED to
38447c478bd9Sstevel@tonic-gate	SPEED.
38457c478bd9Sstevel@tonic-gate	* stage2/builtins.c (serial_func) [SUPPORT_SERIAL]: Added
38467c478bd9Sstevel@tonic-gate	a new option, `--speed'.
38477c478bd9Sstevel@tonic-gate	(builtin_serial): Added a description about --speed.
38487c478bd9Sstevel@tonic-gate	(terminal_func): When get a key from a serial device, if GRUB is
38497c478bd9Sstevel@tonic-gate	in the command-line interface, call grub_longjmp with
38507c478bd9Sstevel@tonic-gate	RESTART_CMDLINE_ENV, instead of init_page.
38517c478bd9Sstevel@tonic-gate	* stage2/cmdline.c (restart_cmdline_env): New variable.
38527c478bd9Sstevel@tonic-gate	(enter_cmdline): Call grub_setjmp with RESTART_CMDLINE_ENV after
38537c478bd9Sstevel@tonic-gate	calling init_cmdline.
38547c478bd9Sstevel@tonic-gate	(run_script): Run BUILTIN->FUNC with BUILTIN_SCRIPT instead of
38557c478bd9Sstevel@tonic-gate	BUILTIN_CMDLINE.
38567c478bd9Sstevel@tonic-gate	* stage2/shared.h (BUILTIN_SCRIPT): New macro.
38577c478bd9Sstevel@tonic-gate	[GRUB_UTIL] (grub_setjmp): Defined as setjmp.
38587c478bd9Sstevel@tonic-gate	[GRUB_UTIL] (grub_longjmp): Defined as longjmp.
38597c478bd9Sstevel@tonic-gate	(restart_cmdline_env): Declared.
38607c478bd9Sstevel@tonic-gate
38617c478bd9Sstevel@tonic-gate2000-08-20  OKUJI Yoshinori  <okuji@gnu.org>
38627c478bd9Sstevel@tonic-gate
38637c478bd9Sstevel@tonic-gate	* configure.in (--enable-serial): New option. Serial terminal
38647c478bd9Sstevel@tonic-gate	support will be enabled by default, once it is stabilized.
38657c478bd9Sstevel@tonic-gate	(SERIAL_SUPPORT): New conditional.
38667c478bd9Sstevel@tonic-gate	* grub/Makefile.am (AM_CFLAGS): Added -DSUPPORT_SERIAL=1.
38677c478bd9Sstevel@tonic-gate	* grub/asmstub.c (cls): Renamed to ...
38687c478bd9Sstevel@tonic-gate	(console_cls): ... this.
38697c478bd9Sstevel@tonic-gate	(getxy): Renamed to ...
38707c478bd9Sstevel@tonic-gate	(console_getxy): ... this.
38717c478bd9Sstevel@tonic-gate	(gotoxy): Renamed to ...
38727c478bd9Sstevel@tonic-gate	(console_gotoxy): ... this.
38737c478bd9Sstevel@tonic-gate	* stage2/Makefile.am (libgrub_a_CFLAGS): Added
38747c478bd9Sstevel@tonic-gate	-DSUPPORT_SERIAL=1.
38757c478bd9Sstevel@tonic-gate	(NETBOOT_FLAGS): New variable.
38767c478bd9Sstevel@tonic-gate	(SERIAL_FLAGS): Likewise.
38777c478bd9Sstevel@tonic-gate	(STAGE2_COMPILE): Added $(NETBOOT_FLAGS) and $(SERIAL_FLAGS).
38787c478bd9Sstevel@tonic-gate	* stage2/asm.S [!STAGE1_5] (cls): Renamed to ...
38797c478bd9Sstevel@tonic-gate	[!STAGE1_5] (console_cls): ... this.
38807c478bd9Sstevel@tonic-gate	[!STAGE1_5] (getxy): Renamed to ...
38817c478bd9Sstevel@tonic-gate	[!STAGE1_5] (console_getxy): ... this.
38827c478bd9Sstevel@tonic-gate	[!STAGE1_5] (gotoxy): Renamed to ...
38837c478bd9Sstevel@tonic-gate	[!STAGE1_5] (console_gotoxy): ... this.
38847c478bd9Sstevel@tonic-gate	* stage2/builtins.c (terminal_func): If the bit flag
38857c478bd9Sstevel@tonic-gate	BUILTIN_CMDLINE in FLAGS is set, call init_page. But this should
38867c478bd9Sstevel@tonic-gate	be fixed so that it restarts enter_cmdline instead.
38877c478bd9Sstevel@tonic-gate	* stage2/char_io.c [!STAGE1_5] (gotoxy): New function.
38887c478bd9Sstevel@tonic-gate	[!STAGE1_5] (serial_gotoxy): Likewise.
38897c478bd9Sstevel@tonic-gate	[!STAGE1_5] (getxy): Likewise.
38907c478bd9Sstevel@tonic-gate	[!STAGE1_5] (serial_getxy): Likewise.
38917c478bd9Sstevel@tonic-gate	[!STAGE1_5] (cls): Likewise.
38927c478bd9Sstevel@tonic-gate	[!STAGE1_5] (serial_cls): Likewise.
38937c478bd9Sstevel@tonic-gate	* stage2/serial.h (serial_cls): Declared.
38947c478bd9Sstevel@tonic-gate	(serial_getxy): Likewise.
38957c478bd9Sstevel@tonic-gate	(serial_gotoxy): Likewise.
38967c478bd9Sstevel@tonic-gate	* stage2/shared.h (console_cls): Likewise.
38977c478bd9Sstevel@tonic-gate	(console_getxy): Likewise.
38987c478bd9Sstevel@tonic-gate	(console_gotoxy): Likewise.
38997c478bd9Sstevel@tonic-gate	* stage2/stage2.c (print_entries): If serial terminal is
39007c478bd9Sstevel@tonic-gate	enabled, print ACS_UARROW and ACS_DARROW instead of DISP_UP and
39017c478bd9Sstevel@tonic-gate	DISP_DOWN, respectively.
39027c478bd9Sstevel@tonic-gate	(print_border): If serial terminal is enabled, print
39037c478bd9Sstevel@tonic-gate	ACS_ULCORNER, ACS_URCORNER, ACS_LLCORNER, ACS_LRCORNER,
39047c478bd9Sstevel@tonic-gate	ACS_HLINE and ACS_VLINE instead of DISP_UL, DISP_UR, DISP_LL,
39057c478bd9Sstevel@tonic-gate	DISP_LR, DISP_HORIZ and DISP_VERT, respectively.
39067c478bd9Sstevel@tonic-gate	(print_border) [SUPPORT_SERIAL]: Color the menu only if console
39077c478bd9Sstevel@tonic-gate	is used.
39087c478bd9Sstevel@tonic-gate	(set_line): Take two more arguments, ENTRYNO and MENU_ENTRIES.
39097c478bd9Sstevel@tonic-gate	(set_line_normal): Likewise.
39107c478bd9Sstevel@tonic-gate	(set_line_highlight): Likewise.
39117c478bd9Sstevel@tonic-gate	(set_line) [SUPPORT_SERIAL]: If serial terminal is enabled, get
39127c478bd9Sstevel@tonic-gate	the menu entry whose attributes are being changed and redraw the
39137c478bd9Sstevel@tonic-gate	line.
39147c478bd9Sstevel@tonic-gate	(set_line_highlight) [SUPPORT_SERIAL]: If serial terminal is
39157c478bd9Sstevel@tonic-gate	enabled, print `ESC [ 7 m' and `ESC [ 0 m' before and after
39167c478bd9Sstevel@tonic-gate	calling set_line, respectively.
39177c478bd9Sstevel@tonic-gate	(run_menu) [SUPPORT_SERIAL]: Call nocursor only if console is
39187c478bd9Sstevel@tonic-gate	used.
39197c478bd9Sstevel@tonic-gate
39207c478bd9Sstevel@tonic-gate2000-08-20  OKUJI Yoshinori  <okuji@gnu.org>
39217c478bd9Sstevel@tonic-gate
39227c478bd9Sstevel@tonic-gate	Now the serial console support is partially working.
39237c478bd9Sstevel@tonic-gate
39247c478bd9Sstevel@tonic-gate	* grub/asmstub.c (serial_checkkey): Specify a pointer to TIMEOUT
39257c478bd9Sstevel@tonic-gate	as the fifth argument to select.
39267c478bd9Sstevel@tonic-gate	(serial_get_port): New function. Just a dummy.
39277c478bd9Sstevel@tonic-gate	(serial_init): If a serial device is opened, close SERIAL_FD
39287c478bd9Sstevel@tonic-gate	before opeing a new serial device.
39297c478bd9Sstevel@tonic-gate	Don't specify O_NDELAY to open.
39307c478bd9Sstevel@tonic-gate	* stage2/builtins.c [SUPPORT_SERIAL]: Include serial.h.
39317c478bd9Sstevel@tonic-gate	(serial_func): New function.
39327c478bd9Sstevel@tonic-gate	(builtin_serial): New variable.
39337c478bd9Sstevel@tonic-gate	(terminal_func): New function.
39347c478bd9Sstevel@tonic-gate	(builtin_terminal): New variable.
39357c478bd9Sstevel@tonic-gate	(builtin_table): Add pointers to BUILTIN_SERIAL and
39367c478bd9Sstevel@tonic-gate	BUILTIN_TERMINAL.
39377c478bd9Sstevel@tonic-gate	* stage2/char_io.c [SUPPORT_SERIAL]: Include serial.h.
39387c478bd9Sstevel@tonic-gate	(getkey) [SUPPORT_SERIAL]: If both TERMINAL_CONSOLE and
39397c478bd9Sstevel@tonic-gate	TERMINAL_SERIAL are set in TERMINAL simultaneously, print a
39407c478bd9Sstevel@tonic-gate	warning and force the console terminal.
39417c478bd9Sstevel@tonic-gate	(checkkey) [SUPPORT_SERIAL]: If TERMINAL_SERIAL is set in
39427c478bd9Sstevel@tonic-gate	TERMINAL, call serial_checkkey.
39437c478bd9Sstevel@tonic-gate	(grub_putchar) [SUPPORT_SERIAL]: If TERMINAL_SERIAL is set in
39447c478bd9Sstevel@tonic-gate	TERMINAL, call serial_putchar. If C is a newline, print a
39457c478bd9Sstevel@tonic-gate	carriage return, before printing a newline.
39467c478bd9Sstevel@tonic-gate
39477c478bd9Sstevel@tonic-gate2000-08-15  OKUJI Yoshinori  <okuji@gnu.org>
39487c478bd9Sstevel@tonic-gate
39497c478bd9Sstevel@tonic-gate	The image `nbgrub' now relocates itself from 0x10000 to 0x8000,
39507c478bd9Sstevel@tonic-gate	since the Network Boot Image Proposal doesn't permit a second
39517c478bd9Sstevel@tonic-gate	loader to be loaded below 0x10000. Reported by Matthias
39527c478bd9Sstevel@tonic-gate	Kretschmer <McCratch@gmx.net>.
39537c478bd9Sstevel@tonic-gate
39547c478bd9Sstevel@tonic-gate	* Makefile.am (NBLOADER_LINK): New variable.
39557c478bd9Sstevel@tonic-gate	(nbloader_exec_LDFLAGS): Set to $(NBLOADER_LINK) instead of
39567c478bd9Sstevel@tonic-gate	$(START_LINK).
39577c478bd9Sstevel@tonic-gate	* stage2/nbi.h (NBI_DEST_ADDR): Changed to 0x10000.
39587c478bd9Sstevel@tonic-gate	(NBI_DEST_SEG): New macro.
39597c478bd9Sstevel@tonic-gate	(NBI_DEST_OFF): Likewise.
39607c478bd9Sstevel@tonic-gate	(RELOCATED_ADDR): Likewise.
39617c478bd9Sstevel@tonic-gate	(RELOCATED_SEG): Likewise.
39627c478bd9Sstevel@tonic-gate	(RELOCATED_OFF): Likewise.
39637c478bd9Sstevel@tonic-gate	(STAGE2_START_ADDR): Likewise.
39647c478bd9Sstevel@tonic-gate	* stage2/nbloader.S: Added .code16 directive at the start of the
39657c478bd9Sstevel@tonic-gate	code.
39667c478bd9Sstevel@tonic-gate	Set the segment and the offset of the load address to
39677c478bd9Sstevel@tonic-gate	NBI_DEST_SEG and NBI_DEST_OFF, respectively.
39687c478bd9Sstevel@tonic-gate	Set the segment and the offset of the start address to
39697c478bd9Sstevel@tonic-gate	NBI_DEST_SEG and NBI_DEST_OFF + relocate - _start, respectively.
39707c478bd9Sstevel@tonic-gate	Added a routine for relocating itself.
39717c478bd9Sstevel@tonic-gate	(relocate): New label.
39727c478bd9Sstevel@tonic-gate	(copy_rest): Likewise.
39737c478bd9Sstevel@tonic-gate	(copy_loop): Likewise.
39747c478bd9Sstevel@tonic-gate	(copy): Likewise.
39757c478bd9Sstevel@tonic-gate	(boot_stage2): Likewise.
39767c478bd9Sstevel@tonic-gate
39777c478bd9Sstevel@tonic-gate2000-08-13  OKUJI Yoshinori  <okuji@gnu.org>
39787c478bd9Sstevel@tonic-gate
39797c478bd9Sstevel@tonic-gate	* grub/main.c (main): Move the version number inside the
39807c478bd9Sstevel@tonic-gate	parentheses, since the grub shell is merely one of the programs
39817c478bd9Sstevel@tonic-gate	included in GNU GRUB.
39827c478bd9Sstevel@tonic-gate
39837c478bd9Sstevel@tonic-gate2000-08-13  OKUJI Yoshinori  <okuji@gnu.org>
39847c478bd9Sstevel@tonic-gate
39857c478bd9Sstevel@tonic-gate	Add a serial device emulation into the grub shell.
39867c478bd9Sstevel@tonic-gate
39877c478bd9Sstevel@tonic-gate	* grub/asmstub.c: Include sys/time.h and termios.h.
39887c478bd9Sstevel@tonic-gate	(serial_fd): New variable.
39897c478bd9Sstevel@tonic-gate	(serial_device): Likewise.
39907c478bd9Sstevel@tonic-gate	(serial_getkey): New function.
39917c478bd9Sstevel@tonic-gate	(serial_checkkey): Likewise.
39927c478bd9Sstevel@tonic-gate	(serial_putchar): Likewise.
39937c478bd9Sstevel@tonic-gate	(get_termios_speed): Likewise.
39947c478bd9Sstevel@tonic-gate	(serial_init): Likewise.
39957c478bd9Sstevel@tonic-gate	(set_serial_device): Likewise.
39967c478bd9Sstevel@tonic-gate	(grub_stage2): Restore SERIAL_DEVICE and SERIAL_FD, if they were
39977c478bd9Sstevel@tonic-gate	allocated.
39987c478bd9Sstevel@tonic-gate	* stage2/serial.h [GRUB_UTIL] (set_serial_device): Declared.
39997c478bd9Sstevel@tonic-gate
40007c478bd9Sstevel@tonic-gate2000-08-13  OKUJI Yoshinori  <okuji@gnu.org>
40017c478bd9Sstevel@tonic-gate
40027c478bd9Sstevel@tonic-gate	* stage2/asm.S (codestart) [SUPPORT_DISKLESS]: Don't reset a
40037c478bd9Sstevel@tonic-gate	disk system. That is not only uncessary but also harmful.
40047c478bd9Sstevel@tonic-gate
40057c478bd9Sstevel@tonic-gate2000-08-12  OKUJI Yoshinori  <okuji@gnu.org>
40067c478bd9Sstevel@tonic-gate
40077c478bd9Sstevel@tonic-gate	Add a serial device driver (but only the driver).
40087c478bd9Sstevel@tonic-gate
40097c478bd9Sstevel@tonic-gate	* stage2/serial.c: New file.
40107c478bd9Sstevel@tonic-gate	* stage2/serial.h: Likewise.
40117c478bd9Sstevel@tonic-gate	* stage2/shared.h (serial_getkey): Moved to stage2/serial.h.
40127c478bd9Sstevel@tonic-gate	(serial_checkkey): Likewise.
40137c478bd9Sstevel@tonic-gate	(serial_putchar): Likewise.
40147c478bd9Sstevel@tonic-gate	* stage2/Makefile.am (noinst_HEADERS): Added serial.h.
40157c478bd9Sstevel@tonic-gate	(pre_stage2_exec_SOURCES): Added serial.c.
40167c478bd9Sstevel@tonic-gate
40177c478bd9Sstevel@tonic-gate2000-08-10  Pavel Roskin  <proski@gnu.org>
40187c478bd9Sstevel@tonic-gate
40197c478bd9Sstevel@tonic-gate	* docs/tutorial.texi: Minor fixes.
40207c478bd9Sstevel@tonic-gate
40217c478bd9Sstevel@tonic-gate2000-08-10  OKUJI Yoshinori  <okuji@gnu.org>
40227c478bd9Sstevel@tonic-gate
40237c478bd9Sstevel@tonic-gate	* docs/tutorial.texi (Installation): Divided into three sections
40247c478bd9Sstevel@tonic-gate	instead of two sections. Don't describe the usage of the the
40257c478bd9Sstevel@tonic-gate	grub shell any longer. Instead, how to use grub-install is
40267c478bd9Sstevel@tonic-gate	documented.
40277c478bd9Sstevel@tonic-gate
40287c478bd9Sstevel@tonic-gate2000-08-09  OKUJI Yoshinori  <okuji@gnu.org>
40297c478bd9Sstevel@tonic-gate
40307c478bd9Sstevel@tonic-gate	* stage2/builtins.c [GRUB_UTIL]: Include stdio.h.
40317c478bd9Sstevel@tonic-gate	(embed_func) [GRUB_UTIL && __linux__]: When embedding a Stage
40327c478bd9Sstevel@tonic-gate	1.5 into a partition, call write_to_partition instead of
40337c478bd9Sstevel@tonic-gate	biosdisk.
40347c478bd9Sstevel@tonic-gate	(install_func): Set DEST_PARTITION to the partition where Stage
40357c478bd9Sstevel@tonic-gate	1 resides.
40367c478bd9Sstevel@tonic-gate	Set SRC_PART_START to the starting address of the partition
40377c478bd9Sstevel@tonic-gate	where Stage 2 resides.
40387c478bd9Sstevel@tonic-gate	(install_func) [GRUB_UTIL]: Set STAGE2_OS_FILE to the file name
40397c478bd9Sstevel@tonic-gate	of Stage 2 under an OS, if the new option "--stage2" is
40407c478bd9Sstevel@tonic-gate	specified. Otherwise, set it to null.
40417c478bd9Sstevel@tonic-gate	If STAGE2_OS_FILE is not null, modify the Stage 2 via the
40427c478bd9Sstevel@tonic-gate	filesystem serviced by the OS.
40437c478bd9Sstevel@tonic-gate	(install_func) [GRUB_UTIL && __linux__]: If STAGE2_OS_FILE is
40447c478bd9Sstevel@tonic-gate	null but the Stage2 resides in a partition, use
40457c478bd9Sstevel@tonic-gate	write_to_partition.
40467c478bd9Sstevel@tonic-gate	If DEST_PARTITION is not 0xFFFFFF, use write_to_partition, to
40477c478bd9Sstevel@tonic-gate	embed Stage 1.
40487c478bd9Sstevel@tonic-gate	(setup_func) [GRUB_UTIL]: If --stage2 is specified, set
40497c478bd9Sstevel@tonic-gate	STAGE2_ARG to the string pointing to the option. Otherwise, set
40507c478bd9Sstevel@tonic-gate	it to null.
40517c478bd9Sstevel@tonic-gate	(setup_func) [!GRUB_UTIL]: Set STAGE2_ARG to null.
40527c478bd9Sstevel@tonic-gate	(setup_func): If STAGE2_ARG is not null, add STAGE2_ARG and a
40537c478bd9Sstevel@tonic-gate	space character into CMD_ARG.
40547c478bd9Sstevel@tonic-gate	* lib/device.c (_LARGEFILE_SOURCE): Defined.
40557c478bd9Sstevel@tonic-gate	(_FILE_OFFSET_BITS): Likewise.
40567c478bd9Sstevel@tonic-gate	[__linux__] (write_to_partition): New function.
40577c478bd9Sstevel@tonic-gate	* lib/device.h [__linux__] (write_to_partition): Declared.
40587c478bd9Sstevel@tonic-gate	* util/grub-install.in: Specify the option "--stage2" for the
40597c478bd9Sstevel@tonic-gate	command "setup".
40607c478bd9Sstevel@tonic-gate
40617c478bd9Sstevel@tonic-gate2000-08-04  Jochen Hoenicke  <jochen@gnu.org>
40627c478bd9Sstevel@tonic-gate
40637c478bd9Sstevel@tonic-gate	* stage2/fsys_fat.c (fat_superblock): clust_eof_marker added.
40647c478bd9Sstevel@tonic-gate	(fat_mount): Initialize clust_eof_marker to 0xff8, 0xfff8, or
40657c478bd9Sstevel@tonic-gate	0xffffff8, depending on fat size.  Support for single active FAT
40667c478bd9Sstevel@tonic-gate	added (FAT32 extension). Changed the boundary between FAT12 and
40677c478bd9Sstevel@tonic-gate	FAT16, again.  The Microsoft KB article Q65541 seems to be wrong
40687c478bd9Sstevel@tonic-gate	here, I go with mtools and the previous behaviour of grub: FAT12
40697c478bd9Sstevel@tonic-gate	iff number of clusters (without counting the two nonexisting
40707c478bd9Sstevel@tonic-gate	clusters) is less or equal 4095.
40717c478bd9Sstevel@tonic-gate	(fat_read): Report error if cluster number is too big, but not
40727c478bd9Sstevel@tonic-gate	greater or equal clust_eof_marker.
40737c478bd9Sstevel@tonic-gate	* stage2/fsys_reiserfs.c (journal_init): Fixed calculation of
40747c478bd9Sstevel@tonic-gate	journal_transaction.
40757c478bd9Sstevel@tonic-gate
40767c478bd9Sstevel@tonic-gate2000-08-01  Jochen Hoenicke  <jochen@gnu.org>
40777c478bd9Sstevel@tonic-gate
40787c478bd9Sstevel@tonic-gate	* stage2/fsys_reiserfs.c: Symlink support added.
40797c478bd9Sstevel@tonic-gate	(S_ISLNK): New macro.
40807c478bd9Sstevel@tonic-gate	(PATH_MAX): Likewise.
40817c478bd9Sstevel@tonic-gate	(MAX_LINK_COUNT): Likewise.
40827c478bd9Sstevel@tonic-gate	(reiserfs_dir): Check for symlink and handle them.
40837c478bd9Sstevel@tonic-gate	(read_tree_node): Take a block number and check if tree node was
40847c478bd9Sstevel@tonic-gate 	already read in.  If not update the INFO->blocks field.
40857c478bd9Sstevel@tonic-gate	(next_key): Changed call of read_tree_node.
40867c478bd9Sstevel@tonic-gate	(search_stat): Likewise.
40877c478bd9Sstevel@tonic-gate	(journal_init): Fixed a small bug.  Some debugging messages added.
40887c478bd9Sstevel@tonic-gate
40897c478bd9Sstevel@tonic-gate2000-07-31  Pavel Roskin  <proski@gnu.org>
40907c478bd9Sstevel@tonic-gate
40917c478bd9Sstevel@tonic-gate	* grub/asmstub.c (biosdisk) [__linux__]: The first argument for
40927c478bd9Sstevel@tonic-gate	_llseek renamed from "seeked_fd" to "filedes".
40937c478bd9Sstevel@tonic-gate
40947c478bd9Sstevel@tonic-gate2000-07-30  OKUJI Yoshinori  <okuji@gnu.org>
40957c478bd9Sstevel@tonic-gate
40967c478bd9Sstevel@tonic-gate	* docs/appendices.texi (FAQ): Added the answer for the separate
40977c478bd9Sstevel@tonic-gate	boot partition problem.
40987c478bd9Sstevel@tonic-gate
40997c478bd9Sstevel@tonic-gate2000-07-30  OKUJI Yoshinori  <okuji@gnu.org>
41007c478bd9Sstevel@tonic-gate
41017c478bd9Sstevel@tonic-gate	Update the network support to Etherboot-4.6.4.
41027c478bd9Sstevel@tonic-gate
41037c478bd9Sstevel@tonic-gate	From Daniel Wagner <wagi@gmx.ch>:
41047c478bd9Sstevel@tonic-gate	* netboot/3c509.c: Copied from Etherboot-4.6.4.
41057c478bd9Sstevel@tonic-gate	* netboot/3c509.h: Likewise.
41067c478bd9Sstevel@tonic-gate	* netboot/cards.h: Likewise.
41077c478bd9Sstevel@tonic-gate	* netboot/ns8390.c: Likewise.
41087c478bd9Sstevel@tonic-gate	* netboot/sk_g16.c: Likewise.
41097c478bd9Sstevel@tonic-gate	* netboot/sk_g16.h: Likewise.
41107c478bd9Sstevel@tonic-gate	* netboot/tulip.c: Likewise.
41117c478bd9Sstevel@tonic-gate	* netboot/pci.h: Likewise.
41127c478bd9Sstevel@tonic-gate	* netboot/main.c (dhcpdiscover): Updated.
41137c478bd9Sstevel@tonic-gate	(dhcprequest): Likewise.
41147c478bd9Sstevel@tonic-gate	(bootp): Likewise.
41157c478bd9Sstevel@tonic-gate	* netboot/README.netboot: Added the information about the new
41167c478bd9Sstevel@tonic-gate	option --enable-ns8390-force-16bit.
41177c478bd9Sstevel@tonic-gate	* configure.in (--enable-ns8390-force-16bit): New option.
41187c478bd9Sstevel@tonic-gate
41197c478bd9Sstevel@tonic-gate	* netboot/config.c: Updated.
41207c478bd9Sstevel@tonic-gate
41217c478bd9Sstevel@tonic-gate2000-07-29  OKUJI Yoshinori  <okuji@gnu.org>
41227c478bd9Sstevel@tonic-gate
41237c478bd9Sstevel@tonic-gate	The Linux zImage support is working now.
41247c478bd9Sstevel@tonic-gate
41257c478bd9Sstevel@tonic-gate	* stage2/asm.S (linux_boot): Add 3 into %ecx and shift %ecx to
41267c478bd9Sstevel@tonic-gate	the right by 2 bits, instead of shift %ecx to the left by 2
41277c478bd9Sstevel@tonic-gate	bits.
41287c478bd9Sstevel@tonic-gate
41297c478bd9Sstevel@tonic-gate2000-07-29  Jochen Hoenicke  <jochen@gnu.org>
41307c478bd9Sstevel@tonic-gate
41317c478bd9Sstevel@tonic-gate	* stage2/fsys_reiserfs.c (block_read): Changed the variable "len"
41327c478bd9Sstevel@tonic-gate	to "j_len" (it shadowed a parameter).
41337c478bd9Sstevel@tonic-gate
41347c478bd9Sstevel@tonic-gate2000-07-29  OKUJI Yoshinori  <okuji@gnu.org>
41357c478bd9Sstevel@tonic-gate
41367c478bd9Sstevel@tonic-gate	* configure.in (CPPFLAGS): Added -Wshadow, -Wpointer-arith and
41377c478bd9Sstevel@tonic-gate	-Wundef, as GCC sometimes more clever than me. :)
41387c478bd9Sstevel@tonic-gate	* stage2/shared.h [!ASM_FILE] (multi_boot): Change the name of
41397c478bd9Sstevel@tonic-gate	the second argument from "mbi" to "mb_info".
41407c478bd9Sstevel@tonic-gate	[!ASM_FILE] (biosdisk): Rename the first argument "read" to
41417c478bd9Sstevel@tonic-gate	"subfunc".
41427c478bd9Sstevel@tonic-gate	* lib/device.h (init_device_map): Change the name of the third
41437c478bd9Sstevel@tonic-gate	argument from "floppy_disks" to "no_floppies".
41447c478bd9Sstevel@tonic-gate	* lib/device.c (read_device_map): Rename the internal function
41457c478bd9Sstevel@tonic-gate	"print_error" to "show_error".
41467c478bd9Sstevel@tonic-gate	* stage2/builtins.c (install_func): Rename CONFIG_FILE to
41477c478bd9Sstevel@tonic-gate	REAL_CONFIG.
41487c478bd9Sstevel@tonic-gate	(setup_func): Rename INSTALL_DRIVE, INSTALL_PARTITION and
41497c478bd9Sstevel@tonic-gate	CONFIG_FILE to INSTALLED_DRIVE, INSTALLED_PARTITION and
41507c478bd9Sstevel@tonic-gate	CONFIG_FILENAME, respectively.
41517c478bd9Sstevel@tonic-gate	* stage2/char_io.c (convert_to_ascii): Rename the internal
41527c478bd9Sstevel@tonic-gate	variable C to TMP.
41537c478bd9Sstevel@tonic-gate	(get_cmdline): Rename KILL to KILL_BUF.
41547c478bd9Sstevel@tonic-gate	Rename the second argument for cl_print to REAL_ECHO_CHAR from
41557c478bd9Sstevel@tonic-gate	ECHO_CHAR.
41567c478bd9Sstevel@tonic-gate	* stage2/stage2.c (run_menu): Rename the internal variable
41577c478bd9Sstevel@tonic-gate	NUM_ENTRIES to NEW_NUM_ENTRIES.
41587c478bd9Sstevel@tonic-gate	(cmain): Rename KILL to KILL_BUF.
41597c478bd9Sstevel@tonic-gate	* stage2/disk_inode_ffs.h: Check if BYTE_MSF is defined before
41607c478bd9Sstevel@tonic-gate	checking the value.
41617c478bd9Sstevel@tonic-gate	* stage2/fsys_ext2fs.c (ext2fs_dir): Check if E2DEBUG is
41627c478bd9Sstevel@tonic-gate	defined, instead of if the value is non-zero.
41637c478bd9Sstevel@tonic-gate	* grub/asmstub.c: Check if __GLIBC__ is defined before checking
41647c478bd9Sstevel@tonic-gate	the value.
41657c478bd9Sstevel@tonic-gate	(biosdisk) [__linux__]: Likewise.
41667c478bd9Sstevel@tonic-gate	Rename the first argument for _llseek to "seeked_fd" from "fd".
41677c478bd9Sstevel@tonic-gate	(multi_boot): Rename the second argument to "mb_info" from
41687c478bd9Sstevel@tonic-gate	"mbi".
41697c478bd9Sstevel@tonic-gate
41707c478bd9Sstevel@tonic-gate2000-07-27  Gordon Matzigkeit  <gord@fig.org>
41717c478bd9Sstevel@tonic-gate
41727c478bd9Sstevel@tonic-gate	* util/grub-image.in: Initial cut at a script for creating GRUB
41737c478bd9Sstevel@tonic-gate	boot images.
41747c478bd9Sstevel@tonic-gate	* util/Makefile.am (noinst_SCRIPTS): Added grub-image.
41757c478bd9Sstevel@tonic-gate	* configure.in (AC_OUTPUT): Added util/grub-image.
41767c478bd9Sstevel@tonic-gate
41777c478bd9Sstevel@tonic-gate2000-07-27  Jochen Hoenicke  <jochen@gnu.org>
41787c478bd9Sstevel@tonic-gate
41797c478bd9Sstevel@tonic-gate	* stage2/asm.S (check_int13_extensions): Fixed the effect of
41807c478bd9Sstevel@tonic-gate	the --force-lba switch in stage2/stage1_5.
41817c478bd9Sstevel@tonic-gate
41827c478bd9Sstevel@tonic-gate2000-07-25  Jochen Hoenicke  <jochen@gnu.org>
41837c478bd9Sstevel@tonic-gate
41847c478bd9Sstevel@tonic-gate	* stage2/fsys_fat.c (fat_mount): Fixed calculation of num_clust.
41857c478bd9Sstevel@tonic-gate	It was off by two, since the two non existing clusters 0 and 1
41867c478bd9Sstevel@tonic-gate	were not taken into account.  Also fixed the boundary between
41877c478bd9Sstevel@tonic-gate	FAT12 and FAT16.
41887c478bd9Sstevel@tonic-gate
41897c478bd9Sstevel@tonic-gate2000-07-25  OKUJI Yoshinori  <okuji@gnu.org>
41907c478bd9Sstevel@tonic-gate
41917c478bd9Sstevel@tonic-gate	* stage2/asm.S [!STAGE1_5] (linux_text_len): New variable.
41927c478bd9Sstevel@tonic-gate	[!STAGE1_5] (linux_boot): Don't set %eax to LINUX_SETUP
41937c478bd9Sstevel@tonic-gate	meaninglessly.
41947c478bd9Sstevel@tonic-gate	Set %ecx to LINUX_TEXT_LEN instead of LINUX_KERNEL_MAXLEN.
41957c478bd9Sstevel@tonic-gate	[!STAGE1_5] (big_linux_boot): Disable interrupts before changing
41967c478bd9Sstevel@tonic-gate	the stack pointer.
41977c478bd9Sstevel@tonic-gate	Change %ss right before %sp.
41987c478bd9Sstevel@tonic-gate	Reverse the arguments for ljmp. A segment must be after an
41997c478bd9Sstevel@tonic-gate	offset. *sigh*
42007c478bd9Sstevel@tonic-gate	* stage2/boot.c (load_image): Set LINUX_TEXT_LEN to TEXT_LEN,
42017c478bd9Sstevel@tonic-gate	if a Linux kernel is loaded successfully.
42027c478bd9Sstevel@tonic-gate	* stage2/shared.h (LINUX_VID_MODE_OFFSET): Removed.
42037c478bd9Sstevel@tonic-gate	[!ASM_FILE] (linux_kernel_header): Change the type of the member
42047c478bd9Sstevel@tonic-gate	`heap_end_ptr' to unsigned short.
42057c478bd9Sstevel@tonic-gate	[!ASM_FILE] (linux_text_len): Declared.
42067c478bd9Sstevel@tonic-gate
42077c478bd9Sstevel@tonic-gate2000-07-24  OKUJI Yoshinori  <okuji@gnu.org>
42087c478bd9Sstevel@tonic-gate
42097c478bd9Sstevel@tonic-gate	Comply with the Linux/i386 boot protocol version 2.02.
42107c478bd9Sstevel@tonic-gate
42117c478bd9Sstevel@tonic-gate	* stage2/asm.S [!STAGE1_5] (linux_boot): Set the length of moved
42127c478bd9Sstevel@tonic-gate	bytes to LINUX_KERNEL_MAXLEN instead of
42137c478bd9Sstevel@tonic-gate	LINUX_KERNEL_LEN_OFFSET(%eax), since the field is obsolete.
42147c478bd9Sstevel@tonic-gate	[!STAGE1_5] (big_linux_boot): Don't use SEGMENT or OFFSET.
42157c478bd9Sstevel@tonic-gate	Instead, embed the segment and the offset in the code itself.
42167c478bd9Sstevel@tonic-gate	Set %ds, %es, %fs and %gs to %ax (LINUX_INIT_SEG).
42177c478bd9Sstevel@tonic-gate	* stage2/boot.c (load_image): Rewrite the Linux support code
42187c478bd9Sstevel@tonic-gate	heavily. Use a structure instead of a batch of macros, to access
42197c478bd9Sstevel@tonic-gate	a Linux kernel header.
42207c478bd9Sstevel@tonic-gate	(load_initrd): If MOVETO plus LEN is greater than or equal to
42217c478bd9Sstevel@tonic-gate	LINUX_INITRD_MAX_ADDRESS, set MOVETO to LINUX_INITRD_MAX_ADDRESS
42227c478bd9Sstevel@tonic-gate	minus LEN with page aligned.
42237c478bd9Sstevel@tonic-gate	* stage2/shared.h (LINUX_MAGIC_SIGNATURE): New macro.
42247c478bd9Sstevel@tonic-gate	(LINUX_DEFAULT_SETUP_SECTS): Likewise.
42257c478bd9Sstevel@tonic-gate	(LINUX_FLAG_CAN_USE_HEAP): Likewise.
42267c478bd9Sstevel@tonic-gate	(LINUX_INITRD_MAX_ADDRESS): Likewise.
42277c478bd9Sstevel@tonic-gate	(LINUX_MAX_SETUP_SECTS): Likewise.
42287c478bd9Sstevel@tonic-gate	(LINUX_BOOT_LOADER_TYPE): Likewise.
42297c478bd9Sstevel@tonic-gate	(LINUX_HEAP_END_OFFSET): Likewise.
42307c478bd9Sstevel@tonic-gate	(LINUX_SETUP_MAXLEN): Removed.
42317c478bd9Sstevel@tonic-gate	(LINUX_KERNEL_LEN_OFFSET): Likewise.
42327c478bd9Sstevel@tonic-gate	(LINUX_SETUP_LEN_OFFSET): Likewise.
42337c478bd9Sstevel@tonic-gate	(LINUX_SETUP_STACK): Set to 0x7F00 instead of 0x3FF4 (why was it
42347c478bd9Sstevel@tonic-gate	this value?).
42357c478bd9Sstevel@tonic-gate	(LINUX_SETUP_LOADER): Removed.
42367c478bd9Sstevel@tonic-gate	(LINUX_SETUP_LOAD_FLAGS): Likewise.
42377c478bd9Sstevel@tonic-gate	(LINUX_SETUP_CODE_START): Likewise.
42387c478bd9Sstevel@tonic-gate	(LINUX_SETUP_INITRD): Likewise.
42397c478bd9Sstevel@tonic-gate	(CL_MY_LOCATION): Set to RAW_ADDR(0x97F00) instead of
42407c478bd9Sstevel@tonic-gate	RAW_ADDR(0x92000).
42417c478bd9Sstevel@tonic-gate	(CL_MY_END_ADDR): Set to RAW_addr(0x97FFF) instead of
42427c478bd9Sstevel@tonic-gate	RAW_ADDR(0x920FF).
42437c478bd9Sstevel@tonic-gate	(CL_MAGIC_ADDR): Removed.
42447c478bd9Sstevel@tonic-gate	(CL_OFFSET): Likewise.
42457c478bd9Sstevel@tonic-gate	[!ASM_FILE] (struct linux_kernel_header): New structure tag.
42467c478bd9Sstevel@tonic-gate
42477c478bd9Sstevel@tonic-gate2000-07-23  OKUJI Yoshinori  <okuji@gnu.org>
42487c478bd9Sstevel@tonic-gate
42497c478bd9Sstevel@tonic-gate	* docs/tutorial.texi: Fix some syntax errors and ambiguous
42507c478bd9Sstevel@tonic-gate	sentences. Suggested by M. Meiarashi <mes@st.rim.or.jp>.
42517c478bd9Sstevel@tonic-gate
42527c478bd9Sstevel@tonic-gate2000-07-14  Khimenko Victor  <grub@khim.sch57.msk.ru>
42537c478bd9Sstevel@tonic-gate
42547c478bd9Sstevel@tonic-gate	* stage2/boot.c (load_image): When getting the text length of a
42557c478bd9Sstevel@tonic-gate	Linux kernel, use unsigned long instead of unsigned short.
42567c478bd9Sstevel@tonic-gate
42577c478bd9Sstevel@tonic-gate2000-07-13  OKUJI Yoshinori  <okuji@gnu.org>
42587c478bd9Sstevel@tonic-gate
42597c478bd9Sstevel@tonic-gate	* lib/device.c: Include errno.h. Reported by Thierry DELHAISE
42607c478bd9Sstevel@tonic-gate	<thierry.delhaise@delhaise.com>.
42617c478bd9Sstevel@tonic-gate
42627c478bd9Sstevel@tonic-gate2000-07-12  OKUJI Yoshinori  <okuji@gnu.org>
42637c478bd9Sstevel@tonic-gate
42647c478bd9Sstevel@tonic-gate	Just to start implementing serial console support...
42657c478bd9Sstevel@tonic-gate
42667c478bd9Sstevel@tonic-gate	* stage2/asm.S (grub_putchar): Renamed to ...
42677c478bd9Sstevel@tonic-gate	(console_putchar): ... this.
42687c478bd9Sstevel@tonic-gate	[!STAGE1_5] (getkey): Renamed to ...
42697c478bd9Sstevel@tonic-gate	[!STAGE1_5] (console_getkey): ... this.
42707c478bd9Sstevel@tonic-gate	[!STAGE1_5] (checkkey): Renamed to ...
42717c478bd9Sstevel@tonic-gate	[!STAGE1_5] (console_checkkey): ... this.
42727c478bd9Sstevel@tonic-gate	* stage2/char_io.c [!STAGE1_5] (getkey): New function.
42737c478bd9Sstevel@tonic-gate	[!STAGE1_5] (checkkey): Likewise.
42747c478bd9Sstevel@tonic-gate	(grub_putchar): Likewise.
42757c478bd9Sstevel@tonic-gate	* stage2/shared.h [!STAGE1_5] (terminal): Declared.
42767c478bd9Sstevel@tonic-gate	[!STAGE1_5] (TERMINAL_CONSOLE): New macro.
42777c478bd9Sstevel@tonic-gate	[!STAGE1_5] (TERMINAL_SERIAL): Likewise.
42787c478bd9Sstevel@tonic-gate	(console_putchar): Declared.
42797c478bd9Sstevel@tonic-gate	(serial_putchar): Likewise.
42807c478bd9Sstevel@tonic-gate	(console_getkey): Likewise.
42817c478bd9Sstevel@tonic-gate	(serial_getkey): Likewise.
42827c478bd9Sstevel@tonic-gate	(console_checkkey): Likewise.
42837c478bd9Sstevel@tonic-gate	(serial_checkkey): Likewise.
42847c478bd9Sstevel@tonic-gate	* stage2/builtins.c (terminal): New global variable. The default
42857c478bd9Sstevel@tonic-gate	is TERMINAL_CONSOLE.
42867c478bd9Sstevel@tonic-gate	* grub/asmstub.c (grub_putchar): Renamed to ...
42877c478bd9Sstevel@tonic-gate	(console_putchar): ... this.
42887c478bd9Sstevel@tonic-gate	(getkey): Renamed to ...
42897c478bd9Sstevel@tonic-gate	(console_getkey): ... this.
42907c478bd9Sstevel@tonic-gate	(checkkey): Renamed to ...
42917c478bd9Sstevel@tonic-gate	(console_checkkey): ... this.
42927c478bd9Sstevel@tonic-gate
42937c478bd9Sstevel@tonic-gate2000-07-12  OKUJI Yoshinori  <okuji@gnu.org>
42947c478bd9Sstevel@tonic-gate
42957c478bd9Sstevel@tonic-gate	* stage2/Makefile.am (libgrub_a_CFLAGS): Added
42967c478bd9Sstevel@tonic-gate	-I$(top_srcdir)/lib.
42977c478bd9Sstevel@tonic-gate	* stage2/builtins.c [GRUB_UTIL]: Include device.h.
42987c478bd9Sstevel@tonic-gate
42997c478bd9Sstevel@tonic-gate2000-07-12  OKUJI Yoshinori  <okuji@gnu.org>
43007c478bd9Sstevel@tonic-gate
43017c478bd9Sstevel@tonic-gate	Segreate OS-specific helper functions from asmstub.c.
43027c478bd9Sstevel@tonic-gate
43037c478bd9Sstevel@tonic-gate	* grub/asmstub.c [__linux__]: Don't include linux/hdreg.h,
43047c478bd9Sstevel@tonic-gate	linux/major.h, linux/kdev_t.h, or linux/cdrom.h.
43057c478bd9Sstevel@tonic-gate	[__FreeBSD__ || __NetBSD__ || __OpenBSD__]: Don't include
43067c478bd9Sstevel@tonic-gate	sys/ioctl.h, sys/disklabel.h, or sys/ioctl.h.
43077c478bd9Sstevel@tonic-gate	[HAVE_OPENDISK]: Don't include util.h.
43087c478bd9Sstevel@tonic-gate	Include device.h.
43097c478bd9Sstevel@tonic-gate	(DEFAULT_FD_CYLINDERS): Removed.
43107c478bd9Sstevel@tonic-gate	(DEFAULT_FD_HEADS): Likewise.
43117c478bd9Sstevel@tonic-gate	(DEFAULT_FD_SECTORS): Likewise.
43127c478bd9Sstevel@tonic-gate	(DEFAULT_HD_CYLINDERS): Likewise.
43137c478bd9Sstevel@tonic-gate	(DEFAULT_HD_HEADS): Likewise.
43147c478bd9Sstevel@tonic-gate	(DEFAULT_HD_SECTORS): Likewise.
43157c478bd9Sstevel@tonic-gate	(NUM_DISKS): Likewise.
43167c478bd9Sstevel@tonic-gate	(init_device_map): Likewise.
43177c478bd9Sstevel@tonic-gate	(get_floppy_disk_name): Likewise.
43187c478bd9Sstevel@tonic-gate	(get_ide_disk_name): Likewise.
43197c478bd9Sstevel@tonic-gate	(get_scsi_disk_name): Likewise.
43207c478bd9Sstevel@tonic-gate	(check_device): Likewise.
43217c478bd9Sstevel@tonic-gate	(get_drive_geometry): Likewise.
43227c478bd9Sstevel@tonic-gate	* grub/main.c (no_floppy): Removed.
43237c478bd9Sstevel@tonic-gate	(probe_second_floppy): Likewise.
43247c478bd9Sstevel@tonic-gate	(floppy_disks): New global variable.
43257c478bd9Sstevel@tonic-gate	(main): Set FLOPPY_DISKS to zero, if OPT_NO_FLOPPY. Set
43267c478bd9Sstevel@tonic-gate	FLOPPY_DISKS to two, if OPT_PROBE_SECOND_FLOPPY.
43277c478bd9Sstevel@tonic-gate	* lib/Makefile.am (AM_CFLAGS): New variable.
43287c478bd9Sstevel@tonic-gate	* lib/device.h: New file.
43297c478bd9Sstevel@tonic-gate	* lib/device.c: Likewise.
43307c478bd9Sstevel@tonic-gate	* stage2/shared.h (no_floppy): Removed.
43317c478bd9Sstevel@tonic-gate	(probe_second_floppy): Likewise.
43327c478bd9Sstevel@tonic-gate	(check_device): Likewise.
43337c478bd9Sstevel@tonic-gate	(floppy_disks): Declared.
43347c478bd9Sstevel@tonic-gate
43357c478bd9Sstevel@tonic-gate2000-07-02  OKUJI Yoshinori  <okuji@gnu.org>
43367c478bd9Sstevel@tonic-gate
43377c478bd9Sstevel@tonic-gate	* grub/main.c (usage): Enclose the mail address with parentheses
43387c478bd9Sstevel@tonic-gate	and add a period into the end of the line. That's just a
43397c478bd9Sstevel@tonic-gate	cosmetic change.
43407c478bd9Sstevel@tonic-gate
43417c478bd9Sstevel@tonic-gate2000-07-02  OKUJI Yoshinori  <okuji@gnu.org>
43427c478bd9Sstevel@tonic-gate
43437c478bd9Sstevel@tonic-gate	* docs/appendices.texi (Obtaining and Building GRUB): Indicate
43447c478bd9Sstevel@tonic-gate	the Cygnus's binutils webpage instead of the hjl's site, since
43457c478bd9Sstevel@tonic-gate	you can now use a public release (i.e. 2.10).
43467c478bd9Sstevel@tonic-gate
43477c478bd9Sstevel@tonic-gate2000-06-23  OKUJI Yoshinori  <okuji@gnu.org>
43487c478bd9Sstevel@tonic-gate
43497c478bd9Sstevel@tonic-gate	* stage2/boot.c (load_image): Take an additional argument
43507c478bd9Sstevel@tonic-gate	LOAD_FLAGS.
43517c478bd9Sstevel@tonic-gate	If the kernel type is Linux and the bit
43527c478bd9Sstevel@tonic-gate	KERNEL_LOAD_NO_MEM_OPTION in LOAD_FLAGS is set, don't pass a
43537c478bd9Sstevel@tonic-gate	Linux's mem option automatically.
43547c478bd9Sstevel@tonic-gate	* stage2/shared.h (load_image): Added the new argument.
43557c478bd9Sstevel@tonic-gate	* stage2/builtins.c (kernel_func): If `--no-mem-option' is
43567c478bd9Sstevel@tonic-gate	specified, set the bit KERNEL_LOAD_NO_MEM_OPTION in LOAD_FLAGS,
43577c478bd9Sstevel@tonic-gate	otherwise, LOAD_FLAGS is zero.
43587c478bd9Sstevel@tonic-gate
43597c478bd9Sstevel@tonic-gate2000-06-22  OKUJI Yoshinori  <okuji@gnu.org>
43607c478bd9Sstevel@tonic-gate
43617c478bd9Sstevel@tonic-gate	* docs/tutorial.texi: Fixed some typos and syntax errors.
43627c478bd9Sstevel@tonic-gate	* docs/user-ref.texi: Likewise.
43637c478bd9Sstevel@tonic-gate
43647c478bd9Sstevel@tonic-gate2000-06-21  OKUJI Yoshinori  <okuji@gnu.org>
43657c478bd9Sstevel@tonic-gate
43667c478bd9Sstevel@tonic-gate	* stage2/stage2.c (run_menu): Initialize CUR_ENTRY at the
43677c478bd9Sstevel@tonic-gate	definition.
43687c478bd9Sstevel@tonic-gate	If SHOW_MENU is zero, don't display the menu interface. Instead,
43697c478bd9Sstevel@tonic-gate	wait until the timeout is expired and then boot the default
43707c478bd9Sstevel@tonic-gate	entry. If the user presses `ESC' during the timeout, set
43717c478bd9Sstevel@tonic-gate	SHOW_MENU to one and break the loop.
43727c478bd9Sstevel@tonic-gate	Display the menu if SHOW_MENU is true, instead of if
43737c478bd9Sstevel@tonic-gate	GRUB_TIMEOUT is non-zero.
43747c478bd9Sstevel@tonic-gate	Set SHOW_MENU to one before go to the label `restart'.
43757c478bd9Sstevel@tonic-gate	* stage2/builtins.c (show_menu): New global variable.
43767c478bd9Sstevel@tonic-gate	(hiddenmenu_func): New function.
43777c478bd9Sstevel@tonic-gate	(builtin_hiddenmenu): New variable.
43787c478bd9Sstevel@tonic-gate	(builtin_table): Added a pointer to BUILTIN_HIDDENMENU.
43797c478bd9Sstevel@tonic-gate	* stage2/shared.h (show_menu): Declared.
43807c478bd9Sstevel@tonic-gate
43817c478bd9Sstevel@tonic-gate2000-06-19  OKUJI Yoshinori  <okuji@gnu.org>
43827c478bd9Sstevel@tonic-gate
43837c478bd9Sstevel@tonic-gate	* docs/mdate-sh: Moved to ...
43847c478bd9Sstevel@tonic-gate	* mdate-sh: ... here.
43857c478bd9Sstevel@tonic-gate	* docs/texinfo.tex: Moved to ...
43867c478bd9Sstevel@tonic-gate	* texinfo.tex: ... here.
43877c478bd9Sstevel@tonic-gate
43887c478bd9Sstevel@tonic-gate2000-06-09  OKUJI Yoshinori  <okuji@gnu.org>
43897c478bd9Sstevel@tonic-gate
43907c478bd9Sstevel@tonic-gate	* stage2/mb_info.h (AddrRangeDesc): Use one 64bits field instead
43917c478bd9Sstevel@tonic-gate	of two 32bits fields for BaseAddr and Length, respectively.
43927c478bd9Sstevel@tonic-gate	BaseAddrLow + BaseAddrHigh -> BaseAddr, LengthLow + LengthHigh
43937c478bd9Sstevel@tonic-gate	-> Length.
43947c478bd9Sstevel@tonic-gate	* stage2/builtins.c (displaymem_func): Print BaseAddr >> 32,
43957c478bd9Sstevel@tonic-gate	BaseAddr & 0xFFFFFFFF, Length >> 32 and Length & 0xFFFFFFFF,
43967c478bd9Sstevel@tonic-gate	instead of BaseAddrLow, BaseAddrHigh, LengthLow and LengthHigh,
43977c478bd9Sstevel@tonic-gate	for MAP.
43987c478bd9Sstevel@tonic-gate	* stage2/common.c (fakemap): Adjusted to the new definition of
43997c478bd9Sstevel@tonic-gate	AddrRangeDesc.
44007c478bd9Sstevel@tonic-gate	(mmap_avail_at): Change the type of TOP to unsigned long long.
44017c478bd9Sstevel@tonic-gate	If TOP is greater than 0xFFFFFFFF, set it to 0xFFFFFFFF, since
44027c478bd9Sstevel@tonic-gate	GRUB itself cannot deal with 64bits addresses at the moment.
44037c478bd9Sstevel@tonic-gate	(init_bios_info): When getting a maximum available address from
44047c478bd9Sstevel@tonic-gate	the memory map, use a new unsigned long long variable MAX_ADDR
44057c478bd9Sstevel@tonic-gate	as the temporary variable instead of MEMTMP. This should allow
44067c478bd9Sstevel@tonic-gate	GRUB to detect at most 4TB.
44077c478bd9Sstevel@tonic-gate
44087c478bd9Sstevel@tonic-gate2000-06-18  OKUJI Yoshinori  <okuji@gnu.org>
44097c478bd9Sstevel@tonic-gate
44107c478bd9Sstevel@tonic-gate	* docs/appendices.texi (FAQ): Added an question about Linux's
44117c478bd9Sstevel@tonic-gate	`mem=' option and the answer.
44127c478bd9Sstevel@tonic-gate
44137c478bd9Sstevel@tonic-gate2000-06-17  OKUJI Yoshinori  <okuji@gnu.org>
44147c478bd9Sstevel@tonic-gate
44157c478bd9Sstevel@tonic-gate	* stage2/boot.c (load_image): Pass a mem option to Linux, only
44167c478bd9Sstevel@tonic-gate	if SRC has no substring "mem=".
44177c478bd9Sstevel@tonic-gate
44187c478bd9Sstevel@tonic-gate2000-06-17  OKUJI Yoshinori  <okuji@gnu.org>
44197c478bd9Sstevel@tonic-gate
44207c478bd9Sstevel@tonic-gate	* stage2/compile: Removed.
44217c478bd9Sstevel@tonic-gate	* netboot/compile: Likewise.
44227c478bd9Sstevel@tonic-gate	* compile: New file. Copied from Automake.
44237c478bd9Sstevel@tonic-gate
44247c478bd9Sstevel@tonic-gate2000-06-16  OKUJI Yoshinori  <okuji@gnu.org>
44257c478bd9Sstevel@tonic-gate
44267c478bd9Sstevel@tonic-gate	* stage2/boot.c (load_image): Don't remove the vga option after
44277c478bd9Sstevel@tonic-gate	parsing it. Suggested by Tim Riker.
44287c478bd9Sstevel@tonic-gate
44297c478bd9Sstevel@tonic-gate2000-06-15  OKUJI Yoshinori  <okuji@gnu.org>
44307c478bd9Sstevel@tonic-gate
44317c478bd9Sstevel@tonic-gate	* stage2/asm.S (grub_halt): Use jmp instead of jc, if INT 15
44327c478bd9Sstevel@tonic-gate	AX=5307h fails.
44337c478bd9Sstevel@tonic-gate
44347c478bd9Sstevel@tonic-gate2000-06-15  OKUJI Yoshinori  <okuji@gnu.org>
44357c478bd9Sstevel@tonic-gate
44367c478bd9Sstevel@tonic-gate	* configure.in (AM_INIT_AUTOMAKE): Increase the version number.
44377c478bd9Sstevel@tonic-gate	I wish that 0.5.96 will not be released actually...
44387c478bd9Sstevel@tonic-gate
44397c478bd9Sstevel@tonic-gate	* stage2/builtins.c (halt_func): New function.
44407c478bd9Sstevel@tonic-gate	(builtin_halt): New variable.
44417c478bd9Sstevel@tonic-gate	(reboot_func): New function.
44427c478bd9Sstevel@tonic-gate	(builtin_reboot): New variable.
44437c478bd9Sstevel@tonic-gate	(builtin_table): Added pointers to BUILTIN_HALT and
44447c478bd9Sstevel@tonic-gate	BUILTIN_REBOOT.
44457c478bd9Sstevel@tonic-gate	* stage2/asm.S (grub_halt): New function.
44467c478bd9Sstevel@tonic-gate	(grub_reboot): Likewise.
44477c478bd9Sstevel@tonic-gate	* stage2/shared.h (grub_halt): Declared.
44487c478bd9Sstevel@tonic-gate	(grub_reboot): Likewise.
44497c478bd9Sstevel@tonic-gate	* grub/asmstub.c (grub_reboot): New function.
44507c478bd9Sstevel@tonic-gate	(grub_halt): Likewise.
44517c478bd9Sstevel@tonic-gate
44527c478bd9Sstevel@tonic-gate2000-06-12  Gordon Matzigkeit  <gord@fig.org>
44537c478bd9Sstevel@tonic-gate
44547c478bd9Sstevel@tonic-gate	* stage2/stage2.c (run_menu): Don't display the menu if the
44557c478bd9Sstevel@tonic-gate	timeout is zero.  This makes for cleaner use as a noninteractive
44567c478bd9Sstevel@tonic-gate	bootloader.
44577c478bd9Sstevel@tonic-gate
44587c478bd9Sstevel@tonic-gate2000-06-11  OKUJI Yoshinori  <okuji@gnu.org>
44597c478bd9Sstevel@tonic-gate
44607c478bd9Sstevel@tonic-gate	* docs/tutorial.texi (GNU/Linux): Added a caution about the
44617c478bd9Sstevel@tonic-gate	"mem=" option.
44627c478bd9Sstevel@tonic-gate
44637c478bd9Sstevel@tonic-gate2000-06-11  OKUJI Yoshinori  <okuji@gnu.org>
44647c478bd9Sstevel@tonic-gate
44657c478bd9Sstevel@tonic-gate	* util/grub-install.in (convert): When $host_os is linux*, use
44667c478bd9Sstevel@tonic-gate	the expression 's%\([sh]d[a-z]\)[0-9]*$%\1%' instead of
44677c478bd9Sstevel@tonic-gate	's%[0-9]*$%%', to get rid of the partition part. This fixes the
44687c478bd9Sstevel@tonic-gate	bug "/dev/fd0" -> "/dev/fd". (But don't you think the naming is
44697c478bd9Sstevel@tonic-gate	quite inconsistent with hard disks? Why not /dev/fd[a-z]?)
44707c478bd9Sstevel@tonic-gate	Report by Pavel Roskin.
44717c478bd9Sstevel@tonic-gate
44727c478bd9Sstevel@tonic-gate2000-06-08  OKUJI Yoshinori  <okuji@gnu.org>
44737c478bd9Sstevel@tonic-gate
44747c478bd9Sstevel@tonic-gate	* docs/tutorial.texi (Network): The body is moved to ...
44757c478bd9Sstevel@tonic-gate	(General usage of network support): ... this new section.
44767c478bd9Sstevel@tonic-gate	(Diskless): New section.
44777c478bd9Sstevel@tonic-gate	* docs/user-ref.texi (General commands): Added a description
44787c478bd9Sstevel@tonic-gate	about the command "tftpserver".
44797c478bd9Sstevel@tonic-gate
44807c478bd9Sstevel@tonic-gate2000-06-08  OKUJI Yoshinori  <okuji@gnu.org>
44817c478bd9Sstevel@tonic-gate
44827c478bd9Sstevel@tonic-gate	* netboot/main.c (decode_rfc1533) [GRUB]: Eliminate trailing
44837c478bd9Sstevel@tonic-gate	NULs in the NVT string for a configuration file name, if any.
44847c478bd9Sstevel@tonic-gate	(decode_rfc1533): Likewise, if Extensions Path is present,
44857c478bd9Sstevel@tonic-gate	eliminate the trailing NULs, if any.
44867c478bd9Sstevel@tonic-gate	Also, check the length carefully to ensure that EXTPATH can fit
44877c478bd9Sstevel@tonic-gate	in FNAME.
44887c478bd9Sstevel@tonic-gate
44897c478bd9Sstevel@tonic-gate2000-06-06  Jochen Hoenicke  <jochen@gnu.org>
44907c478bd9Sstevel@tonic-gate
44917c478bd9Sstevel@tonic-gate	* stage2/fsys_reiserfs.c: Added journaling to reiser.
44927c478bd9Sstevel@tonic-gate	(reiserfs_journal_desc): new structure.
44937c478bd9Sstevel@tonic-gate	(reiserfs_journal_commit): likewise.
44947c478bd9Sstevel@tonic-gate 	(reiserfs_journal_header): likewise.
44957c478bd9Sstevel@tonic-gate	(fsys_reiser_info): Added fields for journaling.
44967c478bd9Sstevel@tonic-gate	(journal_read): new function.
44977c478bd9Sstevel@tonic-gate	(journal_init) likewise.
44987c478bd9Sstevel@tonic-gate	(block_read): New function to read reiserfs blocks, which reads
44997c478bd9Sstevel@tonic-gate	from the journal if it contains newer versions. All relevant
45007c478bd9Sstevel@tonic-gate	devread calls are replaced with calls to this method.
45017c478bd9Sstevel@tonic-gate	(reiserfs_mount): Check for journaling super block and call
45027c478bd9Sstevel@tonic-gate	journal_init.
45037c478bd9Sstevel@tonic-gate
45047c478bd9Sstevel@tonic-gate2000-06-06  OKUJI Yoshinori  <okuji@gnu.org>
45057c478bd9Sstevel@tonic-gate
45067c478bd9Sstevel@tonic-gate	* netboot/main.c (dhcprequest) [GRUB]: Set the length of the
45077c478bd9Sstevel@tonic-gate	Parameter Request List to (4 + 2).
45087c478bd9Sstevel@tonic-gate	Set the list to RFC1533_VENDOR_MAGIC and
45097c478bd9Sstevel@tonic-gate	RFC1533_VENDOR_CONFIGFILE in addition to the standard
45107c478bd9Sstevel@tonic-gate	parameters.
45117c478bd9Sstevel@tonic-gate	(decode_rfc1533) [GRUB]: If C is equal to
45127c478bd9Sstevel@tonic-gate	RFC1533_VENDOR_CONFIGFILE, copy the contents of the tag to
45137c478bd9Sstevel@tonic-gate	CONFIG_FILE.
45147c478bd9Sstevel@tonic-gate	If C is equal to RFC1533_VENDOR_MAGIC, increment
45157c478bd9Sstevel@tonic-gate	VENDOREXT_ISVALID.
45167c478bd9Sstevel@tonic-gate	* netboot/etherboot.h [GRUB] (RFC1533_VENDOR_CONFIGFILE): New
45177c478bd9Sstevel@tonic-gate	macro. Defined as 150.
45187c478bd9Sstevel@tonic-gate
45197c478bd9Sstevel@tonic-gate2000-06-03  OKUJI Yoshinori  <okuji@gnu.org>
45207c478bd9Sstevel@tonic-gate
45217c478bd9Sstevel@tonic-gate	* stage2/asm.S (check_int13_extensions): Check the bitmap only
45227c478bd9Sstevel@tonic-gate	if FORCE_LBA is zero.
45237c478bd9Sstevel@tonic-gate	* stage2/bios.c (get_diskinfo): Get rid of the wrong check for
45247c478bd9Sstevel@tonic-gate	the bit 0 of DRP.FLAGS. Now the bitmap check is correctly
45257c478bd9Sstevel@tonic-gate	performed in the function check_int13_extensions.
45267c478bd9Sstevel@tonic-gate
45277c478bd9Sstevel@tonic-gate2000-06-02  OKUJI Yoshinori  <okuji@gnu.org>
45287c478bd9Sstevel@tonic-gate
45297c478bd9Sstevel@tonic-gate	* docs/user-ref.texi (Invoking the grub shell): Added a caution.
45307c478bd9Sstevel@tonic-gate	Why don't so many people still understand that BIOS drive
45317c478bd9Sstevel@tonic-gate	numbering are different from OS device naming? How many cautions
45327c478bd9Sstevel@tonic-gate	and warnings should we write in the documentation? Sigh.
45337c478bd9Sstevel@tonic-gate
45347c478bd9Sstevel@tonic-gate2000-06-01  OKUJI Yoshinori  <okuji@gnu.org>
45357c478bd9Sstevel@tonic-gate
45367c478bd9Sstevel@tonic-gate	From Chip Salzenberg:
45377c478bd9Sstevel@tonic-gate	* stage2/cmdline.c (enter_cmdline) [SUPPORT_DISKLESS]: Redisplay
45387c478bd9Sstevel@tonic-gate	network configuration after clearing screen, before first prompt.
45397c478bd9Sstevel@tonic-gate
45407c478bd9Sstevel@tonic-gate	* stage2/cmdline.c: Include <shared.h> instead of "shared.h".
45417c478bd9Sstevel@tonic-gate	[SUPPORT_DISKLESS]: Include <etherboot.h>.
45427c478bd9Sstevel@tonic-gate
45437c478bd9Sstevel@tonic-gate2000-06-01  OKUJI Yoshinori  <okuji@gnu.org>
45447c478bd9Sstevel@tonic-gate
45457c478bd9Sstevel@tonic-gate	* stage2/builtins.c (setup_func): Check if INSTALL_DRIVE is a
45467c478bd9Sstevel@tonic-gate	hard disk as well as IMAGE_DRIVE, before trying to install a
45477c478bd9Sstevel@tonic-gate	Stage 1.5. Reported by Pavel Roskin.
45487c478bd9Sstevel@tonic-gate
45497c478bd9Sstevel@tonic-gate2000-05-31  OKUJI Yoshinori  <okuji@gnu.org>
45507c478bd9Sstevel@tonic-gate
45517c478bd9Sstevel@tonic-gate	* acinclude.m4 (grub_ASM_ABSOLUTE_WITHOUT_ASTERISK): New
45527c478bd9Sstevel@tonic-gate	function. Check if GAS requires absolute indirect calls/jumps
45537c478bd9Sstevel@tonic-gate	with NO asterisk.
45547c478bd9Sstevel@tonic-gate	* configure.in: Call grub_ASM_ABSOLUTE_WITHOUT_ASTERISK.
45557c478bd9Sstevel@tonic-gate	* acconfig.h (ABSOLUTE_WITHOUT_ASTERISK): New macro entry.
45567c478bd9Sstevel@tonic-gate	* netboot/pci.c (bios32_service) [!ABSOLUTE_WITHOUT_ASTERISK]:
45577c478bd9Sstevel@tonic-gate	Prefix the operand to "lcall" with `*'.
45587c478bd9Sstevel@tonic-gate	(pcibios_read_config_byte) [!ABSOLUTE_WITHOUT_ASTERISK]:
45597c478bd9Sstevel@tonic-gate	Likewise.
45607c478bd9Sstevel@tonic-gate	(pcibios_read_config_word) [!ABSOLUTE_WITHOUT_ASTERISK]:
45617c478bd9Sstevel@tonic-gate	Likewise.
45627c478bd9Sstevel@tonic-gate	(pcibios_read_config_dword) [!ABSOLUTE_WITHOUT_ASTERISK]:
45637c478bd9Sstevel@tonic-gate	Likewise.
45647c478bd9Sstevel@tonic-gate	(pcibios_write_config_byte) [!ABSOLUTE_WITHOUT_ASTERISK]:
45657c478bd9Sstevel@tonic-gate	Likewise.
45667c478bd9Sstevel@tonic-gate	(pcibios_write_config_word) [!ABSOLUTE_WITHOUT_ASTERISK]:
45677c478bd9Sstevel@tonic-gate	Likewise.
45687c478bd9Sstevel@tonic-gate	(pcibios_write_config_dword) [!ABSOLUTE_WITHOUT_ASTERISK]:
45697c478bd9Sstevel@tonic-gate	Likewise.
45707c478bd9Sstevel@tonic-gate	(check_pcibios) [!ABSOLUTE_WITHOUT_ASTERISK]: Likewise.
45717c478bd9Sstevel@tonic-gate	* stage2/asm.S (chain_stage1) [!ABSOLUTE_WITHOUT_ASTERISK]:
45727c478bd9Sstevel@tonic-gate	Prefix the operand to "ljmp" with `*'.
45737c478bd9Sstevel@tonic-gate	(chain_stage2) [!ABSOLUTE_WITHOUT_ASTERISK]: Likewise.
45747c478bd9Sstevel@tonic-gate	(big_linux_boot) [!ABSOLUTE_WITHOUT_ASTERISK]: Likewise.
45757c478bd9Sstevel@tonic-gate
45767c478bd9Sstevel@tonic-gate2000-05-29  Chip Salzenberg  <chip@valinux.com>
45777c478bd9Sstevel@tonic-gate
45787c478bd9Sstevel@tonic-gate	* stage2/shared.h (grub_memmove): Prototype to use void *.
45797c478bd9Sstevel@tonic-gate	* stage2/char_io.c (grub_memmove): Define likewise.
45807c478bd9Sstevel@tonic-gate
45817c478bd9Sstevel@tonic-gate2000-05-30  Gordon Matzigkeit  <gord@fig.org>
45827c478bd9Sstevel@tonic-gate
45837c478bd9Sstevel@tonic-gate	* docs/user-ref.texi (Stage2 errors): Update error messages.
45847c478bd9Sstevel@tonic-gate
45857c478bd9Sstevel@tonic-gate2000-05-29  Pavel Roskin  <pavel_roskin@geocities.com>
45867c478bd9Sstevel@tonic-gate
45877c478bd9Sstevel@tonic-gate	* util/grub-install.in: Fix a typo that prevented error messages
45887c478bd9Sstevel@tonic-gate	from appearing.
45897c478bd9Sstevel@tonic-gate	Copy and remove files individually and exit with an error as
45907c478bd9Sstevel@tonic-gate	soon as it fails.
45917c478bd9Sstevel@tonic-gate	Show $log_file if --debug was given on the command line.
45927c478bd9Sstevel@tonic-gate
45937c478bd9Sstevel@tonic-gate2000-04-19  Gordon Matzigkeit  <gord@fig.org>
45947c478bd9Sstevel@tonic-gate
45957c478bd9Sstevel@tonic-gate	* stage2/cmdline.c (enter_cmdline): Don't give errors on empty
45967c478bd9Sstevel@tonic-gate	command lines.
45977c478bd9Sstevel@tonic-gate
45987c478bd9Sstevel@tonic-gate	* stage2/common.c (err_list): Clean up wordings slightly.
45997c478bd9Sstevel@tonic-gate
46007c478bd9Sstevel@tonic-gate2000-05-29  OKUJI Yoshinori  <okuji@gnu.org>
46017c478bd9Sstevel@tonic-gate
46027c478bd9Sstevel@tonic-gate	Based on a patch by Neal H Walfield <neal@walfield.org>:
46037c478bd9Sstevel@tonic-gate	* netboot/misc.c [GRUB] (inet_aton): Defined.
46047c478bd9Sstevel@tonic-gate	* netboot/main.c (arp_server_override): New function.
46057c478bd9Sstevel@tonic-gate	* netboot/etherboot.h [GRUB] (arp_server_override): Declared.
46067c478bd9Sstevel@tonic-gate	(inet_aton): Likewise.
46077c478bd9Sstevel@tonic-gate	* stage2/builtins.c (tftpserver_func): New function.
46087c478bd9Sstevel@tonic-gate	(builtin_tftpserver): New variable.
46097c478bd9Sstevel@tonic-gate	(builtin_table): Added a pointer to BUILTIN_TFTPSERVER.
46107c478bd9Sstevel@tonic-gate
46117c478bd9Sstevel@tonic-gate2000-05-28  OKUJI Yoshinori  <okuji@gnu.org>
46127c478bd9Sstevel@tonic-gate
46137c478bd9Sstevel@tonic-gate	* stage2/asm.S (codestart): Fix a typo: DISKLESS_SUPPORT ->
46147c478bd9Sstevel@tonic-gate	SUPPORT_DISKLESS.
46157c478bd9Sstevel@tonic-gate	* stage2/nbloader.S: Fix the image length and the memory length
46167c478bd9Sstevel@tonic-gate	fields. They shouldn't contain the first sector for a tag.
46177c478bd9Sstevel@tonic-gate	Mmh..., that is unclear as far as I see the Net Boot Image
46187c478bd9Sstevel@tonic-gate	Proposal...
46197c478bd9Sstevel@tonic-gate	* stage2/shared.h (STACKOFF): Enclosed with parentheses.
46207c478bd9Sstevel@tonic-gate	(PROTSTACKINIT): Likewise.
46217c478bd9Sstevel@tonic-gate
46227c478bd9Sstevel@tonic-gate2000-05-27  OKUJI Yoshinori  <okuji@gnu.org>
46237c478bd9Sstevel@tonic-gate
46247c478bd9Sstevel@tonic-gate	Add diskless support, mostly based on patches by Christoph
46257c478bd9Sstevel@tonic-gate	Plattner <Christoph.Plattner@dot.at>, but also based on a patch
46267c478bd9Sstevel@tonic-gate	by Chip Salzenberg <chip@valinux.com> for PXE. Of course, I've
46277c478bd9Sstevel@tonic-gate	modified both the patches thoroughly to adapt them to my
46287c478bd9Sstevel@tonic-gate	preference.
46297c478bd9Sstevel@tonic-gate
46307c478bd9Sstevel@tonic-gate	* configure.in (--enable-diskless): New option. Set a
46317c478bd9Sstevel@tonic-gate	conditional DISKLESS_SUPPORT.
46327c478bd9Sstevel@tonic-gate	* stage2/Makefile.am (noinst_HEADERS): Added nbi.h.
46337c478bd9Sstevel@tonic-gate	(EXTRA_PROGRAMS): New variable.
46347c478bd9Sstevel@tonic-gate	(pkgdata_DATA) [DISKLESS_SUPPORT]: Added
46357c478bd9Sstevel@tonic-gate	nbgrub and pxegrub.
46367c478bd9Sstevel@tonic-gate	(noinst_DATA) [DISKLESS_SUPPORT]: Added nbloader, pxeloader and
46377c478bd9Sstevel@tonic-gate	diskless.
46387c478bd9Sstevel@tonic-gate	(noinst_PROGRAMS) [DISKLESS_SUPPORT]: Added nbloader.exec,
46397c478bd9Sstevel@tonic-gate	pxeloader.exec and diskless.exec.
46407c478bd9Sstevel@tonic-gate	(PXELOADER_LINK): New variable.
46417c478bd9Sstevel@tonic-gate	(BUILT_SOURCES) [DISKLESS_SUPPORT]: Added diskless_size.h.
46427c478bd9Sstevel@tonic-gate	(diskless_exec_SOURCES): New variable.
46437c478bd9Sstevel@tonic-gate	(diskless_exec_CFLAGS): Likewise.
46447c478bd9Sstevel@tonic-gate	(diskless_exec_LDFLAGS): Likewise.
46457c478bd9Sstevel@tonic-gate	(diskless_exec_LDADD): Likewise.
46467c478bd9Sstevel@tonic-gate	(diskless_size.h): New target.
46477c478bd9Sstevel@tonic-gate	(nbloader_exec_SOURCES): New variable.
46487c478bd9Sstevel@tonic-gate	(nbloader_exec_CFLAGS): Likewise.
46497c478bd9Sstevel@tonic-gate	(nbloader_exec_LDFLAGS): Likewise.
46507c478bd9Sstevel@tonic-gate	(nbloader_exec-nbloader.o): New dependency.
46517c478bd9Sstevel@tonic-gate	(nbgrub): New target.
46527c478bd9Sstevel@tonic-gate	(pxeloader_exec_SOURCES): new variable.
46537c478bd9Sstevel@tonic-gate	(pxeloader_exec_CFLAGS): Likewise.
46547c478bd9Sstevel@tonic-gate	(pxeloader_exec_LDFLAGS): Likewise.
46557c478bd9Sstevel@tonic-gate	(pxegrub): New target.
46567c478bd9Sstevel@tonic-gate	* stage2/asm.S (install_partition): Set to 0xFFFFFF instead of
46577c478bd9Sstevel@tonic-gate	0x020000. What was the benefit from the previous setting?
46587c478bd9Sstevel@tonic-gate	(codestart) [SUPPORT_DISKLESS]: Don't move %dl to BOOT_DRIVE.
46597c478bd9Sstevel@tonic-gate	(boot_drive) [SUPPORT_DISKLESS]: Set to NETWORK_DRIVE instead of
46607c478bd9Sstevel@tonic-gate	zero.
46617c478bd9Sstevel@tonic-gate	* stage2/common.c: Include <shared.h> instead of "shared.h",
46627c478bd9Sstevel@tonic-gate	just for a cosmetic reason.
46637c478bd9Sstevel@tonic-gate	[SUPPORT_DISKLESS]: Include etherboot.h.
46647c478bd9Sstevel@tonic-gate	[SUPPORT_DISKLESS] (setup_diskless_environment): New internal
46657c478bd9Sstevel@tonic-gate	function.
46667c478bd9Sstevel@tonic-gate	(init_bios_info) [SUPPORT_DISKLESS]: Call
46677c478bd9Sstevel@tonic-gate	setup_diskless_environment after the memory initialization is
46687c478bd9Sstevel@tonic-gate	finished. Return if fails.
46697c478bd9Sstevel@tonic-gate	* stage2/nbloader.S: New file.
46707c478bd9Sstevel@tonic-gate	* stage2/pxeloader.S: Likewise.
46717c478bd9Sstevel@tonic-gate	* stage2/nbi.h: Likewise.
46727c478bd9Sstevel@tonic-gate
46737c478bd9Sstevel@tonic-gate2000-05-25  OKUJI Yoshinori  <okuji@gnu.org>
46747c478bd9Sstevel@tonic-gate
46757c478bd9Sstevel@tonic-gate	* netboot/fsys_tftp.c (buf_fill): Warn when amazing things
46767c478bd9Sstevel@tonic-gate	happen.
46777c478bd9Sstevel@tonic-gate	(tftp_dir): Revert previous change. Don't use TFTP_MIN_PACKET
46787c478bd9Sstevel@tonic-gate	but calculate the appropriate length.
46797c478bd9Sstevel@tonic-gate
46807c478bd9Sstevel@tonic-gate2000-05-23  OKUJI Yoshinori  <okuji@gnu.org>
46817c478bd9Sstevel@tonic-gate
46827c478bd9Sstevel@tonic-gate	* netboot/fsys_tftp.c (tftp_dir): Append "0\0" to the request
46837c478bd9Sstevel@tonic-gate	string, because the "tsize" option must be followed by zero,
46847c478bd9Sstevel@tonic-gate	according to RFC 2349.
46857c478bd9Sstevel@tonic-gate
46867c478bd9Sstevel@tonic-gate2000-05-22  OKUJI Yoshinori  <okuji@gnu.org>
46877c478bd9Sstevel@tonic-gate
46887c478bd9Sstevel@tonic-gate	Synchronize the documentation with the code.
46897c478bd9Sstevel@tonic-gate
46907c478bd9Sstevel@tonic-gate	* docs/user-ref.texi: Added ReiserFS as a supported filesystem.
46917c478bd9Sstevel@tonic-gate	Updated the descriptions about `password', `install', `kernel',
46927c478bd9Sstevel@tonic-gate	and `setup'.
46937c478bd9Sstevel@tonic-gate	Added a description about `lock'.
46947c478bd9Sstevel@tonic-gate	Added descriptions about ERR_UNALIGNED and ERR_PRIVILEGED.
46957c478bd9Sstevel@tonic-gate	Added a description about the option `--force-lba' of
46967c478bd9Sstevel@tonic-gate	the program `grub-install'.
46977c478bd9Sstevel@tonic-gate	* docs/tutorial.texi: Updated the subsection for NetBSD.
46987c478bd9Sstevel@tonic-gate
46997c478bd9Sstevel@tonic-gate2000-05-21  OKUJI Yoshinori  <okuji@gnu.org>
47007c478bd9Sstevel@tonic-gate
47017c478bd9Sstevel@tonic-gate	* stage2/asm.S (set_int13_handler): Don't use MBI to get the
47027c478bd9Sstevel@tonic-gate	lower memory size. Instead, decrease it in the BIOS memory
47037c478bd9Sstevel@tonic-gate	directly and set %eax to it, since MBI.MEM_LOWER may not be the
47047c478bd9Sstevel@tonic-gate	same as [0x413] any longer due to the previous change.
47057c478bd9Sstevel@tonic-gate
47067c478bd9Sstevel@tonic-gate	* grub/asmstub.c (CONVENTIONAL_MEMSIZE): Changed to 640 * 1024
47077c478bd9Sstevel@tonic-gate	from 640. You didn't like the inconsistency between
47087c478bd9Sstevel@tonic-gate	EXTENDED_MEMSIZE and CONVENTIONAL_MEMSIZE, did you?
47097c478bd9Sstevel@tonic-gate	(get_memsize): Return CONVENTIONAL_MEMSIZE >> 10 instead of
47107c478bd9Sstevel@tonic-gate	CONVENTIONAL_MEMSIZE, if TYPE is zero.
47117c478bd9Sstevel@tonic-gate	(get_eisamemsize): Return EXTENDED_MEMSIZE >> 10 instead of
47127c478bd9Sstevel@tonic-gate	EXTENDED_MEMSIZE / 1024. Just a cosmetic change.
47137c478bd9Sstevel@tonic-gate	(MMAR_DESC_LENGTH): New macro. Defined as 20.
47147c478bd9Sstevel@tonic-gate	(get_mmap_entry): Define a new variable DESC_TABLE statically,
47157c478bd9Sstevel@tonic-gate	and copy the CONTth entry to *DESC if CONT is a correct index.
47167c478bd9Sstevel@tonic-gate
47177c478bd9Sstevel@tonic-gate2000-05-21  Chip Salzenberg  <chip@valinux.com>
47187c478bd9Sstevel@tonic-gate
47197c478bd9Sstevel@tonic-gate	* stage2/common.c (mmap_avail_at): New function, abstracted out
47207c478bd9Sstevel@tonic-gate	of init_bios_info, to scan E820 memory map.
47217c478bd9Sstevel@tonic-gate	(init_bios_info): Use mmap_avail_at for _both_ MBI.MEM_UPPER and
47227c478bd9Sstevel@tonic-gate	MBI.MEM_LOWER.
47237c478bd9Sstevel@tonic-gate
47247c478bd9Sstevel@tonic-gate2000-05-17  OKUJI Yoshinori  <okuji@gnu.org>
47257c478bd9Sstevel@tonic-gate
47267c478bd9Sstevel@tonic-gate	Update the network support to Etherboot-4.6.1.
47277c478bd9Sstevel@tonic-gate
47287c478bd9Sstevel@tonic-gate	* netboot/config.c (pci_nic_list) [INCLUDE_TULIP]: Added an
47297c478bd9Sstevel@tonic-gate	entry for Davicom 9102.
47307c478bd9Sstevel@tonic-gate	* netboot/epic100.c: Just copied.
47317c478bd9Sstevel@tonic-gate	* netboot/pci.h: Likewise.
47327c478bd9Sstevel@tonic-gate	* netboot/tulip.c: Likewise.
47337c478bd9Sstevel@tonic-gate	* netboot/etherboot.h (tftp): Change the type of the first
47347c478bd9Sstevel@tonic-gate	argument to const char * from char *.
47357c478bd9Sstevel@tonic-gate	* netboot/main.c (tftp): Likewise.
47367c478bd9Sstevel@tonic-gate
47377c478bd9Sstevel@tonic-gate2000-05-13  OKUJI Yoshinori  <okuji@gnu.org>
47387c478bd9Sstevel@tonic-gate
47397c478bd9Sstevel@tonic-gate	* util/grub-install.in: If the program `cp' fails, exit with the
47407c478bd9Sstevel@tonic-gate	status code 1. Suggested by Pavel Roskin.
47417c478bd9Sstevel@tonic-gate
47427c478bd9Sstevel@tonic-gate2000-05-13  OKUJI Yoshinori  <okuji@gnu.org>
47437c478bd9Sstevel@tonic-gate
47447c478bd9Sstevel@tonic-gate	From Pixel <pixel@mandrakesoft.com>:
47457c478bd9Sstevel@tonic-gate	* stage2/pc_slice.h (PC_SLICE_TYPE_LINUX_EXTENDED): New macro.
47467c478bd9Sstevel@tonic-gate	(IS_PC_SLICE_TYPE_EXTENDED): Added a check for
47477c478bd9Sstevel@tonic-gate	PC_SLICE_TYPE_LINUX_EXTENDED.
47487c478bd9Sstevel@tonic-gate
47497c478bd9Sstevel@tonic-gate2000-05-05  OKUJI Yoshinori  <okuji@gnu.org>
47507c478bd9Sstevel@tonic-gate
47517c478bd9Sstevel@tonic-gate	* stage2/common.c (init_bios_info) [!STAGE1_5]: When the memory
47527c478bd9Sstevel@tonic-gate	map is present, search the maximum for MEMTMP in bytes instead
47537c478bd9Sstevel@tonic-gate	of kilobytes and set EXTENDED_MEMORY to MEMTMP minus 1MB in
47547c478bd9Sstevel@tonic-gate	kilobytes.
47557c478bd9Sstevel@tonic-gate
47567c478bd9Sstevel@tonic-gate2000-05-05  OKUJI Yoshinori  <okuji@gnu.org>
47577c478bd9Sstevel@tonic-gate
47587c478bd9Sstevel@tonic-gate	Ignore any memory holes when passing the maximum memory address
47597c478bd9Sstevel@tonic-gate	to non-Multiboot kernels (i.e. Linux and *BSD).
47607c478bd9Sstevel@tonic-gate
47617c478bd9Sstevel@tonic-gate	* stage2/common.c [!STAGE1_5] (extended_memory): New global
47627c478bd9Sstevel@tonic-gate	variable.
47637c478bd9Sstevel@tonic-gate	(init_bios_info) [!STAGE1_5]: Change the type of CONT, MEMTMP
47647c478bd9Sstevel@tonic-gate	and ADDR to unsigned long from int.
47657c478bd9Sstevel@tonic-gate	Set EXTENDED_MEMORY to MBI.MEM_UPPER by default.
47667c478bd9Sstevel@tonic-gate	If MBI.MMAP_LENGTH is not zero, set EXTENDED_MEMORY to the
47677c478bd9Sstevel@tonic-gate	maximum available address, ignoring any memory holes.
47687c478bd9Sstevel@tonic-gate	If MBI.MMAP_LENGTH is zero but get_eisamemsize returns other
47697c478bd9Sstevel@tonic-gate	than -1, set EXTENDED_MEMORY to (CONT >> 10) + 0x3c00 if CONT is
47707c478bd9Sstevel@tonic-gate	non-zero, otherwise, set it to MEMTMP.
47717c478bd9Sstevel@tonic-gate	* stage2/shared.h [!STAGE1_5] (extended_memory): Declared.
47727c478bd9Sstevel@tonic-gate	* stage2/boot.c (load_image): Always pass the "mem=" option to a
47737c478bd9Sstevel@tonic-gate	Linux kernel, using EXTENDED_MEMORY instead of MBI.MEM_UPPER.
47747c478bd9Sstevel@tonic-gate	(bsd_boot): Use EXTENDED_MEMORY instead of MBI.MEM_UPPER.
47757c478bd9Sstevel@tonic-gate
47767c478bd9Sstevel@tonic-gate2000-04-30  OKUJI Yoshinori  <okuji@gnu.org>
47777c478bd9Sstevel@tonic-gate
47787c478bd9Sstevel@tonic-gate	* stage1/stage1.S (message): Use lodsb instead of incw and movb.
47797c478bd9Sstevel@tonic-gate	From Andrew Clausen <clausen@gnu.org>.
47807c478bd9Sstevel@tonic-gate
47817c478bd9Sstevel@tonic-gate	* stage1/stage1.S (copy_buffer): Set %cx to 0x100 and use movsw
47827c478bd9Sstevel@tonic-gate	instead of movsb, since it is guaranteed that the region is
47837c478bd9Sstevel@tonic-gate	properly aligned.
47847c478bd9Sstevel@tonic-gate
47857c478bd9Sstevel@tonic-gate2000-04-29  OKUJI Yoshinori  <okuji@gnu.org>
47867c478bd9Sstevel@tonic-gate
47877c478bd9Sstevel@tonic-gate	* stage2/builtins.c (setup_func): Use SECTOR_BITS instead of
47887c478bd9Sstevel@tonic-gate	SECTOR_SIZE to compute BLOCKSIZE.
47897c478bd9Sstevel@tonic-gate
47907c478bd9Sstevel@tonic-gate2000-04-26  OKUJI Yoshinori  <okuji@gnu.org>
47917c478bd9Sstevel@tonic-gate
47927c478bd9Sstevel@tonic-gate	* netboot/depca.c: Copied from Etherboot-4.6.0.
47937c478bd9Sstevel@tonic-gate
47947c478bd9Sstevel@tonic-gate2000-04-23  OKUJI Yoshinori  <okuji@gnu.org>
47957c478bd9Sstevel@tonic-gate
47967c478bd9Sstevel@tonic-gate	More security-related features.
47977c478bd9Sstevel@tonic-gate
47987c478bd9Sstevel@tonic-gate	* stage2/builtins.c (auth): New global variable.
47997c478bd9Sstevel@tonic-gate	(configfile_func): Clear AUTH before jumping to cmain.
48007c478bd9Sstevel@tonic-gate	(lock_func): New function.
48017c478bd9Sstevel@tonic-gate	(builtin_lock): New variable.
48027c478bd9Sstevel@tonic-gate	(password_func): Make sure that LEN + 2 is less than or equal to
48037c478bd9Sstevel@tonic-gate	PASSWORD_BUFLEN, because now the password must be terminated
48047c478bd9Sstevel@tonic-gate	with double NULs, in order to permit an empty configuration file
48057c478bd9Sstevel@tonic-gate	name.
48067c478bd9Sstevel@tonic-gate	Copy LEN bytes from ARG to PASSWORD, instead of LEN + 1 bytes.
48077c478bd9Sstevel@tonic-gate	Clear the rest of the buffer PASSWORD.
48087c478bd9Sstevel@tonic-gate	(builtin_table): Added a pointer to BUILTIN_LOCK.
48097c478bd9Sstevel@tonic-gate	* stage2/common.c (err_list): Added an entry for ERR_PRIVILEGED.
48107c478bd9Sstevel@tonic-gate	* stage2/stage2.c (run_menu): If AUTH is true, show the messages
48117c478bd9Sstevel@tonic-gate	for a non-password configuration, even if PASSWORD is not NULL.
48127c478bd9Sstevel@tonic-gate	Likewise, if AUTH is true, allow the user to use privileged
48137c478bd9Sstevel@tonic-gate	instructions (such as `c').
48147c478bd9Sstevel@tonic-gate	If a correct password is entered, check if *PPTR is NUL or not.
48157c478bd9Sstevel@tonic-gate	If it is NUL, set AUTH to 1 and go to the label restart,
48167c478bd9Sstevel@tonic-gate	otherwise, copy PPTR to NEW_FILE, clear AUTH, and return.
48177c478bd9Sstevel@tonic-gate	* stage2/shared.h (grub_error_t): Added a new constant
48187c478bd9Sstevel@tonic-gate	ERR_PRIVILEGED.
48197c478bd9Sstevel@tonic-gate	(auth): Declared.
48207c478bd9Sstevel@tonic-gate
48217c478bd9Sstevel@tonic-gate2000-04-23  OKUJI Yoshinori  <okuji@gnu.org>
48227c478bd9Sstevel@tonic-gate
48237c478bd9Sstevel@tonic-gate	* docs/user-ref.texi (Command-line-specific commands): Don't use
48247c478bd9Sstevel@tonic-gate	the command @var for the argument "file" to the command
48257c478bd9Sstevel@tonic-gate	"configfile" on the definition.
48267c478bd9Sstevel@tonic-gate
48277c478bd9Sstevel@tonic-gate2000-04-22  OKUJI Yoshinori  <okuji@gnu.org>
48287c478bd9Sstevel@tonic-gate
48297c478bd9Sstevel@tonic-gate	Update the network support to Etherboot 4.5.8.
48307c478bd9Sstevel@tonic-gate
48317c478bd9Sstevel@tonic-gate	* configure.in (--enable-3c590): New option.
48327c478bd9Sstevel@tonic-gate	(--enable-3c595): Likewise.
48337c478bd9Sstevel@tonic-gate	(--enable-depca): Likewise.
48347c478bd9Sstevel@tonic-gate	(--enable-lance): Likewise.
48357c478bd9Sstevel@tonic-gate	(--enable-ns8390): Likewise.
48367c478bd9Sstevel@tonic-gate	(--enable-ntulip): Likewise.
48377c478bd9Sstevel@tonic-gate	(--enable-lancepci): Removed.
48387c478bd9Sstevel@tonic-gate	(--enable-nepci): Likewise.
48397c478bd9Sstevel@tonic-gate	(--enable-otulip): Likewise.
48407c478bd9Sstevel@tonic-gate	(--enable-smc9000): The duplicated one is named to ...
48417c478bd9Sstevel@tonic-gate	(--enable-smc9000-scan): ... this. This was a typo, perhaps.
48427c478bd9Sstevel@tonic-gate
48437c478bd9Sstevel@tonic-gate	* netboot/Makefile.am (libdrivers_a_SOURCES): Removed
48447c478bd9Sstevel@tonic-gate	byteorder.h, if.h, netboot_config.h and netdevice.h, and added
48457c478bd9Sstevel@tonic-gate	cards.h.
48467c478bd9Sstevel@tonic-gate	(EXTRA_libdrivers_a_SOURCES): Removed ntulip.c and tulip.h, and
48477c478bd9Sstevel@tonic-gate	added 3c595.c, 3c595.h, depca.c, otulip.c and otulip.h.
48487c478bd9Sstevel@tonic-gate	(libdrivers_a_CFLAGS): Define FSYS_TFTP as 1 instead of empty.
48497c478bd9Sstevel@tonic-gate	(EXTRA_DIST): Removed ntulip.txt, and added cs89x0.txt and
48507c478bd9Sstevel@tonic-gate	tulip.txt.
48517c478bd9Sstevel@tonic-gate	(3c595_drivers): New variable.
48527c478bd9Sstevel@tonic-gate	(depca_drivers): Likewise.
48537c478bd9Sstevel@tonic-gate	(lance_drivers): Removed lancepci.o and added lance.o.
48547c478bd9Sstevel@tonic-gate	(ns8390_drivers): Removed nepci.o and added ns8390.o.
48557c478bd9Sstevel@tonic-gate	(ntulip_drivers): Deleted.
48567c478bd9Sstevel@tonic-gate	(otulip_drivers): New variable.
48577c478bd9Sstevel@tonic-gate	($(3c595_drivers)): New target.
48587c478bd9Sstevel@tonic-gate	($(depca_drivers)): Likewise.
48597c478bd9Sstevel@tonic-gate	($(ntulip_drivers)): Deleted.
48607c478bd9Sstevel@tonic-gate	($(otulip_drivers)): New target.
48617c478bd9Sstevel@tonic-gate	(3c590_o_CFLAGS): New variable.
48627c478bd9Sstevel@tonic-gate	(3c595_o_CFLAGS): Likewise.
48637c478bd9Sstevel@tonic-gate	(depca_o_CFLAGS): Likewise.
48647c478bd9Sstevel@tonic-gate	(lancepci_o_CFLAGS): Deleted.
48657c478bd9Sstevel@tonic-gate	(lance_o_CFLAGS): New variable.
48667c478bd9Sstevel@tonic-gate	(nepci_o_CFLAGS): Deleted.
48677c478bd9Sstevel@tonic-gate	(ns8390_o_CFLAGS): New variable.
48687c478bd9Sstevel@tonic-gate	(ntulip_o_CFLAGS): Deleted.
48697c478bd9Sstevel@tonic-gate	(otulip_o_CFLAGS): New variable.
48707c478bd9Sstevel@tonic-gate
48717c478bd9Sstevel@tonic-gate	* netboot/3c90x.c: Updated to Etherboot-4.5.8.
48727c478bd9Sstevel@tonic-gate	* netboot/3c90x.txt: Likewise.
48737c478bd9Sstevel@tonic-gate	* netboot/cs89x0.c: Likewise.
48747c478bd9Sstevel@tonic-gate	* netboot/cs89x0.h: Likewise.
48757c478bd9Sstevel@tonic-gate	* netboot/eepro100.c: Likewise.
48767c478bd9Sstevel@tonic-gate	* netboot/epic100.c: Likewise.
48777c478bd9Sstevel@tonic-gate	* netboot/epic100.h: Likewise.
48787c478bd9Sstevel@tonic-gate	* netboot/i82586.c: Likewise.
48797c478bd9Sstevel@tonic-gate	* netboot/lance.c: Likewise.
48807c478bd9Sstevel@tonic-gate	* netboot/linux-asm-io.h: Likewise.
48817c478bd9Sstevel@tonic-gate	* netboot/linux-asm-string.h: Likewise.
48827c478bd9Sstevel@tonic-gate	* netboot/nic.h: Likewise.
48837c478bd9Sstevel@tonic-gate	* netboot/ns8390.c: Likewise.
48847c478bd9Sstevel@tonic-gate	* netboot/ns8390.h: Likewise.
48857c478bd9Sstevel@tonic-gate	* netboot/pci.c: Likewise.
48867c478bd9Sstevel@tonic-gate	* netboot/pci.h: Likewise.
48877c478bd9Sstevel@tonic-gate	* netboot/rtl8139.c: Likewise.
48887c478bd9Sstevel@tonic-gate	* netboot/sk_g16.c: Likewise.
48897c478bd9Sstevel@tonic-gate	* netboot/sk_g16.h: Likewise.
48907c478bd9Sstevel@tonic-gate	* netboot/smc9000.c: Likewise.
48917c478bd9Sstevel@tonic-gate	* netboot/smc9000.h: Likewise.
48927c478bd9Sstevel@tonic-gate	* netboot/tiara.c: Likewise.
48937c478bd9Sstevel@tonic-gate	* netboot/tulip.c: Likewise.
48947c478bd9Sstevel@tonic-gate	* netboot/via-rhine.c: Likewise.
48957c478bd9Sstevel@tonic-gate
48967c478bd9Sstevel@tonic-gate	* netboot/config.c: Updated to Etherboot-4.5.8 and modified (see
48977c478bd9Sstevel@tonic-gate	below).
48987c478bd9Sstevel@tonic-gate	[GRUB] (print_config): Undefined.
48997c478bd9Sstevel@tonic-gate	(eth_probe) [GRUB]: If PROBED is true, do nothing. Otherwise,
49007c478bd9Sstevel@tonic-gate	clear NETWORK_READY and ARPTABLE, set ROM to ROM_INFO_LOCATION,
49017c478bd9Sstevel@tonic-gate	and set PROBED to 1 if succeeds.
49027c478bd9Sstevel@tonic-gate	* netboot/etherboot.h: Likewise,
49037c478bd9Sstevel@tonic-gate	(GRUB): New macro.
49047c478bd9Sstevel@tonic-gate	[GRUB]: Include <shared.h>.
49057c478bd9Sstevel@tonic-gate	[GRUB] (NO_DHCP_SUPPORT): Undefined.
49067c478bd9Sstevel@tonic-gate	[GRUB] (RELOC): Defined as zero.
49077c478bd9Sstevel@tonic-gate	[GRUB] (INTERNAL_BOOTP_DATA): Defined as one.
49087c478bd9Sstevel@tonic-gate	[GRUB] (USE_INTERNAL_BUFFER): Likewise.
49097c478bd9Sstevel@tonic-gate	[GRUB] (BACKOFF_LIMIT): Defined as 7.
49107c478bd9Sstevel@tonic-gate	[GRUB] (CTRL_C): New macro.
49117c478bd9Sstevel@tonic-gate	[GRUB] (print_network_configuration): Declared.
49127c478bd9Sstevel@tonic-gate	[GRUB] (ip_abort): Likewise.
49137c478bd9Sstevel@tonic-gate	[GRUB] (network_ready): Likewise.
49147c478bd9Sstevel@tonic-gate	* netboot/fsys_tftp.c: Don't include <netboot_config.h>.
49157c478bd9Sstevel@tonic-gate	(isocket): Renamed to ...
49167c478bd9Sstevel@tonic-gate	(iport): ... this.
49177c478bd9Sstevel@tonic-gate	(osocket): Renamed to ...
49187c478bd9Sstevel@tonic-gate	(oport): ... this.
49197c478bd9Sstevel@tonic-gate	(bcounter): New variable.
49207c478bd9Sstevel@tonic-gate	(buf_fill): When checking the block order, see BCOUNTER as well
49217c478bd9Sstevel@tonic-gate	as BLOCK.
49227c478bd9Sstevel@tonic-gate	Don't process a packet, if BLOCK minus PREVBLOCK is not 1,
49237c478bd9Sstevel@tonic-gate	instead of if BLOCK is less than or equal to PREVBLOCK.
49247c478bd9Sstevel@tonic-gate	Increment BCOUNTER after reseting RETRY.
49257c478bd9Sstevel@tonic-gate	(send_rrq): Clear BCOUNTER.
49267c478bd9Sstevel@tonic-gate	Call await_reply with AWAIT_QDRAIN.
49277c478bd9Sstevel@tonic-gate	* netboot/main.c: Don't include <netboot_config.h>.
49287c478bd9Sstevel@tonic-gate	(dhcpdiscover): Made const.
49297c478bd9Sstevel@tonic-gate	(dhcprequest): Likewise. Updated the contents.
49307c478bd9Sstevel@tonic-gate	(broadcast): Made const.
49317c478bd9Sstevel@tonic-gate	(udp_transmit): Copied.
49327c478bd9Sstevel@tonic-gate	(tftp): Likewise.
49337c478bd9Sstevel@tonic-gate	(bootp): Likewise.
49347c478bd9Sstevel@tonic-gate	(rarp): Likewise.
49357c478bd9Sstevel@tonic-gate	(await_reply): Likewise.
49367c478bd9Sstevel@tonic-gate	(decode_rfc1533): Likewise.
49377c478bd9Sstevel@tonic-gate	(rfc951_sleep): Likewise.
49387c478bd9Sstevel@tonic-gate	(cleanup_net): Likewise.
49397c478bd9Sstevel@tonic-gate	* netboot/misc.c (sleep): Copied.
49407c478bd9Sstevel@tonic-gate	(twiddle): Likewise.
49417c478bd9Sstevel@tonic-gate	(getdec): Likewise.
49427c478bd9Sstevel@tonic-gate	* netboot/osdep.h: Copied and modified (see below).
49437c478bd9Sstevel@tonic-gate	[GRUB] (ETHERBOOT32): Used the same definition as Linux and
49447c478bd9Sstevel@tonic-gate	FreeBSD.
49457c478bd9Sstevel@tonic-gate	[GRUB] (ntohl): Likewise.
49467c478bd9Sstevel@tonic-gate	[GRUB] (htonl): Likewise.
49477c478bd9Sstevel@tonic-gate	[GRUB] (ntohs): Likewise.
49487c478bd9Sstevel@tonic-gate	[GRUB] (htons): Likewise.
49497c478bd9Sstevel@tonic-gate	[GRUB] (swap32): Likewise.
49507c478bd9Sstevel@tonic-gate	[GRUB] (swap16): Likewise.
49517c478bd9Sstevel@tonic-gate	[GRUB]: Include "linux-asm-io.h".
49527c478bd9Sstevel@tonic-gate
49537c478bd9Sstevel@tonic-gate	* netboot/byteorder.h: Removed.
49547c478bd9Sstevel@tonic-gate	* netboot/if.h: Likewise.
49557c478bd9Sstevel@tonic-gate	* netboot/netboot_config.h: Likewise.
49567c478bd9Sstevel@tonic-gate	* netboot/netdevice.h: Likewise.
49577c478bd9Sstevel@tonic-gate	* netboot/ntulip.c: Likewise.
49587c478bd9Sstevel@tonic-gate	* netboot/ntulip.txt: Likewise.
49597c478bd9Sstevel@tonic-gate	* netboot/tulip.h: Likewise.
49607c478bd9Sstevel@tonic-gate
49617c478bd9Sstevel@tonic-gate	* netboot/3c595.c: New file. Copied from Etherboot-4.5.8.
49627c478bd9Sstevel@tonic-gate	* netboot/3c595.h: Likewise.
49637c478bd9Sstevel@tonic-gate	* netboot/cards.h: Likewise.
49647c478bd9Sstevel@tonic-gate	* netboot/cs89x0.txt: Likewise.
49657c478bd9Sstevel@tonic-gate	* netboot/depca.c: Likewise.
49667c478bd9Sstevel@tonic-gate	* netboot/otulip.c: Likewise.
49677c478bd9Sstevel@tonic-gate	* netboot/otulip.h: Likewise.
49687c478bd9Sstevel@tonic-gate	* netboot/tulip.txt: Likewise.
49697c478bd9Sstevel@tonic-gate
49707c478bd9Sstevel@tonic-gate2000-02-29  Jochen Hoenicke  <jochen@gnu.org>
49717c478bd9Sstevel@tonic-gate
49727c478bd9Sstevel@tonic-gate	* stage2/common.c (err_list): Added message for ERR_UNALIGNED.
49737c478bd9Sstevel@tonic-gate	* stage2/shared.h [!STAGE1_5] (disk_read_hook,disk_read_func): New
49747c478bd9Sstevel@tonic-gate 	parameters offset and length.
49757c478bd9Sstevel@tonic-gate	(ERR_UNALIGNED): New error code.
49767c478bd9Sstevel@tonic-gate	* stage2/disk_io.c (rawread) [!STAGE1_5]: Call disk_read_func with
49777c478bd9Sstevel@tonic-gate	offset and length.
49787c478bd9Sstevel@tonic-gate	* stage2/builtin.c (disk_read_print_func): Print offset and length.
49797c478bd9Sstevel@tonic-gate	(blocklist_func): Print detailed byte ranges for partial sectors.
49807c478bd9Sstevel@tonic-gate	(install_func): Detect partial sectors and print error message.
49817c478bd9Sstevel@tonic-gate
49827c478bd9Sstevel@tonic-gate2000-04-18  Pavel Roskin  <pavel_roskin@geocities.com>
49837c478bd9Sstevel@tonic-gate
49847c478bd9Sstevel@tonic-gate	* util/grub-install.in: Don't use `!' in `test' for more
49857c478bd9Sstevel@tonic-gate	portability.
49867c478bd9Sstevel@tonic-gate	Don't use `for' without `in' for compatability with ash.
49877c478bd9Sstevel@tonic-gate	Check install_device before running grub if possible. Added
49887c478bd9Sstevel@tonic-gate	error messages if install_device is not set or not unique.
49897c478bd9Sstevel@tonic-gate	Exit if mkdir fails.
49907c478bd9Sstevel@tonic-gate	Add a message about successful installation.
49917c478bd9Sstevel@tonic-gate	Remove unneeded backslash in the final message.
49927c478bd9Sstevel@tonic-gate	(convert): use `test -b' instead of `test -e' because ash
49937c478bd9Sstevel@tonic-gate	doesn't	understand the later. Correct error message accordingly.
49947c478bd9Sstevel@tonic-gate
49957c478bd9Sstevel@tonic-gate2000-04-17  OKUJI Yoshinori  <okuji@gnu.org>
49967c478bd9Sstevel@tonic-gate
49977c478bd9Sstevel@tonic-gate	The user doesn't have to recompile GRUB for his/her buggy BIOS
49987c478bd9Sstevel@tonic-gate	any longer. It is configurable to ignore the LBA support bitmap
49997c478bd9Sstevel@tonic-gate	at the installation time.
50007c478bd9Sstevel@tonic-gate
50017c478bd9Sstevel@tonic-gate	* stage1/stage1.S (force_lba): New variable.
50027c478bd9Sstevel@tonic-gate	(stage2_address): Moved forwards, to align some variables in
50037c478bd9Sstevel@tonic-gate	natural boundaries.
50047c478bd9Sstevel@tonic-gate	(real_start): Check if FORCE_LBA is non-zero, if so, jump to
50057c478bd9Sstevel@tonic-gate	skip_lba_bitmap_check, otherwise, check if bit 0 of the support
50067c478bd9Sstevel@tonic-gate	bitmap is non-zero.
50077c478bd9Sstevel@tonic-gate	Don't use #ifdef for CHECK_LBA_SUPPORT_BITMAP.
50087c478bd9Sstevel@tonic-gate	(skip_lba_bitmap_check): New label.
50097c478bd9Sstevel@tonic-gate	* stage1/stage1.h (COMPAT_VERSION_MINOR): Set to 1.
50107c478bd9Sstevel@tonic-gate	(STAGE1_FORCE_LBA): New macro.
50117c478bd9Sstevel@tonic-gate	(STAGE1_STAGE2_ADDRESS): Set to 0x42.
50127c478bd9Sstevel@tonic-gate	(STAGE1_STAGE2_SECTOR): Set to 0x44.
50137c478bd9Sstevel@tonic-gate	(STAGE1_STAGE2_SEGMENT): Set to 0x48.
50147c478bd9Sstevel@tonic-gate	* stage2/asm.S (force_lba): New variable.
50157c478bd9Sstevel@tonic-gate	* stage2/bios.c (get_diskinfo): Don't use #ifdef for
50167c478bd9Sstevel@tonic-gate	CHECK_LBA_SUPPORT_BITMAP. Instead, check if FORCE_LBA is
50177c478bd9Sstevel@tonic-gate	non-zero. If so, don't check the bit 0 of DRP.FLAG.
50187c478bd9Sstevel@tonic-gate	* stage2/builtins.c (install_func): Check if a new option
50197c478bd9Sstevel@tonic-gate	`--force-lba' is specified. If specified, set IS_FORCE_LBA to 1
50207c478bd9Sstevel@tonic-gate	and set ARG to a value returned by skip_to. Otherwise,
50217c478bd9Sstevel@tonic-gate	IS_FORCE_LBA is zero.
50227c478bd9Sstevel@tonic-gate	Set the "force LBA" flag in STAGE1_BUFFER (the offset is
50237c478bd9Sstevel@tonic-gate	STAGE1_FORCE_LBA) to IS_FORCE_LBA.
50247c478bd9Sstevel@tonic-gate	Likewise, set the "force LBA" flag in STAGE2_SECOND_BUFFER
50257c478bd9Sstevel@tonic-gate	(the offset is STAGE2_FORCE_LBA) to IS_FORCE_LBA.
50267c478bd9Sstevel@tonic-gate	If IS_STAGE1_5 is true, then modify the Stage2, regardless of
50277c478bd9Sstevel@tonic-gate	the presence of the option REAL_CONFIG_FILE. Set the "force LBA"
50287c478bd9Sstevel@tonic-gate	flag in SCRATCHADDR (the offset is STAGE2_FORCE_LBA) to
50297c478bd9Sstevel@tonic-gate	IS_FORCE_LBA.
50307c478bd9Sstevel@tonic-gate	(builtin_install): Added description about `--force-lba' into
50317c478bd9Sstevel@tonic-gate	the docs.
50327c478bd9Sstevel@tonic-gate	(setup_func): Check if `--force-lba' is specified in ARG. If
50337c478bd9Sstevel@tonic-gate	specified, set IS_FORCE_LBA to 1 and set ARG to a value returned
50347c478bd9Sstevel@tonic-gate	by skip_to. Otherwise, IS_FORCE_LBA is zero.
50357c478bd9Sstevel@tonic-gate	If IS_FORCE_LBA is true, prepend "--force-lba " to CMD_ARG.
50367c478bd9Sstevel@tonic-gate	(builtin_setup): Added descriptions about `--force-lba' into the
50377c478bd9Sstevel@tonic-gate	docs.
50387c478bd9Sstevel@tonic-gate	* stage2/shared.h (STAGE2_FORCE_LBA): New macro.
50397c478bd9Sstevel@tonic-gate	(STAGE2_VER_STR_OFFS): Set to 0xe.
50407c478bd9Sstevel@tonic-gate	(force_lba): Declared.
50417c478bd9Sstevel@tonic-gate	* util/grub-install.in (force_lba): New variable. Set to an
50427c478bd9Sstevel@tonic-gate	empty sting by default.
50437c478bd9Sstevel@tonic-gate	(usage): Added a description about `--force-lba'.
50447c478bd9Sstevel@tonic-gate	(--force-lba): Checked in the option handling code. If
50457c478bd9Sstevel@tonic-gate	specified, set FORCE_LBA to "--force-lba".
50467c478bd9Sstevel@tonic-gate	Run the command "setup" with $force_lba added before
50477c478bd9Sstevel@tonic-gate	$install_drive.
50487c478bd9Sstevel@tonic-gate	* configure.in (--disable-lba-support-bitmap): Removed.
50497c478bd9Sstevel@tonic-gate
50507c478bd9Sstevel@tonic-gate2000-04-15  OKUJI Yoshinori  <okuji@gnu.org>
50517c478bd9Sstevel@tonic-gate
50527c478bd9Sstevel@tonic-gate	* util/grub-install.in (root_device): Append `/' to ${rootdir},
50537c478bd9Sstevel@tonic-gate	since ROOTDIR may be empty. Reported by Satoshi Nagayasu
50547c478bd9Sstevel@tonic-gate	<snaga@oak.forus.or.jp>.
50557c478bd9Sstevel@tonic-gate
50567c478bd9Sstevel@tonic-gate2000-04-15  Jochen Hoenicke  <jochen@gnu.org>
50577c478bd9Sstevel@tonic-gate
50587c478bd9Sstevel@tonic-gate	* configure.in: Added --disable-reiserfs option.
50597c478bd9Sstevel@tonic-gate	* stage2/Makefile.am (libgrub_a_SOURCES): Added fsys_reiserfs.c.
50607c478bd9Sstevel@tonic-gate	(libgrub_a_CFLAGS): Added -DFSYS_REISERFS=1.
50617c478bd9Sstevel@tonic-gate	(pkgdata_DATA): Added reiserfs_stage1_5.
50627c478bd9Sstevel@tonic-gate	(noinst_PROGRAMS): Added reiserfs_stage1_5.exec.
50637c478bd9Sstevel@tonic-gate	(pre_stage2_exec_SOURCES): Added fsys_reiserfs.c.
50647c478bd9Sstevel@tonic-gate	(reiserfs_stage1_5_exec_SOURCES): New variable.
50657c478bd9Sstevel@tonic-gate	(reiserfs_stage1_5_exec_CFLAGS): Likewise.
50667c478bd9Sstevel@tonic-gate	(reiserfs_stage1_5_exec_LDFLAGS): Likewise.
50677c478bd9Sstevel@tonic-gate	* stage2/disk_io.c (fsys_table): Added reiserfs entry.
50687c478bd9Sstevel@tonic-gate	* stage2/filesys.h (FSYS_REISERFS_NUM): New macro.
50697c478bd9Sstevel@tonic-gate	[FSYS_REISERFS] (reiserfs_mount, reiserfs_read, reiserfs_dir,
50707c478bd9Sstevel@tonic-gate 	reiserfs_embed): Declare external function from fsys_reiserfs.c.
50717c478bd9Sstevel@tonic-gate	[!NUM_FSYS] (NUM_FSYS): Added FSYS_REISERFS_NUM.
50727c478bd9Sstevel@tonic-gate	* stage2/builtins.c (setup_func): Added reiserfs to
50737c478bd9Sstevel@tonic-gate	STAGE1_5_MAP.
50747c478bd9Sstevel@tonic-gate	* stage2/shared.h (STAGE2_ID_REISERFS_STAGE1_5): New macro.
50757c478bd9Sstevel@tonic-gate	[STAGE1_5] [FSYS_REISERFS] (STAGE2_ID): Defined to
50767c478bd9Sstevel@tonic-gate 	STAGE2_ID_REISERFS_STAGE1_5.
50777c478bd9Sstevel@tonic-gate	* stage2/fsys_reiserfs.c: New file.
50787c478bd9Sstevel@tonic-gate
50797c478bd9Sstevel@tonic-gate	* stage2/builtins.c (embed_func): Call open_device instead of
50807c478bd9Sstevel@tonic-gate	open_partition.
50817c478bd9Sstevel@tonic-gate	Don't check if the filesystem is FFS. Instead, check if
50827c478bd9Sstevel@tonic-gate	FSYS_TABLE[FSYS_TYPE].EMBED_FUNC is NULL and, if not, call it.
50837c478bd9Sstevel@tonic-gate	(find_func): When CURRENT_SLICE is not a BSD slice, check if the
50847c478bd9Sstevel@tonic-gate	file can be opened, only if open_device succeeds.
50857c478bd9Sstevel@tonic-gate	* stage2/filesys.h (fsys_table): New entry embed_func.
50867c478bd9Sstevel@tonic-gate	(ffs_embed): Declared.
50877c478bd9Sstevel@tonic-gate	* stage2/disk_io.c (fsys_table): Fill embed_func entries. The
50887c478bd9Sstevel@tonic-gate	entry for FFS is ffs_embed and the others are NULLs.
50897c478bd9Sstevel@tonic-gate	* stage2/fsys_ffs.c (ffs_embed): New function.
50907c478bd9Sstevel@tonic-gate
50917c478bd9Sstevel@tonic-gate	* stage2/shared.h (SECTOR_SHIFT): New constant with
50927c478bd9Sstevel@tonic-gate	(1 << SECTOR_SHIFT) == SECTOR_SIZE.
50937c478bd9Sstevel@tonic-gate	* stage2/shared.h [!NO_BLOCK_FILES] (block_files): No longer
50947c478bd9Sstevel@tonic-gate	extern.
50957c478bd9Sstevel@tonic-gate	* stage2/disk_io.c [!NO_BLOCK_FILES] (block_files): Likewise.
50967c478bd9Sstevel@tonic-gate	(rawread, devread): Use SECTOR_BITS.
50977c478bd9Sstevel@tonic-gate	(rawread): Fixed calculation of BUFADDR if an error occured. Set
50987c478bd9Sstevel@tonic-gate	it to BUFFERADDR + BYTE_OFFSET instead of BUFFERSEG +
50997c478bd9Sstevel@tonic-gate	BYTE_OFFSET.
51007c478bd9Sstevel@tonic-gate	(grub_close) [!NO_BLOCK_FILES]: If BLOCK_FILE is non-zero,
51017c478bd9Sstevel@tonic-gate	return immediately.
51027c478bd9Sstevel@tonic-gate	(grub_close): Don't check if FSYS_TYPE is NUM_FSYS.
51037c478bd9Sstevel@tonic-gate	* stage2/fsys_fat.c (log2): New inline function.
51047c478bd9Sstevel@tonic-gate	(fat_mount): Use log2 instead of calculating the size/bit by a
51057c478bd9Sstevel@tonic-gate	loop.
51067c478bd9Sstevel@tonic-gate
51077c478bd9Sstevel@tonic-gate2000-04-12  OKUJI Yoshinori  <okuji@gnu.org>
51087c478bd9Sstevel@tonic-gate
51097c478bd9Sstevel@tonic-gate	* configure.in: Use AC_PATH_PROG instead of AC_PATH_TOOL,
51107c478bd9Sstevel@tonic-gate	because I don't want to use the CVS version. Now you can use
51117c478bd9Sstevel@tonic-gate	autoconf 2.13.
51127c478bd9Sstevel@tonic-gate
51137c478bd9Sstevel@tonic-gate2000-04-10  OKUJI Yoshinori  <okuji@gnu.org>
51147c478bd9Sstevel@tonic-gate
51157c478bd9Sstevel@tonic-gate	* stage2/stage2.c (run_menu): In the case where C is `o', check
51167c478bd9Sstevel@tonic-gate	if ENTRYNO is less than 11. If not, increase FIRST_ENTRY instead
51177c478bd9Sstevel@tonic-gate	of ENTRYNO. Reported by Pixel <pixel@mandrakesoft.com>.
51187c478bd9Sstevel@tonic-gate
51197c478bd9Sstevel@tonic-gate2000-04-09  OKUJI Yoshinori  <okuji@gnu.org>
51207c478bd9Sstevel@tonic-gate
51217c478bd9Sstevel@tonic-gate	* stage1/depcomp: Removed, because it makes `make dist'
51227c478bd9Sstevel@tonic-gate	unworkable.
51237c478bd9Sstevel@tonic-gate
51247c478bd9Sstevel@tonic-gate	For developers: Don't run automake with --add-missing. Instead,
51257c478bd9Sstevel@tonic-gate	you should specify --force-missing. If you really want to add a
51267c478bd9Sstevel@tonic-gate	script from automake, copy it at hand. *sigh*
51277c478bd9Sstevel@tonic-gate
51287c478bd9Sstevel@tonic-gate2000-04-05  OKUJI Yoshinori  <okuji@gnu.org>
51297c478bd9Sstevel@tonic-gate
51307c478bd9Sstevel@tonic-gate	* stage2/builtins.c (kernel_func): Added missing ``size''
51317c478bd9Sstevel@tonic-gate	arguments into `grub_memcmp's. Reported by Christoph Plattner
51327c478bd9Sstevel@tonic-gate	<christoph.plattner@dot.at>.
51337c478bd9Sstevel@tonic-gate
51347c478bd9Sstevel@tonic-gate	From Torsten Duwe <duwe@caldera.de>:
51357c478bd9Sstevel@tonic-gate	* stage2/boot.c (load_initrd): Mask the address with 0x3FFFFFFF
51367c478bd9Sstevel@tonic-gate	instead of 0xFFFFFFFF to place the initrd below 1GB.
51377c478bd9Sstevel@tonic-gate	(load_image): In Linux boot, add the option "mem=" only if more
51387c478bd9Sstevel@tonic-gate	than 64MB are present.
51397c478bd9Sstevel@tonic-gate	* grub/asmstub.c [__linux__]: Include <linux/cdrom.h> for
51407c478bd9Sstevel@tonic-gate	CDROM_GET_CAPABILITY.
51417c478bd9Sstevel@tonic-gate	[__FreeBSD__ || __NetBSD__ || __OpenBSD__]: Include <sys/cdio.h>
51427c478bd9Sstevel@tonic-gate	for CDIOCCLRDEBUG.
51437c478bd9Sstevel@tonic-gate	(check_device) [__linux__] [CDROM_GET_CAPABILITY]: If ioctl for
51447c478bd9Sstevel@tonic-gate	CDROM_GET_CAPAIBILITY succeeds, return zero.
51457c478bd9Sstevel@tonic-gate	[__FreeBSD__ || __NetBSD__ || __OpenBSD__] [CDIOCCLRDEBUG]: If
51467c478bd9Sstevel@tonic-gate	ioctl for CDIOCCLRDEBUG succeeds, return zero.
51477c478bd9Sstevel@tonic-gate
51487c478bd9Sstevel@tonic-gate	* stage2/boot.c (load_initrd): Subtract 0x1000 (one page size)
51497c478bd9Sstevel@tonic-gate	from MOVETO, to avoid a Linux 2.3.xx's bug.
51507c478bd9Sstevel@tonic-gate
51517c478bd9Sstevel@tonic-gate2000-04-03  OKUJI Yoshinori  <okuji@gnu.org>
51527c478bd9Sstevel@tonic-gate
51537c478bd9Sstevel@tonic-gate	Add a dirty hack into the kernel loader so that the user can
51547c478bd9Sstevel@tonic-gate	force GRUB to load NetBSD ELF kernels. The support code is
51557c478bd9Sstevel@tonic-gate	mostly stolen from a patch by Pavel Roskin.
51567c478bd9Sstevel@tonic-gate
51577c478bd9Sstevel@tonic-gate	* stage2/boot.c (load_image): Added an optional argument
51587c478bd9Sstevel@tonic-gate	SUGGESTED_TYPE.
51597c478bd9Sstevel@tonic-gate	If BUFFER is a bootable ELF image and SUGGESTED_TYPE is
51607c478bd9Sstevel@tonic-gate	KERNEL_TYPE_NETBSD, then load it as an ELF image and set STR2 to
51617c478bd9Sstevel@tonic-gate	"NetBSD" and TYPE to SUGGESTED_TYPE.
51627c478bd9Sstevel@tonic-gate	If the image is a Linux kernel and SUGGESTED_TYPE is not
51637c478bd9Sstevel@tonic-gate	KERNEL_TYPE_NONE, make sure that SUGGESTED_TYPE matches up to
51647c478bd9Sstevel@tonic-gate	the Linux kernel type.
51657c478bd9Sstevel@tonic-gate	If TYPE is KERNEL_TYPE_NETBSD, set MEMADDR to
51667c478bd9Sstevel@tonic-gate	RAW_ADDR (phdr->paddr & 0xFFFFFF) like FreeBSD.
51677c478bd9Sstevel@tonic-gate	If SUGGESTED_TYPE is not KERNEL_TYPE_NONE, make sure that
51687c478bd9Sstevel@tonic-gate	SUGGESTED_TYPE is equal to TYPE.
51697c478bd9Sstevel@tonic-gate	(bsd_boot): If TYPE is not KERNEL_TYPE_FREEBSD (i.e. NetBSD or
51707c478bd9Sstevel@tonic-gate	OpenBSD) and the bit MB_INFO_AOUT_SYMS is set, set END_MARK to
51717c478bd9Sstevel@tonic-gate	MBI.SYMS.A.ADDR + 4 + MBI.SYMS.A.TABSIZE + MBI.SYMS.A.STRSIZE.
51727c478bd9Sstevel@tonic-gate	If the bit is clear, set END_MARK to 0.
51737c478bd9Sstevel@tonic-gate	Pass END_MARK to *ENTRY_ADDR instead of directly calculating the
51747c478bd9Sstevel@tonic-gate	end of symbols.
51757c478bd9Sstevel@tonic-gate	* stage2/shared.h (load_image): Added the argument
51767c478bd9Sstevel@tonic-gate	SUGGESTED_TYPE to the prototype.
51777c478bd9Sstevel@tonic-gate	* stage2/builtins.c (kernel_func): Added a new option,
51787c478bd9Sstevel@tonic-gate	`--type=TYPE'. Check if ARG is started with "--type=".
51797c478bd9Sstevel@tonic-gate	If so, set SUGGESTED_TYPE to KERNEL_TYPE_NETBSD,
51807c478bd9Sstevel@tonic-gate	KERNEL_TYPE_FREEBSD, KERNEL_TYPE_NETBSD, KERNEL_TYPE_LINUX,
51817c478bd9Sstevel@tonic-gate	KERNEL_TYPE_BIG_LINUX, KERNEL_TYPE_MULTIBOOT if ARG is "netbsd",
51827c478bd9Sstevel@tonic-gate	"freebsd", "openbsd", "linux", "biglinux", "multiboot",
51837c478bd9Sstevel@tonic-gate	respectively. Otherwise, set ERRNUM to ERR_BAD_ARGUMENT and
51847c478bd9Sstevel@tonic-gate	return 1. Set KERNEL_ARG to a string after the option.
51857c478bd9Sstevel@tonic-gate	(builtin_kernel): Added a description about the new option.
51867c478bd9Sstevel@tonic-gate
51877c478bd9Sstevel@tonic-gate2000-04-03  OKUJI Yoshinori  <okuji@gnu.org>
51887c478bd9Sstevel@tonic-gate
51897c478bd9Sstevel@tonic-gate	* stage2/stage2.c (run_menu) [GRUB_UTIL]: Removed a nested
51907c478bd9Sstevel@tonic-gate	"#ifdef GRUB_UTIL" ... "#endif".
51917c478bd9Sstevel@tonic-gate	* stage2/builtins.c (unhide_func): Don't modify SAVED_DRIVE or
51927c478bd9Sstevel@tonic-gate	SAVED_PARTITION.
51937c478bd9Sstevel@tonic-gate	(hide_func): Likewise.
51947c478bd9Sstevel@tonic-gate	* stage2/disk_io.c (set_partition_hidden_flag): Use
51957c478bd9Sstevel@tonic-gate	CURRENT_DRIVE and CURRENT_PARTITION instead of SAVED_DRIVE and
51967c478bd9Sstevel@tonic-gate	SAVED_PARTITION. Check if bit 7 in CURRENT_DRIVE is non-zero
51977c478bd9Sstevel@tonic-gate	instead of if CURRENT_DRIVE is non-zero.
51987c478bd9Sstevel@tonic-gate
51997c478bd9Sstevel@tonic-gate	* grub/asmstub.c (init_device_map): Change the message
52007c478bd9Sstevel@tonic-gate	"Probe devices..." to "Probing devices...". Suggested by Neal H
52017c478bd9Sstevel@tonic-gate	Walfield.
52027c478bd9Sstevel@tonic-gate
52037c478bd9Sstevel@tonic-gate	* stage2/pc_slice.h (PC_SLICE_TYPE_HIDDEN_FLAG): Move the
52047c478bd9Sstevel@tonic-gate	definition before the PC partition type definitions.
52057c478bd9Sstevel@tonic-gate	(IS_PC_SLICE_TYPE_FAT): Clear the hidden flag in TYPE before
52067c478bd9Sstevel@tonic-gate	checking if TYPE is either of the FAT partition types. Reported
52077c478bd9Sstevel@tonic-gate	by Thomas Schweikle <tschweikle@fiducia.de>.
52087c478bd9Sstevel@tonic-gate
52097c478bd9Sstevel@tonic-gate2000-04-02  OKUJI Yoshinori  <okuji@gnu.org>
52107c478bd9Sstevel@tonic-gate
52117c478bd9Sstevel@tonic-gate	* stage2/builtins.c (setup_func): Don't read a stage 1.5 to get
52127c478bd9Sstevel@tonic-gate	the size. Use FILEMAX instead.
52137c478bd9Sstevel@tonic-gate	If embed_func fails (i.e. ERRNUM is non-zero), goto fail.
52147c478bd9Sstevel@tonic-gate
52157c478bd9Sstevel@tonic-gate2000-04-02  OKUJI Yoshinori  <okuji@gnu.org>
52167c478bd9Sstevel@tonic-gate
52177c478bd9Sstevel@tonic-gate	Suggested by Neal H Walfield <neal@walfield.org>:
52187c478bd9Sstevel@tonic-gate	* stage2/common.c (init_bios_info): Removed a nested
52197c478bd9Sstevel@tonic-gate	"#ifndef STAGE1_5" ... "#endif".
52207c478bd9Sstevel@tonic-gate	* util/grub-install.in: Quote most of the references to
52217c478bd9Sstevel@tonic-gate	shell variables by double quotation marks.
52227c478bd9Sstevel@tonic-gate	(usage): Added a description about the argument.
52237c478bd9Sstevel@tonic-gate	* stage2/builtins.c (setup_func): Change each of the messages
52247c478bd9Sstevel@tonic-gate	when running embed_func and install_func. "Run" -> "Running".
52257c478bd9Sstevel@tonic-gate	If install_func succeeds, print a message ("Done.").
52267c478bd9Sstevel@tonic-gate
52277c478bd9Sstevel@tonic-gate	From Frank Mehnert <fm3@os.inf.tu-dresden.de>:
52287c478bd9Sstevel@tonic-gate	* stage2/char_io.c (convert_to_ascii) [!STAGE1_5]: Accept 'X'
52297c478bd9Sstevel@tonic-gate	and 'b' as well. If C is 'X' or 'b', then set MULT to 16.
52307c478bd9Sstevel@tonic-gate	(grub_printf): Set a new variable MASK to 0xFFFFFFFF by default.
52317c478bd9Sstevel@tonic-gate	Mask *DATAPTR with MASK when calling convert_to_ascii.
52327c478bd9Sstevel@tonic-gate	(grub_printf) [!STAGE1_5]: Added 'b' and 'X'. If C is 'b', set
52337c478bd9Sstevel@tonic-gate	MASK to 0xFF and fall through to the case 'u'. 'X' is the same
52347c478bd9Sstevel@tonic-gate	as 'x'.
52357c478bd9Sstevel@tonic-gate
52367c478bd9Sstevel@tonic-gate	From Josip Rodin <joy@cibalia.gkvk.hr>:
52377c478bd9Sstevel@tonic-gate	* grub.texi: Several awkward English sentences are fixed.
52387c478bd9Sstevel@tonic-gate	* tutorial.texi: Likewise.
52397c478bd9Sstevel@tonic-gate	* user-ref.texi: Likewise.
52407c478bd9Sstevel@tonic-gate	* appendices.texi: Likewise.
52417c478bd9Sstevel@tonic-gate
52427c478bd9Sstevel@tonic-gate2000-03-27  OKUJI Yoshinori  <okuji@gnu.org>
52437c478bd9Sstevel@tonic-gate
52447c478bd9Sstevel@tonic-gate	* stage1/depcomp: New file. Automake forces to install it. This
52457c478bd9Sstevel@tonic-gate	is a known bug, so I will remove this when Tom fixes it.
52467c478bd9Sstevel@tonic-gate	* configure.in (AM_INIT_AUTOMAKE): Don't get the package name
52477c478bd9Sstevel@tonic-gate	and the version from debian/changelog. This is a workaround.
52487c478bd9Sstevel@tonic-gate
52497c478bd9Sstevel@tonic-gate2000-03-20  OKUJI Yoshinori  <okuji@gnu.org>
52507c478bd9Sstevel@tonic-gate
52517c478bd9Sstevel@tonic-gate	* stage2/Makefile.am (nodist_pkgdata_DATA): Renamed to ...
52527c478bd9Sstevel@tonic-gate	(pkgdata_DATA): ... this. DATA is not distributed by default.
52537c478bd9Sstevel@tonic-gate	(CLEANFILES): Delete the first one. I don't know why this
52547c478bd9Sstevel@tonic-gate	variable was duplicated.
52557c478bd9Sstevel@tonic-gate	Set to $(pkgdata_DATA) instead of $(nodist_pkgdata_DATA).
52567c478bd9Sstevel@tonic-gate	(start_exec_DEPENDENCIES): Removed. This doesn't make sense.
52577c478bd9Sstevel@tonic-gate	(start_exec-start.o): New rule.
52587c478bd9Sstevel@tonic-gate	* depcomp: New file. Copied from automake.
52597c478bd9Sstevel@tonic-gate	* missing: Updated from automake.
52607c478bd9Sstevel@tonic-gate
52617c478bd9Sstevel@tonic-gate2000-03-15  OKUJI Yoshinori  <okuji@gnu.org>
52627c478bd9Sstevel@tonic-gate
52637c478bd9Sstevel@tonic-gate	* netboot/Makefile.am (EXTRA_libdrivers_a_SOURCES): 3c89x0.h ->
52647c478bd9Sstevel@tonic-gate	cs89x0.h. Just a typo.
52657c478bd9Sstevel@tonic-gate
52667c478bd9Sstevel@tonic-gate2000-03-10  Gordon Matzigkeit  <gord@fig.org>
52677c478bd9Sstevel@tonic-gate
52687c478bd9Sstevel@tonic-gate	* debian/rules: Strip mbchk.
52697c478bd9Sstevel@tonic-gate
52707c478bd9Sstevel@tonic-gate	* debian/postinst: Fix up /usr/doc symlink creation.
52717c478bd9Sstevel@tonic-gate
52727c478bd9Sstevel@tonic-gate2000-03-01  OKUJI Yoshinori  <okuji@gnu.org>
52737c478bd9Sstevel@tonic-gate
52747c478bd9Sstevel@tonic-gate	* netboot/fsys_tftp.c (tftp_dir): Add BUF_READ into FILEMAX
52757c478bd9Sstevel@tonic-gate	after BUF_EOF becomes non-zero. Reported by Per Lundberg.
52767c478bd9Sstevel@tonic-gate
52777c478bd9Sstevel@tonic-gate2000-03-01  OKUJI Yoshinori  <okuji@gnu.org>
52787c478bd9Sstevel@tonic-gate
52797c478bd9Sstevel@tonic-gate	* stage2/builtins.c (color_func): Return 1 if safe_parse_maxint
52807c478bd9Sstevel@tonic-gate	returns zero instead of non-zero. Reported by Magnus Holmberg
52817c478bd9Sstevel@tonic-gate	<pucko@lysator.liu.se>.
52827c478bd9Sstevel@tonic-gate
52837c478bd9Sstevel@tonic-gate2000-02-29  OKUJI Yoshinori  <okuji@gnu.org>
52847c478bd9Sstevel@tonic-gate
52857c478bd9Sstevel@tonic-gate	* grub/asmstub.c [__linux__]: Include <linux/kdev_t.h> for the
52867c478bd9Sstevel@tonic-gate	macro MAJOR. From Kalle Olavi Niemitalo <tosi@ees2.oulu.fi>.
52877c478bd9Sstevel@tonic-gate
52887c478bd9Sstevel@tonic-gate2000-02-27  OKUJI Yoshinori  <okuji@gnu.org>
52897c478bd9Sstevel@tonic-gate
52907c478bd9Sstevel@tonic-gate	* docs/tutorial.texi (Network): New chapter.
52917c478bd9Sstevel@tonic-gate
52927c478bd9Sstevel@tonic-gate2000-02-26  OKUJI Yoshinori  <okuji@gnu.org>
52937c478bd9Sstevel@tonic-gate
52947c478bd9Sstevel@tonic-gate	* docs/help2man: Upgraded to 1.020.
52957c478bd9Sstevel@tonic-gate	* docs/grub.8: Regenerated.
52967c478bd9Sstevel@tonic-gate	* docs/grub-install.8: Likewise.
52977c478bd9Sstevel@tonic-gate	* docs/mbchk.1: Likewise.
52987c478bd9Sstevel@tonic-gate
52997c478bd9Sstevel@tonic-gate	* docs/tutorial.texi (Boot): Rewritten heavily. Added the notes
53007c478bd9Sstevel@tonic-gate	on FreeBSD, NetBSD, OpenBSD, DOS/Windows and SCO UnixWare.
53017c478bd9Sstevel@tonic-gate	* docs/menu.lst: Load "/boot/loader" instead of "/kernel" in the
53027c478bd9Sstevel@tonic-gate	FreeBSD entry. This is consistent with the documentation.
53037c478bd9Sstevel@tonic-gate
53047c478bd9Sstevel@tonic-gate2000-02-25  OKUJI Yoshinori  <okuji@gnu.org>
53057c478bd9Sstevel@tonic-gate
53067c478bd9Sstevel@tonic-gate	* netboot/fsys_tftp.c (tftp_read): Set BUF_READ to zero if
53077c478bd9Sstevel@tonic-gate	FILEPOS is less than SAVED_FILEPOS, before calling buf_fill.
53087c478bd9Sstevel@tonic-gate	Don't discard all of the copied data so that we can move FILEPOS
53097c478bd9Sstevel@tonic-gate	backwards cheaply. Now SAVED_FILEPOS indicates the file position
53107c478bd9Sstevel@tonic-gate	corresponding to the first byte of BUF. If (FILEPOS -
53117c478bd9Sstevel@tonic-gate	SAVED_FILEPOS) is greater than (FSYS_BUFLEN / 2), move the data
53127c478bd9Sstevel@tonic-gate	forwards and add (FSYS_BUFLEN / 2) into SAVED_FILEPOS and
53137c478bd9Sstevel@tonic-gate	subtract the same value from BUF_READ.
53147c478bd9Sstevel@tonic-gate
53157c478bd9Sstevel@tonic-gate2000-02-24  OKUJI Yoshinori  <okuji@gnu.org>
53167c478bd9Sstevel@tonic-gate
53177c478bd9Sstevel@tonic-gate	* stage2/disk_io.c [!STAGE1_5] (print_fsys_type): Mask
53187c478bd9Sstevel@tonic-gate	CURRENT_SLICE with 0xFF when printing the partition type.
53197c478bd9Sstevel@tonic-gate
53207c478bd9Sstevel@tonic-gate	* grub/asmstub.c [__linux__]: Include <linux/major.h> for the
53217c478bd9Sstevel@tonic-gate	definition FLOPPY_MAJOR.
53227c478bd9Sstevel@tonic-gate	(check_device) [__linux__]: Skip the HDIO_GETGEO ioctl if the
53237c478bd9Sstevel@tonic-gate	major number of ST.ST_RDEV is FLOPPY_MAJOR.
53247c478bd9Sstevel@tonic-gate
53257c478bd9Sstevel@tonic-gate2000-02-21  OKUJI Yoshinori  <okuji@gnu.org>
53267c478bd9Sstevel@tonic-gate
53277c478bd9Sstevel@tonic-gate	* stage2/disk_io.c (check_BSD_parts) [!STAGE1_5]: Use the term
53287c478bd9Sstevel@tonic-gate	"BSD sub-partition" instead of "BSD slice" for consistency.
53297c478bd9Sstevel@tonic-gate
53307c478bd9Sstevel@tonic-gate	* stage2/builtins.c (boot_func): Copy the partition table to
53317c478bd9Sstevel@tonic-gate	BOOT_PART_TABLE instead of (BOOTSEC_LOCATION +
53327c478bd9Sstevel@tonic-gate	BOOTSEC_PART_OFFSET). Don't use grub_memmove, but copy it
53337c478bd9Sstevel@tonic-gate	directly, since memcheck is too strict.
53347c478bd9Sstevel@tonic-gate	* stage2/disk_io.c (real_open_partition) [!STAGE1_5]: Set
53357c478bd9Sstevel@tonic-gate	CUR_PART_ADDR to (BOOT_PART_TABLE + (i << 4)).
53367c478bd9Sstevel@tonic-gate	* stage2/shared.h (BOOT_PART_TABLE): New macro.
53377c478bd9Sstevel@tonic-gate	(chain_stage1): Change the types of all the arguments to
53387c478bd9Sstevel@tonic-gate	unsigned long.
53397c478bd9Sstevel@tonic-gate	(chain_stage2): Likewise.
53407c478bd9Sstevel@tonic-gate	* grub/asmstub.c (chain_stage1): Adjusted to the prototype.
53417c478bd9Sstevel@tonic-gate	(chain_stage2): Likewise.
53427c478bd9Sstevel@tonic-gate
53437c478bd9Sstevel@tonic-gate2000-02-21  OKUJI Yoshinori  <okuji@gnu.org>
53447c478bd9Sstevel@tonic-gate
53457c478bd9Sstevel@tonic-gate	* stage2/disk_io.c (check_BSD_parts) [!STAGE1_5]: If the BSD
53467c478bd9Sstevel@tonic-gate	label is invalid, print a message with the partition type in the
53477c478bd9Sstevel@tonic-gate	case where FLAGS is non-zero and DO_COMPLETION is zero.
53487c478bd9Sstevel@tonic-gate
53497c478bd9Sstevel@tonic-gate2000-02-20  OKUJI Yoshinori  <okuji@gnu.org>
53507c478bd9Sstevel@tonic-gate
53517c478bd9Sstevel@tonic-gate	* docs/user-ref.texi (Command-line-specific commands): Added a
53527c478bd9Sstevel@tonic-gate	description about "cmp".
53537c478bd9Sstevel@tonic-gate	* docs/appendices.texi (Reporting bugs): Rewritten.
53547c478bd9Sstevel@tonic-gate
53557c478bd9Sstevel@tonic-gate2000-02-20  OKUJI Yoshinori  <okuji@gnu.org>
53567c478bd9Sstevel@tonic-gate
53577c478bd9Sstevel@tonic-gate	Update the netboot code to Etherboot 4.4.3.
53587c478bd9Sstevel@tonic-gate
53597c478bd9Sstevel@tonic-gate	* netboot/netboot_config.h: Copied from etherboot-4.4.3.
53607c478bd9Sstevel@tonic-gate	* netboot/cs89x0.h: Likewise.
53617c478bd9Sstevel@tonic-gate	* netboot/cs89x0.c: Likewise.
53627c478bd9Sstevel@tonic-gate	* netboot/i82586.c: Likewise.
53637c478bd9Sstevel@tonic-gate	* netboot/lance.c: Likewise.
53647c478bd9Sstevel@tonic-gate	* netboot/linux-asm-string.h: Likewise.
53657c478bd9Sstevel@tonic-gate	* netboot/nic.h: Likewise.
53667c478bd9Sstevel@tonic-gate	* netboot/ntulip.c: Likewise.
53677c478bd9Sstevel@tonic-gate	* netboot/osdep.h: Likewise.
53687c478bd9Sstevel@tonic-gate	* netboot/pci.h: Likewise.
53697c478bd9Sstevel@tonic-gate	* netboot/pci.c: Likewise.
53707c478bd9Sstevel@tonic-gate	* netboot/rtl8139.c: Likewise.
53717c478bd9Sstevel@tonic-gate	* netboot/tiara.c: Likewise.
53727c478bd9Sstevel@tonic-gate
53737c478bd9Sstevel@tonic-gate2000-02-19  OKUJI Yoshinori  <okuji@gnu.org>
53747c478bd9Sstevel@tonic-gate
53757c478bd9Sstevel@tonic-gate	* stage2/builtins.c (cmp_func): New function.
53767c478bd9Sstevel@tonic-gate	(builtin_cmp): New variable.
53777c478bd9Sstevel@tonic-gate	(builtin_table): Added a pointer to BUILTIN_CMP.
53787c478bd9Sstevel@tonic-gate
53797c478bd9Sstevel@tonic-gate	* stage2/fsys_fat.c (fat_mount): Check if BPB.SECTS_PER_CLUST is
53807c478bd9Sstevel@tonic-gate	zero after reading the BPB to avoid zero division.
53817c478bd9Sstevel@tonic-gate
53827c478bd9Sstevel@tonic-gate2000-02-18  OKUJI Yoshinori  <okuji@gnu.org>
53837c478bd9Sstevel@tonic-gate
53847c478bd9Sstevel@tonic-gate	* stage2/disk_io.c [!STAGE1_5] (make_saved_active): Make sure
53857c478bd9Sstevel@tonic-gate	that SAVED_PARTITION is not an extended partition.
53867c478bd9Sstevel@tonic-gate	If SAVED_DRIVE is not a hard disk drive, set ERRNUM to
53877c478bd9Sstevel@tonic-gate	ERR_DEV_VALUES and return zero.
53887c478bd9Sstevel@tonic-gate
53897c478bd9Sstevel@tonic-gate	* netboot/3c59x.c: Removed.
53907c478bd9Sstevel@tonic-gate	* netboot/Makefile.am (EXTRA_libdrivers_a_SOURCES): Deleted
53917c478bd9Sstevel@tonic-gate	3c59x.c.
53927c478bd9Sstevel@tonic-gate	(3c59x_drivers): Deleted.
53937c478bd9Sstevel@tonic-gate	(3c59x_o_CFLAGS): Likewise.
53947c478bd9Sstevel@tonic-gate	* configure.in (--enable-3c59x): Likewise.
53957c478bd9Sstevel@tonic-gate
53967c478bd9Sstevel@tonic-gate2000-02-17  OKUJI Yoshinori  <okuji@gnu.org>
53977c478bd9Sstevel@tonic-gate
53987c478bd9Sstevel@tonic-gate	* configure.in (--enable-3c90x): Add -DINCLUDE_3C90X=1 instead
53997c478bd9Sstevel@tonic-gate	of -DINCLUDE_3C90x=1. This was just a typo. Reported by Per
54007c478bd9Sstevel@tonic-gate	Lundberg.
54017c478bd9Sstevel@tonic-gate
54027c478bd9Sstevel@tonic-gate2000-02-17  Jochen Hoenicke  <jochen@gnu.org>
54037c478bd9Sstevel@tonic-gate
54047c478bd9Sstevel@tonic-gate	* stage2/fsys_fat.c (fat_read): Forgot to increase BUF.
54057c478bd9Sstevel@tonic-gate	(fat_dir): Use fat_read instead of grub_read; this makes
54067c478bd9Sstevel@tonic-gate	setting the FSMAX unnecessary.
54077c478bd9Sstevel@tonic-gate	(fat_mount): FSMAX is no longer set.
54087c478bd9Sstevel@tonic-gate
54097c478bd9Sstevel@tonic-gate2000-02-16  Jochen Hoenicke  <jochen@gnu.org>
54107c478bd9Sstevel@tonic-gate
54117c478bd9Sstevel@tonic-gate	* stage2/char_io.c (grub_isspace): Make carriage return a white
54127c478bd9Sstevel@tonic-gate	space.
54137c478bd9Sstevel@tonic-gate
54147c478bd9Sstevel@tonic-gate	* stage2/fsys_fat.c (fat_dir): Long filename support.
54157c478bd9Sstevel@tonic-gate	(NAME_BUF): New macro.
54167c478bd9Sstevel@tonic-gate	* stage2/fat.h (FAT_LONGDIR_ID, FAT_LONGDIR_ALIASCHECKSUM,
54177c478bd9Sstevel@tonic-gate	FAT_ATTRIB_LONGNAME): New Macros.
54187c478bd9Sstevel@tonic-gate
54197c478bd9Sstevel@tonic-gate	* stage2/fsys_fat.c (fat_create_blocklist): Deleted, instead
54207c478bd9Sstevel@tonic-gate	fat_read is implemented.
54217c478bd9Sstevel@tonic-gate	(fat_read): new function.
54227c478bd9Sstevel@tonic-gate	* stage2/disk_io.c (fsys_table): Use fat_read.
54237c478bd9Sstevel@tonic-gate	* stage2/filesys.h: Declare fat_read, remove NO_BLOCK_FILES
54247c478bd9Sstevel@tonic-gate	hack.
54257c478bd9Sstevel@tonic-gate	* stage2/Makefile.am: Compile fat_stage1_5 with
54267c478bd9Sstevel@tonic-gate	-DNO_BLOCK_FILES=1.
54277c478bd9Sstevel@tonic-gate
54287c478bd9Sstevel@tonic-gate	* stage2/fat.h (fat_bpb): New structure describing bpb.
54297c478bd9Sstevel@tonic-gate	(FAT_CVT_U16): New macro.
54307c478bd9Sstevel@tonic-gate	(FAT_BPB_CHECK_SIG, FAT_BPB_NUM_SECTORS,
54317c478bd9Sstevel@tonic-gate	FAT_BPB_BYTES_PER_SECTOR, FAT_BPB_SECT_PER_CLUS, FAT_BPB_NUMFAT,
54327c478bd9Sstevel@tonic-gate	FAT_BPB_RESERVED_SECTORS, FAT_BPB_FAT_SECTORS_16,
54337c478bd9Sstevel@tonic-gate	FAT_BPB_FAT_SECTORS_32, FAT_BPB_IS_FAT32, FAT_BPB_FAT_SECTORS,
54347c478bd9Sstevel@tonic-gate	FAT_BPB_FAT_START, FAT_BPB_ROOT_DIR_CLUSTER,
54357c478bd9Sstevel@tonic-gate	FAT_BPB_HIDDEN_SECTORS, FAT_BPB_ROOT_DIR_START,
54367c478bd9Sstevel@tonic-gate	FAT_BPB_ROOT_DIR_LENGTH, FAT_BPB_DATA_OFFSET,
54377c478bd9Sstevel@tonic-gate	FAT_BPB_NUM_CLUST): Macros removed.
54387c478bd9Sstevel@tonic-gate	* stage2/fsys_fat.c (fat_superblock): New structure containing
54397c478bd9Sstevel@tonic-gate	all info about currently mounted filesystem.
54407c478bd9Sstevel@tonic-gate	(FAT_SUPER): New Macro.
54417c478bd9Sstevel@tonic-gate	(BPB): Macro removod.
54427c478bd9Sstevel@tonic-gate	(fat_mount): Use fat_bpb structure, fill FAT_SUPER.
54437c478bd9Sstevel@tonic-gate	(fat_read, fat_dir): Use FAT_SUPER info.
54447c478bd9Sstevel@tonic-gate
54457c478bd9Sstevel@tonic-gate2000-02-16  OKUJI Yoshinori  <okuji@gnu.org>
54467c478bd9Sstevel@tonic-gate
54477c478bd9Sstevel@tonic-gate	Pass the boot partition information to a chain-loader, in the
54487c478bd9Sstevel@tonic-gate	partition table area of the loader, instead of right before the
54497c478bd9Sstevel@tonic-gate	loaded address. Reported by takehiro@coral.ocn.ne.jp (Takehiro
54507c478bd9Sstevel@tonic-gate	Suzuki).
54517c478bd9Sstevel@tonic-gate
54527c478bd9Sstevel@tonic-gate	* stage2/builtins.c (chainloader_func): Embed the partition
54537c478bd9Sstevel@tonic-gate	table of the boot drive in the partition table area of the
54547c478bd9Sstevel@tonic-gate	chain-loader, if the boot drive is a hard disk drive.
54557c478bd9Sstevel@tonic-gate	Pass BOOT_PART_ADDR instead of (BOOTSEC_LOCATION - 16) as the
54567c478bd9Sstevel@tonic-gate	third argument for the function chain_stage1.
54577c478bd9Sstevel@tonic-gate	* stage2/disk_io.c [!STAGE1_5] (boot_part_addr): New variable.
54587c478bd9Sstevel@tonic-gate	[!STAGE1_5] (boot_part_offset): Likewise.
54597c478bd9Sstevel@tonic-gate	[!STAGE1_5] (cur_part_offset): Likewise.
54607c478bd9Sstevel@tonic-gate	[!STAGE1_5] (cur_part_addr): Likewise.
54617c478bd9Sstevel@tonic-gate	[!STAGE1_5] (cur_part_desc): Removed.
54627c478bd9Sstevel@tonic-gate	(real_open_partition) [!STAGE1_5]: Set CUR_PART_OFFSET and
54637c478bd9Sstevel@tonic-gate	CUR_PART_ADDR to PART_OFFSET and (BOOTSEC_LOCATION +
54647c478bd9Sstevel@tonic-gate	PC_SLICE_OFFSET + (i << 4)), respectively.
54657c478bd9Sstevel@tonic-gate	[!STAGE1_5] (set_bootdev): Set BOOT_PART_OFFSET and
54667c478bd9Sstevel@tonic-gate	BOOT_PART_ADDR to CUR_PART_OFFSET and CUR_PART_ADDR,
54677c478bd9Sstevel@tonic-gate	respectively.
54687c478bd9Sstevel@tonic-gate	* stage2/shared.h (boot_part_addr): Declared.
54697c478bd9Sstevel@tonic-gate	(boot_part_offset): Likewise.
54707c478bd9Sstevel@tonic-gate
54717c478bd9Sstevel@tonic-gate2000-02-12  OKUJI Yoshinori  <okuji@gnu.org>
54727c478bd9Sstevel@tonic-gate
54737c478bd9Sstevel@tonic-gate	* stage2/builtins.c (geometry_func): Attempt to read the first
54747c478bd9Sstevel@tonic-gate	sector to examine if LBA mode is really supported.
54757c478bd9Sstevel@tonic-gate
54767c478bd9Sstevel@tonic-gate	* netboot/fsys_tftp.c (buf_fill) [TFTP_DEBUG]: Added some debug
54777c478bd9Sstevel@tonic-gate	messages.
54787c478bd9Sstevel@tonic-gate	(send_rrq) [TFTP_DEBUG]: Likewise.
54797c478bd9Sstevel@tonic-gate	(tftp_read) [TFTP_DEBUG]: Likewise.
54807c478bd9Sstevel@tonic-gate	(tftp_dir) [TFTP_DEBUG]: Likewise.
54817c478bd9Sstevel@tonic-gate	(tftp_close) [TFTP_DEBUG]: Likewise.
54827c478bd9Sstevel@tonic-gate	(tftp_read): Call buf_fill with the argument 1 first, if FILEPOS
54837c478bd9Sstevel@tonic-gate	has been moved backwards, and use grub_memmove for copying
54847c478bd9Sstevel@tonic-gate	SAVED_TP to TP instead of a direct assignment.
54857c478bd9Sstevel@tonic-gate	If send_rrq fails, set ERRNUM to ERR_WRITE instead of ERR_READ.
54867c478bd9Sstevel@tonic-gate	Check if BUF_READ is zero instead of if BUF_EOF is non-zero at
54877c478bd9Sstevel@tonic-gate	the end of the loop.
54887c478bd9Sstevel@tonic-gate	(tftp_dir): Set ERRNUM to ERR_WRITE instead of ERR_READ, if
54897c478bd9Sstevel@tonic-gate	send_rrq fails.
54907c478bd9Sstevel@tonic-gate	Save TP and LEN in SAVED_TP and SAVED_LEN respectively before
54917c478bd9Sstevel@tonic-gate	buf_fill instead of after it, because it destroys the contents
54927c478bd9Sstevel@tonic-gate	of TP.
54937c478bd9Sstevel@tonic-gate	* netboot/main.c (print_network_configuration): The order of the
54947c478bd9Sstevel@tonic-gate	arguments for grub_sprintf in the local function sprint_ip_addr
54957c478bd9Sstevel@tonic-gate	is reversed.
54967c478bd9Sstevel@tonic-gate
54977c478bd9Sstevel@tonic-gate	* configure.in (--enable-packet_retransmission): Renamed to ...
54987c478bd9Sstevel@tonic-gate	(--disable-packet-retransmission): ... this. Assume that a
54997c478bd9Sstevel@tonic-gate	network	is congested by default.
55007c478bd9Sstevel@tonic-gate
55017c478bd9Sstevel@tonic-gate2000-02-11  OKUJI Yoshinori  <okuji@gnu.org>
55027c478bd9Sstevel@tonic-gate
55037c478bd9Sstevel@tonic-gate	From Pavel Roskin:
55047c478bd9Sstevel@tonic-gate	* stage2/shared.h [!GRUB_SHARED_HEADER] (GRUB_SHARED_HEADER):
55057c478bd9Sstevel@tonic-gate	Defined.
55067c478bd9Sstevel@tonic-gate	[GRUB_SHARED_HEADER]: Don't declare or define anything.
55077c478bd9Sstevel@tonic-gate
55087c478bd9Sstevel@tonic-gate	* netboot/main.c (print_network_configuration): New function.
55097c478bd9Sstevel@tonic-gate	(await_reply): Check for Control-C instead of ESC, because GRUB
55107c478bd9Sstevel@tonic-gate	already uses ESC for another purpose.
55117c478bd9Sstevel@tonic-gate	(rfc951_sleep): Check for the key input in the loop. If
55127c478bd9Sstevel@tonic-gate	Control-C is pushed, return immediately.
55137c478bd9Sstevel@tonic-gate	* netboot/etherboot (print_network_configuration): Declared.
55147c478bd9Sstevel@tonic-gate	(CTRL_C): New macro.
55157c478bd9Sstevel@tonic-gate	(ESC): Undefined.
55167c478bd9Sstevel@tonic-gate	* netboot/config.c (eth_probe): Clear ARPTABLE after clearing
55177c478bd9Sstevel@tonic-gate	NETWORK_READY.
55187c478bd9Sstevel@tonic-gate	* stage2/builtins.c (bootp_func): Call
55197c478bd9Sstevel@tonic-gate	print_network_configuration if bootp succeeds.
55207c478bd9Sstevel@tonic-gate	(rarp_func): Call print_network_configuration if rarp succeeds.
55217c478bd9Sstevel@tonic-gate
55227c478bd9Sstevel@tonic-gate2000-02-11  OKUJI Yoshinori  <okuji@gnu.org>
55237c478bd9Sstevel@tonic-gate
55247c478bd9Sstevel@tonic-gate	From Per Lundberg <plundis@byggdok.se>:
55257c478bd9Sstevel@tonic-gate	* docs/multiboot.texi: Added graphics support.
55267c478bd9Sstevel@tonic-gate
55277c478bd9Sstevel@tonic-gate2000-02-10  OKUJI Yoshinori  <okuji@gnu.org>
55287c478bd9Sstevel@tonic-gate
55297c478bd9Sstevel@tonic-gate	* docs/multiboot.texi (Top): Downgrade the version to 0.6.90,
55307c478bd9Sstevel@tonic-gate	since we need more work to release it as 0.7.
55317c478bd9Sstevel@tonic-gate
55327c478bd9Sstevel@tonic-gate2000-02-10  OKUJI Yoshinori  <okuji@gnu.org>
55337c478bd9Sstevel@tonic-gate
55347c478bd9Sstevel@tonic-gate	* stage2/Makefile.am [NETBOOT_SUPPORT] (STAGE2_COMPILE): Added
55357c478bd9Sstevel@tonic-gate	-I$(top_srcdir)/netboot and -DSUPPORT_NETBOOT=1.
55367c478bd9Sstevel@tonic-gate	* stage2/builtins.c (bootp_func): New function.
55377c478bd9Sstevel@tonic-gate	(dhcp_func): Likewise.
55387c478bd9Sstevel@tonic-gate	(rarp_func): Likewise.
55397c478bd9Sstevel@tonic-gate	(builtin_bootp): New variable.
55407c478bd9Sstevel@tonic-gate	(builtin_dhcp): Likewise.
55417c478bd9Sstevel@tonic-gate	(builtin_rarp): Likewise.
55427c478bd9Sstevel@tonic-gate	(builtin_table): Added pointers to BUILTIN_BOOTP, BUILTIN_DHCP
55437c478bd9Sstevel@tonic-gate	and BUILTIN_RARP.
55447c478bd9Sstevel@tonic-gate	* docs/user-ref.texi (General Commands): Added descriptions
55457c478bd9Sstevel@tonic-gate	about "bootp", "dhcp" and "rarp".
55467c478bd9Sstevel@tonic-gate
55477c478bd9Sstevel@tonic-gate	* netboot/main.c (bootp) [!NO_DHCP_SUPPORT]: Added casts to
55487c478bd9Sstevel@tonic-gate	suppress gcc warnings.
55497c478bd9Sstevel@tonic-gate	(decode_rfc1533) [!NO_DHCP_SUPPORT]: Likewise.
55507c478bd9Sstevel@tonic-gate	* netboot/3c90x.c: Include the local "pci.h" instead of
55517c478bd9Sstevel@tonic-gate	<linux/pci.h> even if __FreeBSD__ is undefined.
55527c478bd9Sstevel@tonic-gate
55537c478bd9Sstevel@tonic-gate2000-02-09  OKUJI Yoshinori  <okuji@gnu.org>
55547c478bd9Sstevel@tonic-gate
55557c478bd9Sstevel@tonic-gate	From Jochen Hoenicke:
55567c478bd9Sstevel@tonic-gate	* stage2/fsys_fat.c (fat_create_blocklist): The previous change
55577c478bd9Sstevel@tonic-gate	is reversed. Set FIRST_FAT_ENTRY to a unsigned long value in
55587c478bd9Sstevel@tonic-gate	FAT_BUF + (NEW_MAPBLOCK - MAPBLOCK) instead of a unsigned short
55597c478bd9Sstevel@tonic-gate	value. Mask FIRST_FAT_ENTRY with 0xFFF if FAT_SIZE is equal to
55607c478bd9Sstevel@tonic-gate	3, whether the bit 0 of LAST_FAT_ENTRY is set or not.
55617c478bd9Sstevel@tonic-gate
55627c478bd9Sstevel@tonic-gate	* netboot/config.c (eth_probe): If PROBED is set to non-zero,
55637c478bd9Sstevel@tonic-gate	return 1 without probing ethernet cards. Clear NETWORK_READY. If
55647c478bd9Sstevel@tonic-gate	*T->ETH_PROBE return sucessfully, set PROBED to 1.
55657c478bd9Sstevel@tonic-gate	* netboot/main.c (rarp): Call eth_probe and return zero if
55667c478bd9Sstevel@tonic-gate	fails. Clear NETWORK_READY at first, and set NETWORK_READY to 1
55677c478bd9Sstevel@tonic-gate	if RETRY is less than MAX_ARP_RETRIES. If IP_ABORT is non-zero,
55687c478bd9Sstevel@tonic-gate	return zero instead of one.
55697c478bd9Sstevel@tonic-gate	(bootp): Call eth_probe and return zero if fails. Clear
55707c478bd9Sstevel@tonic-gate	NETWORK_READY at first, and set NETWORK_READY to 1 if
55717c478bd9Sstevel@tonic-gate	await_reply returns successfully.
55727c478bd9Sstevel@tonic-gate	(bootp) [T509HACK]: If FLAG is non-zero, skip calling
55737c478bd9Sstevel@tonic-gate	await_reply. Don't call await_reply here any more.
55747c478bd9Sstevel@tonic-gate	(bootp) [!NO_DHCP_SUPPORT]: If any ack packet is not reached
55757c478bd9Sstevel@tonic-gate	within MAX_BOOTP_RETRIES times, return zero. If DHCP_REPLY isn't
55767c478bd9Sstevel@tonic-gate	DHCPOFFER, set NETWORK_READY to one and return one.
55777c478bd9Sstevel@tonic-gate	* netboot/etherboot.h (NO_DHCP_SUPPORT): Undefined.
55787c478bd9Sstevel@tonic-gate
55797c478bd9Sstevel@tonic-gate	* stage2/builtins.c (print_root_device): Use the macro
55807c478bd9Sstevel@tonic-gate	NETWORK_DRIVE instead of 0x20.
55817c478bd9Sstevel@tonic-gate	* stage2/disk_io.c [!STAGE1_5] (sane_partition): Likewise.
55827c478bd9Sstevel@tonic-gate	(real_open_partition) [!STAGE1_5]: Likewise.
55837c478bd9Sstevel@tonic-gate	(set_device) [!STAGE1_5]: Likewise.
55847c478bd9Sstevel@tonic-gate
55857c478bd9Sstevel@tonic-gate2000-02-08  OKUJI Yoshinori  <okuji@gnu.org>
55867c478bd9Sstevel@tonic-gate
55877c478bd9Sstevel@tonic-gate	* grub/asmstub.c (biosdisk) [__linux__]: Use _llseek when
55887c478bd9Sstevel@tonic-gate	__GLIBC_MINOR__ is less than 1 even if __GLIBC__ is 2. Reported
55897c478bd9Sstevel@tonic-gate	by Goran Koruga <goran.koruga@hermes.si>.
55907c478bd9Sstevel@tonic-gate
55917c478bd9Sstevel@tonic-gate	* configure.in (--disable-lba-support-bitmap-check): New option.
55927c478bd9Sstevel@tonic-gate	Don't define CHECK_LBA_SUPPORT_BITMAP if specified.
55937c478bd9Sstevel@tonic-gate	* stage1/stage1.S (real_start): Check if AH=0x42 is supported if
55947c478bd9Sstevel@tonic-gate	CHECK_LBA_SUPPORT_BITMAP instead of NO_BUGGY_BIOS_IN_THE_WORLD
55957c478bd9Sstevel@tonic-gate	is defined.
55967c478bd9Sstevel@tonic-gate	* stage2/bios.c (get_diskinfo): Check if LBA read/write
55977c478bd9Sstevel@tonic-gate	functions are supported iff CHECK_LBA_SUPPORT_BITMAP is defined,
55987c478bd9Sstevel@tonic-gate	instead of NO_BUGGY_BIOS_IN_THE_WORLD.
55997c478bd9Sstevel@tonic-gate
56007c478bd9Sstevel@tonic-gate2000-02-07  OKUJI Yoshinori  <okuji@gnu.org>
56017c478bd9Sstevel@tonic-gate
56027c478bd9Sstevel@tonic-gate	The netboot support is heavily rewritten, based on
56037c478bd9Sstevel@tonic-gate	Etherboot-4.4.2. The current one doesn't work yet, so check out
56047c478bd9Sstevel@tonic-gate	GRUB with the tag "dresden_netboot_code" if you need working
56057c478bd9Sstevel@tonic-gate	one.
56067c478bd9Sstevel@tonic-gate
56077c478bd9Sstevel@tonic-gate	* configure.in (--enable-tftp): Deleted.
56087c478bd9Sstevel@tonic-gate	(FSYS_CFLAGS): `AC_SUBST'ed right before AC_OUTPUT.
56097c478bd9Sstevel@tonic-gate	(NETBOOT_DRIVERS): New variable. AC_SUBST this after examining
56107c478bd9Sstevel@tonic-gate	the driver options.
56117c478bd9Sstevel@tonic-gate	(--enable-packet-retransmission): New option.
56127c478bd9Sstevel@tonic-gate	(--enable-pci-direct): Likewise.
56137c478bd9Sstevel@tonic-gate	(--enable-3c509): Likewise.
56147c478bd9Sstevel@tonic-gate	(--enable-3c529): Likewise.
56157c478bd9Sstevel@tonic-gate	(--enable-3c90x): Likewise.
56167c478bd9Sstevel@tonic-gate	(--enable-cs89x0): Likewise.
56177c478bd9Sstevel@tonic-gate	(--enable-epic100): Likewise.
56187c478bd9Sstevel@tonic-gate	(--enable-3c507): Likewise.
56197c478bd9Sstevel@tonic-gate	(--enable-exos205): Likewise.
56207c478bd9Sstevel@tonic-gate	(--enable-ni5210): Likewise.
56217c478bd9Sstevel@tonic-gate	(--enable-lancepci): Likewise.
56227c478bd9Sstevel@tonic-gate	(--enable-ne2100): Likewise.
56237c478bd9Sstevel@tonic-gate	(--enable-ni6510): Likewise.
56247c478bd9Sstevel@tonic-gate	(--enable-3c503): Likewise.
56257c478bd9Sstevel@tonic-gate	(--enable-ntulip): Likewise.
56267c478bd9Sstevel@tonic-gate	(--enable-rtl8139): Likewise.
56277c478bd9Sstevel@tonic-gate	(--enable-sk-g16): Likewise.
56287c478bd9Sstevel@tonic-gate	(--enable-smc9000): Likewise.
56297c478bd9Sstevel@tonic-gate	(--enable-tiara): Likewise.
56307c478bd9Sstevel@tonic-gate	(--enable-tulip): Likewise.
56317c478bd9Sstevel@tonic-gate	(--enable-via-rhine): Likewise.
56327c478bd9Sstevel@tonic-gate	(--enable-3c503-shmem): Likewise.
56337c478bd9Sstevel@tonic-gate	(--enable-3c503-aui): Likewise.
56347c478bd9Sstevel@tonic-gate	(--enable-3c509-hack): Likewise.
56357c478bd9Sstevel@tonic-gate	(--enable-compex-rl2000-fix): Likewise.
56367c478bd9Sstevel@tonic-gate	(--enable-smc9000-scan): Likewise.
56377c478bd9Sstevel@tonic-gate	(--enable-t503): Deleted.
56387c478bd9Sstevel@tonic-gate	(--enable-lance): Likewise.
56397c478bd9Sstevel@tonic-gate	(--enable-cs): Likewise.
56407c478bd9Sstevel@tonic-gate
56417c478bd9Sstevel@tonic-gate	* netboot/main.c: New file. Copied and modified.
56427c478bd9Sstevel@tonic-gate	* netboot/linux-asm-io.h: Likewise.
56437c478bd9Sstevel@tonic-gate	* netboot/etherboot.h: Likewise.
56447c478bd9Sstevel@tonic-gate	* netboot/misc.c: Likewise.
56457c478bd9Sstevel@tonic-gate	* netboot/via-rhine.c: Likewise.
56467c478bd9Sstevel@tonic-gate	* netboot/3c90x.c: Likewise.
56477c478bd9Sstevel@tonic-gate	* netboot/3c90x.txt: Likewise.
56487c478bd9Sstevel@tonic-gate	* netboot/epic100.c: Likewise.
56497c478bd9Sstevel@tonic-gate	* netboot/epic100.h: Likewise.
56507c478bd9Sstevel@tonic-gate	* netboot/i82586.c: Likewise.
56517c478bd9Sstevel@tonic-gate	* netboot/linux-asm-string.h: Likewise.
56527c478bd9Sstevel@tonic-gate	* netboot/ntulip.c: Likewise.
56537c478bd9Sstevel@tonic-gate	* netboot/ntulip.txt: Likewise.
56547c478bd9Sstevel@tonic-gate	* netboot/osdep.h: Likewise.
56557c478bd9Sstevel@tonic-gate	* netboot/rtl8139.c: Likewise.
56567c478bd9Sstevel@tonic-gate	* netboot/sk_g16.c: Likewise.
56577c478bd9Sstevel@tonic-gate	* netboot/sk_g16.h: Likewise.
56587c478bd9Sstevel@tonic-gate	* netboot/smc9000.c: Likewise.
56597c478bd9Sstevel@tonic-gate	* netboot/smc9000.h: Likewise.
56607c478bd9Sstevel@tonic-gate	* netboot/tiara.c: Likewise.
56617c478bd9Sstevel@tonic-gate	* netboot/tulip.c: Likewise.
56627c478bd9Sstevel@tonic-gate	* netboot/tulip.h: Likewise.
56637c478bd9Sstevel@tonic-gate	* netboot/README.netboot: New file. Most information is stolen
56647c478bd9Sstevel@tonic-gate	from Makefile and Config.32 in Etherboot.
56657c478bd9Sstevel@tonic-gate	* netboot/3c509.c: Copied from Etherboot. The original is
56667c478bd9Sstevel@tonic-gate	removed.
56677c478bd9Sstevel@tonic-gate	* netboot/3c509.h: Likewise.
56687c478bd9Sstevel@tonic-gate	* netboot/cs89x0.c: Likewise.
56697c478bd9Sstevel@tonic-gate	* netboot/eepro100.c: Likewise.
56707c478bd9Sstevel@tonic-gate	* netboot/lance.c: Likewise.
56717c478bd9Sstevel@tonic-gate	* netboot/ns8390.c: Likewise.
56727c478bd9Sstevel@tonic-gate	* netboot/ns8390.h: Likewise.
56737c478bd9Sstevel@tonic-gate	* netboot/pci.c: Likewise.
56747c478bd9Sstevel@tonic-gate
56757c478bd9Sstevel@tonic-gate	* netboot/3c59x.c: Include etherboot.h instead netboot.h.
56767c478bd9Sstevel@tonic-gate	* netboot/config.c: Copied from Etherboot and added the 3c59x
56777c478bd9Sstevel@tonic-gate	entries.
56787c478bd9Sstevel@tonic-gate	* netboot/pci.h: Likewise.
56797c478bd9Sstevel@tonic-gate	* netboot/fsys_tftp.c: Entirely rewritten based on main.c in
56807c478bd9Sstevel@tonic-gate	Etherboot.
56817c478bd9Sstevel@tonic-gate
56827c478bd9Sstevel@tonic-gate	* netboot/io.h: Removed.
56837c478bd9Sstevel@tonic-gate	* netboot/ip.h: Likewise.
56847c478bd9Sstevel@tonic-gate	* netboot/ip.c: Likewise.
56857c478bd9Sstevel@tonic-gate	* netboot/netboot.h: Likewise.
56867c478bd9Sstevel@tonic-gate
56877c478bd9Sstevel@tonic-gate	* netboot/Makefile.am (INCLUDES): Added -I$(top_srcdir)/stage2.
56887c478bd9Sstevel@tonic-gate	(DRIVERS): Removed.
56897c478bd9Sstevel@tonic-gate	(libdrivers_a_SOURCES): Added etherboot.h, linux-asm-io.h,
56907c478bd9Sstevel@tonic-gate	linux-asm-string.h, main.c, misc.c and osdep.h. Deleted io.h,
56917c478bd9Sstevel@tonic-gate	ip.h, ip.c, netboot.h and $(DRIVERS).
56927c478bd9Sstevel@tonic-gate	(EXTRA_libdrivers_a_SOURCES): New variable.
56937c478bd9Sstevel@tonic-gate	(libdrivers_a_LIBADD): Set to @NETBOOT_DRIVERS@.
56947c478bd9Sstevel@tonic-gate	(libdrivers_a_DEPENDENCIES): New variable.
56957c478bd9Sstevel@tonic-gate	(EXTRA_DIST): Likewise.
56967c478bd9Sstevel@tonic-gate	(3c509_drivers): New variable. Define a new rule for the value.
56977c478bd9Sstevel@tonic-gate	(3c59x_drivers): Likewise.
56987c478bd9Sstevel@tonic-gate	(3c90x_drivers): Likewise.
56997c478bd9Sstevel@tonic-gate	(cs89x0_drivers): Likewise.
57007c478bd9Sstevel@tonic-gate	(eepro100_drivers): Likewise.
57017c478bd9Sstevel@tonic-gate	(epic100_drivers): Likewise.
57027c478bd9Sstevel@tonic-gate	(i82586_drivers): Likewise.
57037c478bd9Sstevel@tonic-gate	(lance_drivers): Likewise.
57047c478bd9Sstevel@tonic-gate	(ns8390_drivers): Likewise.
57057c478bd9Sstevel@tonic-gate	(ntulip_drivers): Likewise.
57067c478bd9Sstevel@tonic-gate	(rtl8139_drivers): Likewise.
57077c478bd9Sstevel@tonic-gate	(sk_g16_drivers): Likewise.
57087c478bd9Sstevel@tonic-gate	(smc9000_drivers): Likewise.
57097c478bd9Sstevel@tonic-gate	(tiara_drivers): Likewise.
57107c478bd9Sstevel@tonic-gate	(tulip_drivers): Likewise.
57117c478bd9Sstevel@tonic-gate	(via_rhine_drivers): Likewise.
57127c478bd9Sstevel@tonic-gate	(t503_o_CFLAGS): Removed.
57137c478bd9Sstevel@tonic-gate	(nepci_o_CFLAGS): Set to -DINCLUDE_NEPCI=1.
57147c478bd9Sstevel@tonic-gate	(ne_o_CFLAGS): Set to -DINCLUDE_NE=1.
57157c478bd9Sstevel@tonic-gate	(wd_o_CFLAGS): Set to -DINCLUDE_WD=1.
57167c478bd9Sstevel@tonic-gate	(3c509_o_CFLAGS): Likewise.
57177c478bd9Sstevel@tonic-gate	(3c529_o_CFLAGS): Likewise.
57187c478bd9Sstevel@tonic-gate	(3c59x_o_CFLAGS): Likewise.
57197c478bd9Sstevel@tonic-gate	(3c90x_o_CFLAGS): Likewise.
57207c478bd9Sstevel@tonic-gate	(cs89x0_o_CFLAGS): Likewise.
57217c478bd9Sstevel@tonic-gate	(eepro100_o_CFLAGS): Likewise.
57227c478bd9Sstevel@tonic-gate	(epic100_o_CFLAGS): Likewise.
57237c478bd9Sstevel@tonic-gate	(3c507_o_CFLAGS): Likewise.
57247c478bd9Sstevel@tonic-gate	(exos205_o_CFLAGS): Likewise.
57257c478bd9Sstevel@tonic-gate	(ni5210_o_CFLAGS): Likewise.
57267c478bd9Sstevel@tonic-gate	(lancepci_o_CFLAGS): Likewise.
57277c478bd9Sstevel@tonic-gate	(ne2100_o_CFLAGS): Likewise.
57287c478bd9Sstevel@tonic-gate	(ni6510_o_CFLAGS): Likewise.
57297c478bd9Sstevel@tonic-gate	(3c503_o_CFLAGS): Likewise.
57307c478bd9Sstevel@tonic-gate	(ntulip_o_CFLAGS): Likewise.
57317c478bd9Sstevel@tonic-gate	(rtl8139_o_CFLAGS): Likewise.
57327c478bd9Sstevel@tonic-gate	(sk_g16_o_CFLAGS): Likewise.
57337c478bd9Sstevel@tonic-gate	(smc9000_o_CFLAGS): Likewise.
57347c478bd9Sstevel@tonic-gate	(tiara_o_CFLAGS): Likewise.
57357c478bd9Sstevel@tonic-gate	(tulip_o_CFLAGS): Likewise.
57367c478bd9Sstevel@tonic-gate	(via_rhine_o_CFLAGS): Likewise.
57377c478bd9Sstevel@tonic-gate
57387c478bd9Sstevel@tonic-gate	* stage2/char_io.c (nul_terminate): Changed the type of the
57397c478bd9Sstevel@tonic-gate	return value to int. Return the original character changed to
57407c478bd9Sstevel@tonic-gate	NUL.
57417c478bd9Sstevel@tonic-gate	* stage2/shared.h (NETWORK_DRIVE): New macro.
57427c478bd9Sstevel@tonic-gate	(nul_terminate): Adjusted to the definition.
57437c478bd9Sstevel@tonic-gate	* stage2/gunzip.c (gunzip_test_header): Removed the TFTP check
57447c478bd9Sstevel@tonic-gate	entirely. It is no longer necessary because we now can obtain
57457c478bd9Sstevel@tonic-gate	the correct size of a file even for TFTP.
57467c478bd9Sstevel@tonic-gate
57477c478bd9Sstevel@tonic-gate2000-02-07  OKUJI Yoshinori  <okuji@gnu.org>
57487c478bd9Sstevel@tonic-gate
57497c478bd9Sstevel@tonic-gate	* stage2/asm.S: Undo the previous changes. Is
57507c478bd9Sstevel@tonic-gate	binutils-2.9.5.0.25 too strict to retain the compatibility?
57517c478bd9Sstevel@tonic-gate	Reported by Kalle Olavi Niemitalo <tosi@ees2.oulu.fi>.
57527c478bd9Sstevel@tonic-gate
57537c478bd9Sstevel@tonic-gate2000-02-03  OKUJI Yoshinori  <okuji@gnu.org>
57547c478bd9Sstevel@tonic-gate
57557c478bd9Sstevel@tonic-gate	* stage2/cmdline.c (enter_cmdline): Set BUF_DRIVE to -1 before
57567c478bd9Sstevel@tonic-gate	running a command to invalidate the cache.
57577c478bd9Sstevel@tonic-gate	(run_script): Likewise.
57587c478bd9Sstevel@tonic-gate	* stage2/char_io.c (get_cmdline): Set BUF_DRIVE to -1 before the
57597c478bd9Sstevel@tonic-gate	completion to invalidate the cache.
57607c478bd9Sstevel@tonic-gate	Reported by Jeff Sheinberg <jeffsh@erols.com>.
57617c478bd9Sstevel@tonic-gate
57627c478bd9Sstevel@tonic-gate	* configure.in: Use AC_PATH_TOOL instead of AC_PATH_PROG.
57637c478bd9Sstevel@tonic-gate	* stage2/asm.S (chain_stage1): Prepend `*' to the argument for
57647c478bd9Sstevel@tonic-gate	ljmp.
57657c478bd9Sstevel@tonic-gate	(chain_stage2): Likewise.
57667c478bd9Sstevel@tonic-gate	(big_linux_boot): Likewise.
57677c478bd9Sstevel@tonic-gate
57687c478bd9Sstevel@tonic-gate2000-01-19  OKUJI Yoshinori  <okuji@gnu.org>
57697c478bd9Sstevel@tonic-gate
57707c478bd9Sstevel@tonic-gate	* util/grub-install.in (--root): Renamed to ...
57717c478bd9Sstevel@tonic-gate	(--root-directory): ... this, since "root" is vague.
57727c478bd9Sstevel@tonic-gate	* docs/user-ref.texi (Invoking grub-install): Adjusted to the
57737c478bd9Sstevel@tonic-gate	change above, and added an example how to use --root-directory.
57747c478bd9Sstevel@tonic-gate	* docs/grub-install.8: Regenerated.
57757c478bd9Sstevel@tonic-gate
57767c478bd9Sstevel@tonic-gate	* docs/appendices.texi (FAQ): Added an item about the sucked
57777c478bd9Sstevel@tonic-gate	SCSI problem.
57787c478bd9Sstevel@tonic-gate
57797c478bd9Sstevel@tonic-gate2000-01-15  OKUJI Yoshinori  <okuji@gnu.org>
57807c478bd9Sstevel@tonic-gate
57817c478bd9Sstevel@tonic-gate	* stage2/builtins.c (chainloader_func): If --force is specified
57827c478bd9Sstevel@tonic-gate	in ARG, don't check for the signature.
57837c478bd9Sstevel@tonic-gate	* docs/tutorial.texi (Chain-loading): Added a caution about some
57847c478bd9Sstevel@tonic-gate	defective boot loaders and --force.
57857c478bd9Sstevel@tonic-gate	* docs/user-ref.texi (Command-line-specific commands): Added a
57867c478bd9Sstevel@tonic-gate	description about --force.
57877c478bd9Sstevel@tonic-gate
57887c478bd9Sstevel@tonic-gate2000-01-11  OKUJI Yoshinori  <okuji@gnu.org>
57897c478bd9Sstevel@tonic-gate
57907c478bd9Sstevel@tonic-gate	* docs/prog-ref.texi (LBA mode disk I/O): Added a footnote about
57917c478bd9Sstevel@tonic-gate	a buggy BIOS.
57927c478bd9Sstevel@tonic-gate
57937c478bd9Sstevel@tonic-gate2000-01-11  OKUJI Yoshinori  <okuji@gnu.org>
57947c478bd9Sstevel@tonic-gate
57957c478bd9Sstevel@tonic-gate	* stage1/stage1.S [!NO_BUGGY_BIOS_IN_THE_WORLD]: Don't check if
57967c478bd9Sstevel@tonic-gate	LBA read is supported. Anyway, fallback to the CHS mode if
57977c478bd9Sstevel@tonic-gate	fails.
57987c478bd9Sstevel@tonic-gate
57997c478bd9Sstevel@tonic-gate2000-01-10  OKUJI Yoshinori  <okuji@gnu.org>
58007c478bd9Sstevel@tonic-gate
58017c478bd9Sstevel@tonic-gate	* stage2/bios.c (NO_INT13_FALLBACK): Undefined.
58027c478bd9Sstevel@tonic-gate	(get_diskinfo) [!NO_BUGGY_BIOS_IN_THE_WORLD]: Do not check if
58037c478bd9Sstevel@tonic-gate	bit 0 in DRP.FLAGS is set, because at least one BIOS does not
58047c478bd9Sstevel@tonic-gate	set it correctly. Reported by "Forever shall I be."
58057c478bd9Sstevel@tonic-gate	<zinx@linuxfreak.com>.
58067c478bd9Sstevel@tonic-gate
58077c478bd9Sstevel@tonic-gate	* util/grub-install.in: Handle the new options `--root' and
58087c478bd9Sstevel@tonic-gate	`--grub-shell'.
58097c478bd9Sstevel@tonic-gate	(rootdir): New variable.
58107c478bd9Sstevel@tonic-gate	(usage): Print the help messages about the options --root and
58117c478bd9Sstevel@tonic-gate	--grub-shell.
58127c478bd9Sstevel@tonic-gate	(bootdir): Initialized after the option analysis.
58137c478bd9Sstevel@tonic-gate	(grubdir): Likewise.
58147c478bd9Sstevel@tonic-gate	(device_map): Likewise.
58157c478bd9Sstevel@tonic-gate	(root_device): Set to the result for the directory ROOTDIR
58167c478bd9Sstevel@tonic-gate	instead of "/".
58177c478bd9Sstevel@tonic-gate	* docs/user-ref.texi (Invoking grub-install): Added the
58187c478bd9Sstevel@tonic-gate	descriptions about --root and --grub-shell.
58197c478bd9Sstevel@tonic-gate	* docs/grub-install.8: Regenerated.
58207c478bd9Sstevel@tonic-gate
58217c478bd9Sstevel@tonic-gate2000-01-08  OKUJI Yoshinori  <okuji@gnu.org>
58227c478bd9Sstevel@tonic-gate
58237c478bd9Sstevel@tonic-gate	* util/grub-install.in (grubdir_device): New variable.
58247c478bd9Sstevel@tonic-gate	If GRUBDIR_DEVICE is not equal to ROOT_DEVICE, print an error
58257c478bd9Sstevel@tonic-gate	message and exit.
58267c478bd9Sstevel@tonic-gate	* README: Added a caution about Automake.
58277c478bd9Sstevel@tonic-gate	* TODO: Updated. Only the things that should be done until 0.6
58287c478bd9Sstevel@tonic-gate	have one or more exclamations. Things with zero exclamation
58297c478bd9Sstevel@tonic-gate	will be done after 0.6 unless someone sends a patch for it.
58307c478bd9Sstevel@tonic-gate
58317c478bd9Sstevel@tonic-gate2000-01-05  OKUJI Yoshinori  <okuji@gnu.org>
58327c478bd9Sstevel@tonic-gate
58337c478bd9Sstevel@tonic-gate	* grub/asmstub.c: Include the header shared.h after including
58347c478bd9Sstevel@tonic-gate	all the system headers, but not before.
58357c478bd9Sstevel@tonic-gate	(EXTENDED_MEMSIZE): Reduced to 3MB.
58367c478bd9Sstevel@tonic-gate	(grub_setjmp): New function.
58377c478bd9Sstevel@tonic-gate	(grub_longjmp): Likewise.
58387c478bd9Sstevel@tonic-gate	* grub/main.c: Include setjmp.h.
58397c478bd9Sstevel@tonic-gate	* stage2/asm.S (grub_setjmp): New function. Stolen from the
58407c478bd9Sstevel@tonic-gate	OSKit (which stole it from Mach).
58417c478bd9Sstevel@tonic-gate	(grub_longjmp): Likewise.
58427c478bd9Sstevel@tonic-gate	* stage2/shared.h [GRUB_UTIL] (grub_jmp_buf): New type.
58437c478bd9Sstevel@tonic-gate	[!GRUB_UTIL] (grub_jmp_buf): New macro. Defined as jmp_buf.
58447c478bd9Sstevel@tonic-gate	(grub_setjmp): Declared.
58457c478bd9Sstevel@tonic-gate	(grub_longjmp): Likewise.
58467c478bd9Sstevel@tonic-gate	(restart_env): Likewise.
58477c478bd9Sstevel@tonic-gate	* stage2/builtins.c (configfile_func): Use grub_longjmp instead
58487c478bd9Sstevel@tonic-gate	of invoking cmain again.
58497c478bd9Sstevel@tonic-gate	* stage2/stage2.c (restart_env): New variable.
58507c478bd9Sstevel@tonic-gate	(cmain): Call grub_setjmp first to initialize RESTART_ENV.
58517c478bd9Sstevel@tonic-gate
58527c478bd9Sstevel@tonic-gate2000-01-03  OKUJI Yoshinori  <okuji@gnu.org>
58537c478bd9Sstevel@tonic-gate
58547c478bd9Sstevel@tonic-gate	* docs/multiboot.texi (Boot information format): Added the
58557c478bd9Sstevel@tonic-gate	descriptions about the fields "config_table" and
58567c478bd9Sstevel@tonic-gate	"boot_loader_name".
58577c478bd9Sstevel@tonic-gate
58587c478bd9Sstevel@tonic-gate1999-12-31  OKUJI Yoshinori  <okuji@gnu.org>
58597c478bd9Sstevel@tonic-gate
58607c478bd9Sstevel@tonic-gate	* stage2/builtins.c (setup_func) [!NO_BUGGY_BIOS_IN_THE_WORLD]:
58617c478bd9Sstevel@tonic-gate	Specify the option `d', whether INSTALL_DRIVE is identical with
58627c478bd9Sstevel@tonic-gate	IMAGE_DRIVE or not.
58637c478bd9Sstevel@tonic-gate	* docs/user-ref.texi (Command-line-specific commands): Added a
58647c478bd9Sstevel@tonic-gate	caution about buggy BIOSes which don't pass a booting drive
58657c478bd9Sstevel@tonic-gate	properly.
58667c478bd9Sstevel@tonic-gate
58677c478bd9Sstevel@tonic-gate	* docs/src2texi: Added an extra space into the first line, for
58687c478bd9Sstevel@tonic-gate	the portability issue.
58697c478bd9Sstevel@tonic-gate
58707c478bd9Sstevel@tonic-gate	* docs/appendices.texi (Obtaining and Building GRUB): Update the
58717c478bd9Sstevel@tonic-gate	information on the ftp site and the CVS repository.
58727c478bd9Sstevel@tonic-gate
58737c478bd9Sstevel@tonic-gate1999-12-30  OKUJI Yoshinori  <okuji@gnu.org>
58747c478bd9Sstevel@tonic-gate
58757c478bd9Sstevel@tonic-gate	* stage2/builtins.c (blocklist_func): New function.
58767c478bd9Sstevel@tonic-gate	(builtin_blocklist): New variable.
58777c478bd9Sstevel@tonic-gate	(builtin_table): Added a pointer to BUILTIN_BLOCKLIST.
58787c478bd9Sstevel@tonic-gate	* docs/user-ref.texi (Command-line-specific commands): Added a
58797c478bd9Sstevel@tonic-gate	description about the command "blocklist".
58807c478bd9Sstevel@tonic-gate
58817c478bd9Sstevel@tonic-gate1999-12-30  OKUJI Yoshinori  <okuji@gnu.org>
58827c478bd9Sstevel@tonic-gate
58837c478bd9Sstevel@tonic-gate	* stage2/disk_io.c (grub_seek): New function.
58847c478bd9Sstevel@tonic-gate	* stage2/shared.h (grub_seek): Declared.
58857c478bd9Sstevel@tonic-gate	* stage2/boot.c (load_image): Use grub_seek instead of setting
58867c478bd9Sstevel@tonic-gate	FILEPOS to a new value directly.
58877c478bd9Sstevel@tonic-gate	* stage2/builtins.c (install_func): Likewise.
58887c478bd9Sstevel@tonic-gate	(testload_func): Likewise.
58897c478bd9Sstevel@tonic-gate
58907c478bd9Sstevel@tonic-gate	* docs/grub.texi: Use a single direntry command for all the
58917c478bd9Sstevel@tonic-gate	entries instead of one per entry.
58927c478bd9Sstevel@tonic-gate
58937c478bd9Sstevel@tonic-gate1999-12-29  OKUJI Yoshinori  <okuji@gnu.org>
58947c478bd9Sstevel@tonic-gate
58957c478bd9Sstevel@tonic-gate	* grub/asmstub.c (check_device) [__linux__]: Check if DEVICE is
58967c478bd9Sstevel@tonic-gate	a CD-ROM drive by the HDIO_GETGEO ioctl. If so, then return
58977c478bd9Sstevel@tonic-gate	zero. Reported by Pavel Roskin.
58987c478bd9Sstevel@tonic-gate
58997c478bd9Sstevel@tonic-gate	* stage2/Makefile.am (nodist_noinst_DATA): Renamed to ...
59007c478bd9Sstevel@tonic-gate	(noinst_DATA): ... this. The primary DATA is `nodist' by
59017c478bd9Sstevel@tonic-gate	default, at least theoretically. Reported by Klaus Reichl.
59027c478bd9Sstevel@tonic-gate
59037c478bd9Sstevel@tonic-gate	* stage2/bios.c (get_diskinfo): Set the LBA flag in GEOMETRY
59047c478bd9Sstevel@tonic-gate	only if bit 0 in DRP.FLAGS is set. Reported by Zack Weinberg
59057c478bd9Sstevel@tonic-gate	<zack@rabi.columbia.edu>.
59067c478bd9Sstevel@tonic-gate
59077c478bd9Sstevel@tonic-gate	From Pavel Roskin:
59087c478bd9Sstevel@tonic-gate	* grub/asmstub.c (init_device_map): Increase the number of
59097c478bd9Sstevel@tonic-gate	devices to be probed to 8 for IDE disks and 16 for SCSI
59107c478bd9Sstevel@tonic-gate	disks. Reported by Anton Anisimov <aa@bestlinux.net>.
59117c478bd9Sstevel@tonic-gate
59127c478bd9Sstevel@tonic-gate1999-12-06  Gordon Matzigkeit  <gord@fig.org>
59137c478bd9Sstevel@tonic-gate
59147c478bd9Sstevel@tonic-gate	* README (DEVELOPERS): Change CVS location to subversions.
59157c478bd9Sstevel@tonic-gate
59167c478bd9Sstevel@tonic-gate1999-11-30  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
59177c478bd9Sstevel@tonic-gate
59187c478bd9Sstevel@tonic-gate	* stage2/disk_io.c (real_open_partition): If SLICE_NO is greater
59197c478bd9Sstevel@tonic-gate	than or equal to PC_SLICE_MAX, skip any extended partition, when
59207c478bd9Sstevel@tonic-gate	searching for the right partition. Reported by Weil, Stefan 3732
59217c478bd9Sstevel@tonic-gate	EPE-24 <Stefan.Weil@de.heidelberg.com>.
59227c478bd9Sstevel@tonic-gate
59237c478bd9Sstevel@tonic-gate1999-11-19  Gordon Matzigkeit  <gord@fig.org>
59247c478bd9Sstevel@tonic-gate
59257c478bd9Sstevel@tonic-gate	* grub/asmstub.c (getkey): Stop immediately if we get an EOF.
59267c478bd9Sstevel@tonic-gate
59277c478bd9Sstevel@tonic-gate	* stage2/stage2.c (cmain): Tell enter_cmdline to run forever.
59287c478bd9Sstevel@tonic-gate	(run_menu): Tell print_cmdline_message and enter_cmdline that we
59297c478bd9Sstevel@tonic-gate	won't run forever.
59307c478bd9Sstevel@tonic-gate	* stage2/cmdline.c (enter_cmdline): New argument, FOREVER, for
59317c478bd9Sstevel@tonic-gate	when ESC shouldn't allow an exit.  Pass it to
59327c478bd9Sstevel@tonic-gate	print_cmdline_message.
59337c478bd9Sstevel@tonic-gate	(print_cmdline_message): Use new argument, FOREVER, to decide
59347c478bd9Sstevel@tonic-gate	whether to tell the user that ESC exits.
59357c478bd9Sstevel@tonic-gate
59367c478bd9Sstevel@tonic-gate1999-11-18  Gordon Matzigkeit  <gord@fig.org>
59377c478bd9Sstevel@tonic-gate
59387c478bd9Sstevel@tonic-gate	* debian/rules (binary-arch): Don't strip or generate shared
59397c478bd9Sstevel@tonic-gate	library dependencies for /usr/sbin/grub-install, since it's a
59407c478bd9Sstevel@tonic-gate	script.
59417c478bd9Sstevel@tonic-gate
59427c478bd9Sstevel@tonic-gate	* util/grub-install.in: Create safe temporary log files using
59437c478bd9Sstevel@tonic-gate	/bin/tempfile if it is executable.
59447c478bd9Sstevel@tonic-gate
59457c478bd9Sstevel@tonic-gate1999-11-17  Gordon Matzigkeit  <gord@fig.org>
59467c478bd9Sstevel@tonic-gate
59477c478bd9Sstevel@tonic-gate	* stage1/Makefile.am (LDFLAGS): Consolidate multiple -Wl flags.
59487c478bd9Sstevel@tonic-gate	* stage2/Makefile.am (PRE_STAGE2_LINK): Likewise.
59497c478bd9Sstevel@tonic-gate	(START_LINK): Likewise.
59507c478bd9Sstevel@tonic-gate	(STAGE1_5_LINK): Likewise.
59517c478bd9Sstevel@tonic-gate
59527c478bd9Sstevel@tonic-gate1999-11-19  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
59537c478bd9Sstevel@tonic-gate
59547c478bd9Sstevel@tonic-gate	* util/grub-install.in (debug): New variable.
59557c478bd9Sstevel@tonic-gate	(convert): If the device file does not exist, then emit an
59567c478bd9Sstevel@tonic-gate	error. Get the GRUB drive instead of the OS device.
59577c478bd9Sstevel@tonic-gate	If --debug is specified, then set $debug to yes.
59587c478bd9Sstevel@tonic-gate	If $debug is yes, run "set -x".
59597c478bd9Sstevel@tonic-gate	Make sure that stage1 and stage2 exist.
59607c478bd9Sstevel@tonic-gate	When checking for INSTALL_DEVICE, use "case" instead of "elif"s.
59617c478bd9Sstevel@tonic-gate	Make sure that $install_drive is not empty.
59627c478bd9Sstevel@tonic-gate	Likewise, make sure that $root_drive is not empty.
59637c478bd9Sstevel@tonic-gate	Any error message is redirected to the standard error.
59647c478bd9Sstevel@tonic-gate
59657c478bd9Sstevel@tonic-gate1999-11-19  Pavel Roskin  <pavel_roskin@geocities.com>
59667c478bd9Sstevel@tonic-gate
59677c478bd9Sstevel@tonic-gate	* stage2/Makefile.am (noinst_DATA): Renamed to ...
59687c478bd9Sstevel@tonic-gate	(nodist_noinst_DATA): ... this.
59697c478bd9Sstevel@tonic-gate	* util/Makefile.am: sbin_SCRIPS -> sbin_SCRIPTS.
59707c478bd9Sstevel@tonic-gate	* util/grub-install.in: grub_dir -> grubdir.
59717c478bd9Sstevel@tonic-gate	Check if $grub_shell exists before running it.
59727c478bd9Sstevel@tonic-gate	(convert): Added a missing "test" after "if".
59737c478bd9Sstevel@tonic-gate
59747c478bd9Sstevel@tonic-gate1999-11-18  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
59757c478bd9Sstevel@tonic-gate
59767c478bd9Sstevel@tonic-gate	* configure.in: Output grub-install.
59777c478bd9Sstevel@tonic-gate	* util/Makefile.am (sbin_SCRIPTS): New variable.
59787c478bd9Sstevel@tonic-gate	* util/grub-install.in: New file.
59797c478bd9Sstevel@tonic-gate	* docs/Makefile.am (man_MANS): Added grub-install.8.
59807c478bd9Sstevel@tonic-gate	[MAINTAINER_MODE] ($(srcdir)/grub-install.8): New target.
59817c478bd9Sstevel@tonic-gate	* docs/grub-install.8: New file. Generated by help2man.
59827c478bd9Sstevel@tonic-gate	* docs/user-ref.texi (Invoking grub-install): New chapter.
59837c478bd9Sstevel@tonic-gate
59847c478bd9Sstevel@tonic-gate1999-11-16  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
59857c478bd9Sstevel@tonic-gate
59867c478bd9Sstevel@tonic-gate	From Pavel Roskin:
59877c478bd9Sstevel@tonic-gate	* stage1/stage1.S: Check for the API subset support bitmap
59887c478bd9Sstevel@tonic-gate	returned by INT 13 AH=48h, and jump to chs_mode if AH=42h is not
59897c478bd9Sstevel@tonic-gate	supported.
59907c478bd9Sstevel@tonic-gate
59917c478bd9Sstevel@tonic-gate1999-11-13  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
59927c478bd9Sstevel@tonic-gate
59937c478bd9Sstevel@tonic-gate	* stage2/builtins.c (install_func): When using a Stage 1.5, set
59947c478bd9Sstevel@tonic-gate	CURRENT_DRIVE to SAVED_DRIVE and CURRENT_PARTITION to
59957c478bd9Sstevel@tonic-gate	SAVED_PARTITION if set_device fails. If CURRENT_DRIVE is equal
59967c478bd9Sstevel@tonic-gate	to SRC_DRIVE, then set CURRENT_DRIVE to 0xFF. We don't want to
59977c478bd9Sstevel@tonic-gate	embed any drive number whenever possible.
59987c478bd9Sstevel@tonic-gate	* stage2/disk_io.c (set_device) [STAGE1_5]: Always set
59997c478bd9Sstevel@tonic-gate	CURRENT_PARTITION to PARTITION.
60007c478bd9Sstevel@tonic-gate
60017c478bd9Sstevel@tonic-gate1999-11-13  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
60027c478bd9Sstevel@tonic-gate
60037c478bd9Sstevel@tonic-gate	From Pavel Roskin:
60047c478bd9Sstevel@tonic-gate	* stage1/stage1.S (lba_mode): Jump to chs_mode if INT 13 AH=42h
60057c478bd9Sstevel@tonic-gate	fails.
60067c478bd9Sstevel@tonic-gate
60077c478bd9Sstevel@tonic-gate1999-11-12  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
60087c478bd9Sstevel@tonic-gate
60097c478bd9Sstevel@tonic-gate	Do not use the device map file unless --device-map is specified.
60107c478bd9Sstevel@tonic-gate
60117c478bd9Sstevel@tonic-gate	* grub/main.c (device_map_file): Set to 0.
60127c478bd9Sstevel@tonic-gate	(default_device_map_file): Removed.
60137c478bd9Sstevel@tonic-gate	(usage): Do not print DEFAULT_DEVICE_MAP_FILE.
60147c478bd9Sstevel@tonic-gate	* grub/asmstub.c (init_device_map): If DEVICE_MAP_FILE is NULL,
60157c478bd9Sstevel@tonic-gate	do not try to open the device map file.
60167c478bd9Sstevel@tonic-gate	Set FP to NULL by default.
60177c478bd9Sstevel@tonic-gate	* docs/grub.8: Regenerated.
60187c478bd9Sstevel@tonic-gate
60197c478bd9Sstevel@tonic-gate1999-11-11  Michael Hohmuth  <hohmuth@innocent.com>
60207c478bd9Sstevel@tonic-gate
60217c478bd9Sstevel@tonic-gate	* stage2/boot.c (load_image): grub_close was called after
60227c478bd9Sstevel@tonic-gate	return, so exchange the order.
60237c478bd9Sstevel@tonic-gate	* stage2/stage1_5.c (cmain): Call grub_close after grub_read.
60247c478bd9Sstevel@tonic-gate	Set RET to the value returned by grub_read, and if RET is
60257c478bd9Sstevel@tonic-gate	non-zero, call chain_stage2.
60267c478bd9Sstevel@tonic-gate	* stage1/Makefile.am (BUILT_SOURCES): Removed.
60277c478bd9Sstevel@tonic-gate	(CLEANFILES): Set to $(nodist_pkgdata_DATA).
60287c478bd9Sstevel@tonic-gate
60297c478bd9Sstevel@tonic-gate1999-11-11  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
60307c478bd9Sstevel@tonic-gate
60317c478bd9Sstevel@tonic-gate	Suggested by Klaus Reichl:
60327c478bd9Sstevel@tonic-gate	* stage2/builtins.c (print_root_device): New function.
60337c478bd9Sstevel@tonic-gate	(root_func): If no argument is specified, call the function
60347c478bd9Sstevel@tonic-gate	print_root_device and return.
60357c478bd9Sstevel@tonic-gate	(rootnoverify_func): Likewise.
60367c478bd9Sstevel@tonic-gate	* stage2/disk_io.c [!STAGE1_5] (print_completions): Call
60377c478bd9Sstevel@tonic-gate	print_error even if IS_FILENAME is zero.
60387c478bd9Sstevel@tonic-gate	If ERRNUM is non-zero, then return -1.
60397c478bd9Sstevel@tonic-gate	* stage2/char_io.c [!STAGE1_5] (get_cmdline): Clear ERRNUM after
60407c478bd9Sstevel@tonic-gate	calling print_completions to print the list as well.
60417c478bd9Sstevel@tonic-gate
60427c478bd9Sstevel@tonic-gate	* stage2/asm.S [!STAGE1_5] (currticks): Set %eax to %cx:%dx
60437c478bd9Sstevel@tonic-gate	correctly. Reported by Michael Hohmuth.
60447c478bd9Sstevel@tonic-gate
60457c478bd9Sstevel@tonic-gate1999-11-06  Klaus Reichl  <Klaus.Reichl@alcatel.at>
60467c478bd9Sstevel@tonic-gate
60477c478bd9Sstevel@tonic-gate	* grub/asmstub.c (get_diskinfo) [__linux__]: After opening the
60487c478bd9Sstevel@tonic-gate	drive, flush the cache, other progs may have left over something
60497c478bd9Sstevel@tonic-gate	in the cache.
60507c478bd9Sstevel@tonic-gate
60517c478bd9Sstevel@tonic-gate1999-11-03  Gordon Matzigkeit  <gord@fig.org>
60527c478bd9Sstevel@tonic-gate
60537c478bd9Sstevel@tonic-gate	* debian/rules: Add variables for cross-compilation.
60547c478bd9Sstevel@tonic-gate
60557c478bd9Sstevel@tonic-gate	* debian/control (Standards-Version): Update to version 3.1.0.
60567c478bd9Sstevel@tonic-gate	* debian/rules (build): Install manpages into /usr/share/man, and
60577c478bd9Sstevel@tonic-gate	info into /usr/share/info in accordance with FHS.
60587c478bd9Sstevel@tonic-gate	(binary-arch): Likewise, and put docs into /usr/share/doc.
60597c478bd9Sstevel@tonic-gate	* debian/postinst: Use /usr/share/info, and manage compatibility
60607c478bd9Sstevel@tonic-gate	/usr/doc/grub -> /usr/share/doc/grub symlink.
60617c478bd9Sstevel@tonic-gate	* debian/prerm: Likewise.
60627c478bd9Sstevel@tonic-gate
60637c478bd9Sstevel@tonic-gate	* stage2/Makefile.am (CLEANFILES): Change to
60647c478bd9Sstevel@tonic-gate	$(nodist_pkgdata_DATA) so that the raw binary files are deleted.
60657c478bd9Sstevel@tonic-gate	* stage1/Makefile.am (CLEANFILES): Likewise.
60667c478bd9Sstevel@tonic-gate
60677c478bd9Sstevel@tonic-gate1999-11-06  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
60687c478bd9Sstevel@tonic-gate
60697c478bd9Sstevel@tonic-gate	* grub/asmstub.c (grub_putchar) [HAVE_LIBCURSES]: Do not call
60707c478bd9Sstevel@tonic-gate	wrefresh. This was just an accident. Sorry.
60717c478bd9Sstevel@tonic-gate
60727c478bd9Sstevel@tonic-gate	Reported by Alan McLean <amcl@flash.net>:
60737c478bd9Sstevel@tonic-gate	* stage2/builtins.c (embed_func): The sector argument for the
60747c478bd9Sstevel@tonic-gate	function biosdisk is changed from SECTOR + I * SECTOR_SIZE to
60757c478bd9Sstevel@tonic-gate	SECTOR + I.
60767c478bd9Sstevel@tonic-gate	(find_func): Clear ERRNUM before each of the attempts.
60777c478bd9Sstevel@tonic-gate
60787c478bd9Sstevel@tonic-gate1999-11-05  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
60797c478bd9Sstevel@tonic-gate
60807c478bd9Sstevel@tonic-gate	* docs/multiboot.texi (Boot information format): Add the members
60817c478bd9Sstevel@tonic-gate	`drives_addr' and `drives_count' into the Multiboot information
60827c478bd9Sstevel@tonic-gate	structure, and added the descriptions.
60837c478bd9Sstevel@tonic-gate
60847c478bd9Sstevel@tonic-gate1999-11-03  Gordon Matzigkeit  <gord@fig.org>
60857c478bd9Sstevel@tonic-gate
60867c478bd9Sstevel@tonic-gate	* util/mbchk.c (main): Move the version number inside the
60877c478bd9Sstevel@tonic-gate	parentheses since it is the GRUB package version, not just an
60887c478bd9Sstevel@tonic-gate	mbchk-specific version.
60897c478bd9Sstevel@tonic-gate
60907c478bd9Sstevel@tonic-gate1999-10-30  Gordon Matzigkeit  <gord@fig.org>
60917c478bd9Sstevel@tonic-gate
60927c478bd9Sstevel@tonic-gate	* debian/rules (binary-arch): Compress man pages.
60937c478bd9Sstevel@tonic-gate	Strip the grub shell.
60947c478bd9Sstevel@tonic-gate	Install examples.
60957c478bd9Sstevel@tonic-gate
60967c478bd9Sstevel@tonic-gate1999-11-03  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
60977c478bd9Sstevel@tonic-gate
60987c478bd9Sstevel@tonic-gate	* docs/tutorial.texi: Fix typos by ispell.
60997c478bd9Sstevel@tonic-gate	* docs/user-ref.texi: Likewise.
61007c478bd9Sstevel@tonic-gate	* docs/prog-ref.texi: Likewise.
61017c478bd9Sstevel@tonic-gate	* docs/appendices.texi: Likewise.
61027c478bd9Sstevel@tonic-gate
61037c478bd9Sstevel@tonic-gate1999-11-03  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
61047c478bd9Sstevel@tonic-gate
61057c478bd9Sstevel@tonic-gate	* stage2/fsys_ext2fs.c (struct ext2_dir_entry): Changed the type
61067c478bd9Sstevel@tonic-gate	of `name_len' to __u8 and added the new member `file_type' after
61077c478bd9Sstevel@tonic-gate	it. This is stolen from linux/ext2_fs.h in Linux 2.2.13.
61087c478bd9Sstevel@tonic-gate	Reported by Ben Harris <bjh21@cam.ac.uk>.
61097c478bd9Sstevel@tonic-gate
61107c478bd9Sstevel@tonic-gate	* stage2/builtins.c (device_func) [GRUB_UTIL]: Call
61117c478bd9Sstevel@tonic-gate	nul_terminate before calling check_device.
61127c478bd9Sstevel@tonic-gate
61137c478bd9Sstevel@tonic-gate1999-11-02  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
61147c478bd9Sstevel@tonic-gate
61157c478bd9Sstevel@tonic-gate	* stage2/disk_io.c (real_open_partition): Check for the right
61167c478bd9Sstevel@tonic-gate	partition for any extended partition as well. Set EXT to I after
61177c478bd9Sstevel@tonic-gate	the check is done. Reported by Jeff Scheinberg
61187c478bd9Sstevel@tonic-gate	<jeffsh@erols.com>.
61197c478bd9Sstevel@tonic-gate
61207c478bd9Sstevel@tonic-gate	* stage2/builtins.c (color_func): Use the function
61217c478bd9Sstevel@tonic-gate	nul_terminate.
61227c478bd9Sstevel@tonic-gate	(device_func) [GRUB_UTIL]: Likewise.
61237c478bd9Sstevel@tonic-gate	(help_func): Likewise.
61247c478bd9Sstevel@tonic-gate	(install_func): Save CURRENT_DRIVE, CURRENT_PARTITION and
61257c478bd9Sstevel@tonic-gate	BUG_GEOM in SRC_DRIVE, SRC_PARTITION and SRC_GEOM respectively,
61267c478bd9Sstevel@tonic-gate	and use them when patching the Stage 2.
61277c478bd9Sstevel@tonic-gate	NUL-terminate the configuration filename CONFIG_FILENAME.
61287c478bd9Sstevel@tonic-gate	If IS_STAGE1_5 is true, then check if the "real config file"
61297c478bd9Sstevel@tonic-gate	option is present, and, if so, patch the Stage 2 CONFIG_FILENAME
61307c478bd9Sstevel@tonic-gate	with the configuration filename REAL_CONFIG_FILENAME.
61317c478bd9Sstevel@tonic-gate	(setkey_func): Use nul_terminate instead of the local function
61327c478bd9Sstevel@tonic-gate	null_terminate.
61337c478bd9Sstevel@tonic-gate	* stage2/char_io.c [!STAGE1_5] (nul_terminate): New function.
61347c478bd9Sstevel@tonic-gate	* stage2/shared.h (nul_terminate): Declared.
61357c478bd9Sstevel@tonic-gate
61367c478bd9Sstevel@tonic-gate1999-11-01  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
61377c478bd9Sstevel@tonic-gate
61387c478bd9Sstevel@tonic-gate	* docs/grub.texi: Add "I/O ports detection" into the menu.
61397c478bd9Sstevel@tonic-gate	* docs/user-ref.texi: Added a description about the command
61407c478bd9Sstevel@tonic-gate	"ioprobe".
61417c478bd9Sstevel@tonic-gate	* docs/prog-ref.texi (I/O ports detection): New chapter.
61427c478bd9Sstevel@tonic-gate
61437c478bd9Sstevel@tonic-gate1999-11-01  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
61447c478bd9Sstevel@tonic-gate
61457c478bd9Sstevel@tonic-gate	From Pavel Roskin:
61467c478bd9Sstevel@tonic-gate	* stage2/asm.S (int1_handler): Use EXT_C(io_map) instead of
61477c478bd9Sstevel@tonic-gate	io_map.
61487c478bd9Sstevel@tonic-gate	(int1_handler): Use EXT_C(bios_key_map) instead of bios_key_map.
61497c478bd9Sstevel@tonic-gate	* grub/asmstub.c [__OpenBSD__]: Include <sys/ioctl.h> and
61507c478bd9Sstevel@tonic-gate	<sys/disklabel.h>.
61517c478bd9Sstevel@tonic-gate	[__OpenBSD__] (get_floppy_disk_name): Added support for OpenBSD.
61527c478bd9Sstevel@tonic-gate	[__OpenBSD__] (get_ide_disk_name): Likewise.
61537c478bd9Sstevel@tonic-gate	[__OpenBSD__] (get_scsi_disk_name): Likewise.
61547c478bd9Sstevel@tonic-gate	(get_drive_geometry) [__OpenBSD__]: Use for OpenBSD the same
61557c478bd9Sstevel@tonic-gate	ioctl as for NetBSD and FreeBSD.
61567c478bd9Sstevel@tonic-gate
61577c478bd9Sstevel@tonic-gate1999-10-31  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
61587c478bd9Sstevel@tonic-gate
61597c478bd9Sstevel@tonic-gate	* grub/asmstub.c (init_device_map): Add a floppy device name
61607c478bd9Sstevel@tonic-gate	into the device map file even if check_device fails.
61617c478bd9Sstevel@tonic-gate	* stage2/char_io.c [!STAGE1_5] (get_cmdline): Clear ERRNUM after
61627c478bd9Sstevel@tonic-gate	calling print_completions.
61637c478bd9Sstevel@tonic-gate
61647c478bd9Sstevel@tonic-gate1999-10-29  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
61657c478bd9Sstevel@tonic-gate
61667c478bd9Sstevel@tonic-gate	* stage2/asm.S (track_int13): Defined unconditionally. Do not
61677c478bd9Sstevel@tonic-gate	use int3 any more, but replace the int13 handler with
61687c478bd9Sstevel@tonic-gate	set_tf_int13_handler.
61697c478bd9Sstevel@tonic-gate	(int1_handler): Defined unconditionally. Do not check for 0x0F.
61707c478bd9Sstevel@tonic-gate	Add missing `$'s. If the code is 0xEC-0xEF, use %dx instead of
61717c478bd9Sstevel@tonic-gate	immediate. If the code is 0xE4-0xE7, use immediate instead of
61727c478bd9Sstevel@tonic-gate	%dx. Set %ds to zero before scanning IO_MAP. Check for the
61737c478bd9Sstevel@tonic-gate	buffer overrun of IO_MAP before adding a port.
61747c478bd9Sstevel@tonic-gate	[!DEFINE_TRACK_INT13] (int13_first_instruction): Removed.
61757c478bd9Sstevel@tonic-gate	[!DEFINE_TRACK_INT13] (int3_handler): Likewise.
61767c478bd9Sstevel@tonic-gate	(set_tf_int13_handler): New interrupt handler.
61777c478bd9Sstevel@tonic-gate	(set_tf_int13_offset): New variable.
61787c478bd9Sstevel@tonic-gate	(set_tf_int13_segment): Likewise.
61797c478bd9Sstevel@tonic-gate	* stage2/builtins.c (ioprobe_func): New function.
61807c478bd9Sstevel@tonic-gate	(builtin_ioprobe): New variable.
61817c478bd9Sstevel@tonic-gate	(builtin_table): Added a pointer to BUILTIN_IOPROBE.
61827c478bd9Sstevel@tonic-gate	* stage2/shared.h (IO_MAP_SIZE): New macro.
61837c478bd9Sstevel@tonic-gate	(track_int13): Declared.
61847c478bd9Sstevel@tonic-gate	(io_map): Likewise.
61857c478bd9Sstevel@tonic-gate
61867c478bd9Sstevel@tonic-gate1999-10-29  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
61877c478bd9Sstevel@tonic-gate
61887c478bd9Sstevel@tonic-gate	* stage2/char_io.c (print_error) [!STAGE1_5]: Print "Error:"
61897c478bd9Sstevel@tonic-gate	before print the error message.
61907c478bd9Sstevel@tonic-gate	(print_error): Do not clear ERRNUM.
61917c478bd9Sstevel@tonic-gate	* stage2/cmdline.c (run_script): If ERRNUM is non-zero, set
61927c478bd9Sstevel@tonic-gate	ERRNUM to ERR_NONE.
61937c478bd9Sstevel@tonic-gate	(enter_cmdline): Clear ERRNUM after print_error.
61947c478bd9Sstevel@tonic-gate
61957c478bd9Sstevel@tonic-gate1999-10-28  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
61967c478bd9Sstevel@tonic-gate
61977c478bd9Sstevel@tonic-gate	From Pavel Roskin:
61987c478bd9Sstevel@tonic-gate	* stage2/stage2.c (run_menu) [GRUB_UTIL]: Do not use IBM special
61997c478bd9Sstevel@tonic-gate	characters in the message, but use ascii names instead.
62007c478bd9Sstevel@tonic-gate	(run_menu) [!GRUB_UTIL]: Use DISP_UP and DISP_DOWN instead of
62017c478bd9Sstevel@tonic-gate	the ascii codes.
62027c478bd9Sstevel@tonic-gate	* stage2/shared.h [!ACS_ULCORNER] (ACS_ULCORNER): New macro.
62037c478bd9Sstevel@tonic-gate	[!ACS_ULCORNER] (ACS_URCORNER): Likewise.
62047c478bd9Sstevel@tonic-gate	[!ACS_ULCORNER] (ACS_LLCORNER): Likewise.
62057c478bd9Sstevel@tonic-gate	[!ACS_ULCORNER] (ACS_LRCORNER): Likewise.
62067c478bd9Sstevel@tonic-gate	[!ACS_ULCORNER] (ACS_HLINE): Likewise.
62077c478bd9Sstevel@tonic-gate	[!ACS_ULCORNER] (ACS_VLINE): Likewise.
62087c478bd9Sstevel@tonic-gate	[!ACS_ULCORNER] (ACS_LARROW): Likewise.
62097c478bd9Sstevel@tonic-gate	[!ACS_ULCORNER] (ACS_RARROW): Likewise.
62107c478bd9Sstevel@tonic-gate	[!ACS_ULCORNER] (ACS_UARROW): Likewise.
62117c478bd9Sstevel@tonic-gate	[!ACS_ULCORNER] (ACS_DARROW): Likewise.
62127c478bd9Sstevel@tonic-gate	[GRUB_UTIL] (DISP_UL): Set to ACS_ULCORNER.
62137c478bd9Sstevel@tonic-gate	[GRUB_UTIL] (DISP_UR): Set to ACS_URCORNER.
62147c478bd9Sstevel@tonic-gate	[GRUB_UTIL] (DISP_LL): Set to ACS_LLCORNER.
62157c478bd9Sstevel@tonic-gate	[GRUB_UTIL] (DISP_LR): Set to ACS_LRCORNER.
62167c478bd9Sstevel@tonic-gate	[GRUB_UTIL] (DISP_HORIZ): Set to ACS_HLINE.
62177c478bd9Sstevel@tonic-gate	[GRUB_UTIL] (DISP_VERT): Set to ACS_VLINE.
62187c478bd9Sstevel@tonic-gate	[GRUB_UTIL] (DISP_LEFT): Set to ACS_LARROW.
62197c478bd9Sstevel@tonic-gate	[GRUB_UTIL] (DISP_RIGHT): Set to ACS_RARROW.
62207c478bd9Sstevel@tonic-gate	[GRUB_UTIL] (DISP_UP): Set to ACS_UARROW.
62217c478bd9Sstevel@tonic-gate	[GRUB_UTIL] (DISP_DOWN): Set to ACS_DARROW.
62227c478bd9Sstevel@tonic-gate
62237c478bd9Sstevel@tonic-gate1999-10-28  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
62247c478bd9Sstevel@tonic-gate
62257c478bd9Sstevel@tonic-gate	* stage2/builtins.c (keycode_func): Removed.
62267c478bd9Sstevel@tonic-gate	(builtin_keycode): Likewise.
62277c478bd9Sstevel@tonic-gate	(struct keysym): New structure.
62287c478bd9Sstevel@tonic-gate	(keysym_table): New variable.
62297c478bd9Sstevel@tonic-gate	(setkey_func): New function.
62307c478bd9Sstevel@tonic-gate	(builtin_setkey): New variable.
62317c478bd9Sstevel@tonic-gate	(builtin_table): Removed the pointer to BUILTIN_KEYCODE, and
62327c478bd9Sstevel@tonic-gate	added a pointer to BUILTIN_SETKEY.
62337c478bd9Sstevel@tonic-gate	* stage2/common.c [!STAGE1_5] (err_list): Added
62347c478bd9Sstevel@tonic-gate	ERR_BAD_ARGUMENT.
62357c478bd9Sstevel@tonic-gate	* stage2/shared.h (grub_error_t): Added ERR_BAD_ARGUMENT.
62367c478bd9Sstevel@tonic-gate	(KEY_MAP_SIZE): Set to 128.
62377c478bd9Sstevel@tonic-gate	(ascii_key_map): Declared.
62387c478bd9Sstevel@tonic-gate	* stage2/asm.S [!STAGE1_5] (remap_ascii_char): New function.
62397c478bd9Sstevel@tonic-gate	[!STAGE1_5] (ascii_key_map): New variable.
62407c478bd9Sstevel@tonic-gate	[!STAGE1_5] (getkey): Call remap_ascii_char after int16.
62417c478bd9Sstevel@tonic-gate	[!STAGE1_5] (checkkey): Likewise.
62427c478bd9Sstevel@tonic-gate	* grub/asmstub.c (ascii_key_map): New variable.
62437c478bd9Sstevel@tonic-gate	* docs/user-ref.texi (General commands): Added a description
62447c478bd9Sstevel@tonic-gate	about the command "setkey".
62457c478bd9Sstevel@tonic-gate	(Stage2 errors): Added a description about ERR_BAD_ARGUMENT.
62467c478bd9Sstevel@tonic-gate
62477c478bd9Sstevel@tonic-gate1999-10-27  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
62487c478bd9Sstevel@tonic-gate
62497c478bd9Sstevel@tonic-gate	* stage2/disk_io.c (set_device) [!STAGE1_5]: Remove the
62507c478bd9Sstevel@tonic-gate	preliminary Mach-style device name support. I've decided that
62517c478bd9Sstevel@tonic-gate	the support is not necessary.
62527c478bd9Sstevel@tonic-gate	(setup_part) [!STAGE1_5]: Do not strip the leading "/dev/".
62537c478bd9Sstevel@tonic-gate	* docs/help2man: Upgraded to 1.016.
62547c478bd9Sstevel@tonic-gate	* docs/mbchk.1: Regenerated.
62557c478bd9Sstevel@tonic-gate	* docs/grub.8: Likewise.
62567c478bd9Sstevel@tonic-gate	* grub/asmstub.c: Rename KEY_MAP to BIOS_KEY_MAP.
62577c478bd9Sstevel@tonic-gate
62587c478bd9Sstevel@tonic-gate	* stage2/asm.S [!STAGE1_5] (set_int15_handler): Use 0 instead of
62597c478bd9Sstevel@tonic-gate	the maximum number for the segment.
62607c478bd9Sstevel@tonic-gate	[!STAGE1_5] (unset_int15_handler): Likewise.
62617c478bd9Sstevel@tonic-gate	[!STAGE1_5] (int15_handler): Almost rewritten. If non-carrier,
62627c478bd9Sstevel@tonic-gate	ignore the scancode. If the scancode is E1 or E0, then set
62637c478bd9Sstevel@tonic-gate	INT15_SKIP_FLAG to 0x74, and if the previous scancode is E1 or
62647c478bd9Sstevel@tonic-gate	E0, set INT15_SKIP_FLAG to 0xea. Clear bit 7 in %dl. Save bit 7
62657c478bd9Sstevel@tonic-gate	of %al in %bl. Do not lcall. Use ljmp instead.
62667c478bd9Sstevel@tonic-gate	[!STAGE1_5] (key_map): Renamed to ...
62677c478bd9Sstevel@tonic-gate	[!STAGE1_5] (bios_key_map): ... this.
62687c478bd9Sstevel@tonic-gate	* stage2/builtins.c (keycode_func): Check if FROM is greater
62697c478bd9Sstevel@tonic-gate	than 0xff instead of double-checking for TO. Use BIOS_KEY_MAP
62707c478bd9Sstevel@tonic-gate	instead of KEY_MAP.
62717c478bd9Sstevel@tonic-gate	* stage2/shared.h (KEY_MAP_SIZE): Set to 32.
62727c478bd9Sstevel@tonic-gate	(key_map): Removed.
62737c478bd9Sstevel@tonic-gate	(bios_key_map): Declared.
62747c478bd9Sstevel@tonic-gate
62757c478bd9Sstevel@tonic-gate1999-10-26  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
62767c478bd9Sstevel@tonic-gate
62777c478bd9Sstevel@tonic-gate	Now the BIOS drive remapping is functional.
62787c478bd9Sstevel@tonic-gate
62797c478bd9Sstevel@tonic-gate	* stage2/asm.S [DEFINE_TRACK_INT13] (track_int13): Use %edi
62807c478bd9Sstevel@tonic-gate	instead of direct addresses.
62817c478bd9Sstevel@tonic-gate	Prefix DATA32 to the calls for real_to_prot and prot_to_real.
62827c478bd9Sstevel@tonic-gate	Fix the address of DRIVE: 4(%ebp) -> 8(%ebp).
62837c478bd9Sstevel@tonic-gate	(set_int15_handler): Use %edi instead of direct addresses.
62847c478bd9Sstevel@tonic-gate	(unset_int15_handler): Likewise.
62857c478bd9Sstevel@tonic-gate	(set_int13_handler): Copy DRIVE_MAP_SIZE * 2 bytes instead of
62867c478bd9Sstevel@tonic-gate	DRIVE_MAP_SIZE bytes of MAP.
62877c478bd9Sstevel@tonic-gate	Fix the address of MAP: 4(%ebp) -> 8(%ebp).
62887c478bd9Sstevel@tonic-gate	Use %edi instead of direct addresses.
62897c478bd9Sstevel@tonic-gate	(int13_handler): Do not set %ds to %cs. Use the segment override
62907c478bd9Sstevel@tonic-gate	prefix of %cs instead.
62917c478bd9Sstevel@tonic-gate	Push the flags pushed by the callee instead of the current.
62927c478bd9Sstevel@tonic-gate	Set the flags in the stack to the flags returned by the original
62937c478bd9Sstevel@tonic-gate	int13 call.
62947c478bd9Sstevel@tonic-gate	(drive_map): 4bytes-aligned.
62957c478bd9Sstevel@tonic-gate	* stage2/disk_io.c (grub_close): Do not set ERRNUM even if
62967c478bd9Sstevel@tonic-gate	FSYS_TYPE is NUM_FSYS.
62977c478bd9Sstevel@tonic-gate
62987c478bd9Sstevel@tonic-gate1999-10-25  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
62997c478bd9Sstevel@tonic-gate
63007c478bd9Sstevel@tonic-gate	* stage1/stage1.S: Long jump to real_start, because some bogus
63017c478bd9Sstevel@tonic-gate	BIOSes jump to 07C0:0000 instead of 0000:7C00.
63027c478bd9Sstevel@tonic-gate	(real_start): New label.
63037c478bd9Sstevel@tonic-gate	* docs/Makefile.am (grub.info): Removed. Use the default rule
63047c478bd9Sstevel@tonic-gate	instead.
63057c478bd9Sstevel@tonic-gate
63067c478bd9Sstevel@tonic-gate1999-10-25  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
63077c478bd9Sstevel@tonic-gate
63087c478bd9Sstevel@tonic-gate	* stage2/asm.S [DEFINE_TRACK_INT13] (int3_handler): Save the
63097c478bd9Sstevel@tonic-gate	modified FLAGS in 6(%bp) instead of 4(%bp).
63107c478bd9Sstevel@tonic-gate	Decrease %bx before restoring the first instruction.
63117c478bd9Sstevel@tonic-gate	[DEFINE_TRACK_INT13] (track_int13): Go to the real mode before
63127c478bd9Sstevel@tonic-gate	setting up the registers for the int13 call.
63137c478bd9Sstevel@tonic-gate
63147c478bd9Sstevel@tonic-gate1999-10-24  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
63157c478bd9Sstevel@tonic-gate
63167c478bd9Sstevel@tonic-gate	Add the prototype of a function to probe I/O ports used for a
63177c478bd9Sstevel@tonic-gate	BIOS drive.
63187c478bd9Sstevel@tonic-gate
63197c478bd9Sstevel@tonic-gate	* stage2/asm.S [DEFINE_TRACK_INT13] (track_int13): New function.
63207c478bd9Sstevel@tonic-gate	[DEFINE_TRACK_INT13] (int1_handler): New interrupt handler for
63217c478bd9Sstevel@tonic-gate	the real mode.
63227c478bd9Sstevel@tonic-gate	[DEFINE_TRACK_INT13] (int3_handler): Likewise.
63237c478bd9Sstevel@tonic-gate	[DEFINE_TRACK_INT13] (io_map): New variable.
63247c478bd9Sstevel@tonic-gate
63257c478bd9Sstevel@tonic-gate	* stage2/builtins.c (quit_func) [!GRUB_UTIL]: Fix a typo.
63267c478bd9Sstevel@tonic-gate
63277c478bd9Sstevel@tonic-gate1999-10-24  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
63287c478bd9Sstevel@tonic-gate
63297c478bd9Sstevel@tonic-gate	The new GRUB manual becomes official.
63307c478bd9Sstevel@tonic-gate
63317c478bd9Sstevel@tonic-gate	* docs/grub.texi: Replaced with new-grub.texi.
63327c478bd9Sstevel@tonic-gate	* docs/new-grub.texi: Removed.
63337c478bd9Sstevel@tonic-gate	* docs/Makefile.am (grub_TEXINFOS): New variable.
63347c478bd9Sstevel@tonic-gate	(UNFINISHED_MANUALS): Removed.
63357c478bd9Sstevel@tonic-gate	(EXTRA_DIST): Deleted $(UNFINISHED_MANUALS).
63367c478bd9Sstevel@tonic-gate
63377c478bd9Sstevel@tonic-gate1999-10-24  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
63387c478bd9Sstevel@tonic-gate
63397c478bd9Sstevel@tonic-gate	* stage2/builtins.c (device_func) [!GRUB_UTIL]: Set ERRNUM to
63407c478bd9Sstevel@tonic-gate	ERR_UNRECOGINIZED and return 1.
63417c478bd9Sstevel@tonic-gate	(impsprobe_func) [GRUB_UTIL]: Likewise.
63427c478bd9Sstevel@tonic-gate	(quit_func) [!GRUB_UTIL]: Likewise.
63437c478bd9Sstevel@tonic-gate	* docs/tutorial.texi: Rename "Device Syntax" to "Filename".
63447c478bd9Sstevel@tonic-gate	Added many cross-references.
63457c478bd9Sstevel@tonic-gate	* docs/new-grub.texi: "Device Syntax" -> "Filename".
63467c478bd9Sstevel@tonic-gate	* docs/user-ref.texi: Fix typos and added some cross-references.
63477c478bd9Sstevel@tonic-gate	* docs/prog-ref.texi: Likewise.
63487c478bd9Sstevel@tonic-gate	* docs/appendices.texi: Likewise.
63497c478bd9Sstevel@tonic-gate
63507c478bd9Sstevel@tonic-gate1999-10-23  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
63517c478bd9Sstevel@tonic-gate
63527c478bd9Sstevel@tonic-gate	* stage2/builtins.c (map_func): If BIOS_DRIVE_MAP already
63537c478bd9Sstevel@tonic-gate	contains FROM, override the existsing entry.
63547c478bd9Sstevel@tonic-gate	If TO is equal to FROM, delete the existing entry if any.
63557c478bd9Sstevel@tonic-gate	(keycode_func): Likewise.
63567c478bd9Sstevel@tonic-gate	* docs/user-ref.texi (Command): Use the list of `@deffn's
63577c478bd9Sstevel@tonic-gate	instead of @table.
63587c478bd9Sstevel@tonic-gate	(Basic usage): Use @option instead of @code.
63597c478bd9Sstevel@tonic-gate	(Invoking mbchk): Likewise.
63607c478bd9Sstevel@tonic-gate
63617c478bd9Sstevel@tonic-gate1999-10-23  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
63627c478bd9Sstevel@tonic-gate
63637c478bd9Sstevel@tonic-gate	* stage2/asm.S [!STAGE1_5] (set_int15_handler): New function.
63647c478bd9Sstevel@tonic-gate	[!STAGE1_5] (unset_int15_handler): Likewise.
63657c478bd9Sstevel@tonic-gate	[!STAGE1_5] (int15_handler): New interrupt handler for the real
63667c478bd9Sstevel@tonic-gate	mode.
63677c478bd9Sstevel@tonic-gate	[!STAGE1_5] (int15_offset): New variable.
63687c478bd9Sstevel@tonic-gate	[!STAGE1_5] (int15_segment): Likewise.
63697c478bd9Sstevel@tonic-gate	[!STAGE1_5] (key_map): Likewise.
63707c478bd9Sstevel@tonic-gate	[!STAGE1_5] (set_int13_handler): Use the macro ABS for
63717c478bd9Sstevel@tonic-gate	INT13_OFFSET and INT13_SEGMENT.
63727c478bd9Sstevel@tonic-gate	* stage2/shared.h (KEY_MAP_SIZE): New macro.
63737c478bd9Sstevel@tonic-gate	(set_int15_handler): Declared.
63747c478bd9Sstevel@tonic-gate	(unset_int15_handler): Likewise.
63757c478bd9Sstevel@tonic-gate	* stage2/builtins.c (boot_func): Do not allow I to be equal to
63767c478bd9Sstevel@tonic-gate	DRIVE_MAP_SIZE.
63777c478bd9Sstevel@tonic-gate	Call unset_int15_handler unless KERNEL_TYPE is KERNEL_TYPE_NONE.
63787c478bd9Sstevel@tonic-gate	(map_func): Search for an empty slot till I is less than
63797c478bd9Sstevel@tonic-gate	DRIVE_MAP_SIZE.
63807c478bd9Sstevel@tonic-gate	Check if I is equal to DRIVE_MAP_SIZE instead of if I is greater
63817c478bd9Sstevel@tonic-gate	than DRIVE_MAP_SIZE.
63827c478bd9Sstevel@tonic-gate	(keycode_func): New function.
63837c478bd9Sstevel@tonic-gate	(builtin_keycode): New variable.
63847c478bd9Sstevel@tonic-gate	(builtin_table): Added a pointer to BUILTIN_KEYCODE.
63857c478bd9Sstevel@tonic-gate	* grub/asmstub.c (set_int15_handler): New function.
63867c478bd9Sstevel@tonic-gate	(unset_int15_handler): Likewise.
63877c478bd9Sstevel@tonic-gate	(key_map): New variable.
63887c478bd9Sstevel@tonic-gate
63897c478bd9Sstevel@tonic-gate1999-10-23  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
63907c478bd9Sstevel@tonic-gate
63917c478bd9Sstevel@tonic-gate	From Michael Hohmuth <hohmuth@innocent.com>:
63927c478bd9Sstevel@tonic-gate	* acconfig.h (HAVE_USCORE_USCORE_BSS_START_SYMBOL): Added the
63937c478bd9Sstevel@tonic-gate	`undef' entry.
63947c478bd9Sstevel@tonic-gate	(HAVE_EDATA_SYMBOL): Likewise.
63957c478bd9Sstevel@tonic-gate	(HAVE_USCORE_EDATA_SYMBOL): Likewise.
63967c478bd9Sstevel@tonic-gate	* acinclude.m4 (grub_CHECK_USCORE_USCORE_BSS_START_SYMBOL): New
63977c478bd9Sstevel@tonic-gate	function.
63987c478bd9Sstevel@tonic-gate	(grub_CHECK_EDATA_SYMBOL): Likewise.
63997c478bd9Sstevel@tonic-gate	(grub_CHECK_USCORE_EDATA_SYMBOL): Likewise.
64007c478bd9Sstevel@tonic-gate	* configure.in: Check for __bss, edata and _edata.
64017c478bd9Sstevel@tonic-gate	* netboot/Makefile.am (DRIVERS): Deleted ns8390.c and ns8390.h.
64027c478bd9Sstevel@tonic-gate	(libdrivers_a_LIBADD): New variable.
64037c478bd9Sstevel@tonic-gate	($(libdrivers_a_LIBADD)): New target.
64047c478bd9Sstevel@tonic-gate	(nepci_o_CFLAGS): New variable.
64057c478bd9Sstevel@tonic-gate	(ne_o_CFLAGS): Likewise.
64067c478bd9Sstevel@tonic-gate	(wd_o_CFLAGS): Likewise.
64077c478bd9Sstevel@tonic-gate	(t503_o_CFLAGS): Likewise.
64087c478bd9Sstevel@tonic-gate	* netboot/fsys_tftp.c (tftp_close): New function.
64097c478bd9Sstevel@tonic-gate	* stage2/boot.c (load_image): Call grub_close before return.
64107c478bd9Sstevel@tonic-gate	(load_initrd): Likewise.
64117c478bd9Sstevel@tonic-gate	(load_module): Likewise.
64127c478bd9Sstevel@tonic-gate	* stage2/builtins.c (cat_func): Likewise.
64137c478bd9Sstevel@tonic-gate	(chainloader_func): Likewise.
64147c478bd9Sstevel@tonic-gate	(configfile_func): Likewise.
64157c478bd9Sstevel@tonic-gate	(embed_func): Likewise.
64167c478bd9Sstevel@tonic-gate	(find_func): Likewise.
64177c478bd9Sstevel@tonic-gate	(install_func): Set IS_OPEN to the value returned by grub_open.
64187c478bd9Sstevel@tonic-gate	If IS_OPEN is non-zero, call grub_close before return.
64197c478bd9Sstevel@tonic-gate	(setup_func): Call grub_close after grub_open.
64207c478bd9Sstevel@tonic-gate	(testload): Call grub_close before return.
64217c478bd9Sstevel@tonic-gate	* stage2/disk_io.c (fsys_table): Add the `close' member into
64227c478bd9Sstevel@tonic-gate	each of the entries. For TFTP, tftp_close is added, and for the
64237c478bd9Sstevel@tonic-gate	rest, NULL is added.
64247c478bd9Sstevel@tonic-gate	(grub_read): "|" -> "||".
64257c478bd9Sstevel@tonic-gate	(grub_close): New function.
64267c478bd9Sstevel@tonic-gate	* stage2/filesys.h [FSYS_TFTP] (tftp_close): Declared.
64277c478bd9Sstevel@tonic-gate	(struct fsys_entry): Added close_func.
64287c478bd9Sstevel@tonic-gate	* stage2/shared.h (grub_close): Declared.
64297c478bd9Sstevel@tonic-gate	* stage2/stage1_5.c (cmain): Call grub_close after grub_open.
64307c478bd9Sstevel@tonic-gate	* stage2/stage2.c (cmain): Clear ERRNUM after calling
64317c478bd9Sstevel@tonic-gate	find_command to just ignore the error code.
64327c478bd9Sstevel@tonic-gate	Call grub_close after loading the configuration file.
64337c478bd9Sstevel@tonic-gate
64347c478bd9Sstevel@tonic-gate	* stage2/asm.S (main): Clean out the bss.
64357c478bd9Sstevel@tonic-gate
64367c478bd9Sstevel@tonic-gate1999-10-23  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
64377c478bd9Sstevel@tonic-gate
64387c478bd9Sstevel@tonic-gate	* docs/new-grub.texi: Updated.
64397c478bd9Sstevel@tonic-gate	* docs/user-ref.texi: Likewise.
64407c478bd9Sstevel@tonic-gate	* docs/tutorial.texi: Likewise.
64417c478bd9Sstevel@tonic-gate	* docs/prog-ref.texi: Likewise.
64427c478bd9Sstevel@tonic-gate	* docs/appendices.texi: Likewise.
64437c478bd9Sstevel@tonic-gate
64447c478bd9Sstevel@tonic-gate1999-10-22  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
64457c478bd9Sstevel@tonic-gate
64467c478bd9Sstevel@tonic-gate	* docs/prog-ref.texi: New file.
64477c478bd9Sstevel@tonic-gate	* docs/appendices.texi: Likewise.
64487c478bd9Sstevel@tonic-gate	* docs/Makefile.am (UNFINISHED_MANUALS): Added prog-ref.texi and
64497c478bd9Sstevel@tonic-gate	appendices.texi.
64507c478bd9Sstevel@tonic-gate
64517c478bd9Sstevel@tonic-gate1999-10-22  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
64527c478bd9Sstevel@tonic-gate
64537c478bd9Sstevel@tonic-gate	* docs/user-ref.texi: New file.
64547c478bd9Sstevel@tonic-gate	* docs/Makefile.am (UNFINISHED_MANUALS): Added user-red.texi.
64557c478bd9Sstevel@tonic-gate
64567c478bd9Sstevel@tonic-gate1999-10-21  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
64577c478bd9Sstevel@tonic-gate
64587c478bd9Sstevel@tonic-gate	Add BIOS drive remapping support for chain-loading some foolish
64597c478bd9Sstevel@tonic-gate	operating systems.
64607c478bd9Sstevel@tonic-gate
64617c478bd9Sstevel@tonic-gate	* stage2/builtins.c (bios_drive_map): New variable.
64627c478bd9Sstevel@tonic-gate	(boot_func): If KERNEL_TYPE is KERNEL_TYPE_CHAINLOADER, check
64637c478bd9Sstevel@tonic-gate	if BIOS_DRIVE_MAP contains meaningful values. If so, search for
64647c478bd9Sstevel@tonic-gate	SAVED_DRIVE in BIOS_DRIVE_MAP and exchange SAVED_DRIVE with the
64657c478bd9Sstevel@tonic-gate	mapped drive if found. And then call set_int13_handler.
64667c478bd9Sstevel@tonic-gate	(map_func): New function.
64677c478bd9Sstevel@tonic-gate	(builtin_map): New variable.
64687c478bd9Sstevel@tonic-gate	(builtin_table): Added a pointer to BUILTIN_MAP.
64697c478bd9Sstevel@tonic-gate	* stage2/asm.S (ABS): New macro.
64707c478bd9Sstevel@tonic-gate	[!STAGE1_5] (set_int13_handler): New function.
64717c478bd9Sstevel@tonic-gate	[!STAGE1_5] (int13_handler): New interrupt handler for the real
64727c478bd9Sstevel@tonic-gate	mode.
64737c478bd9Sstevel@tonic-gate	[!STAGE1_5] (drive_map): New variable.
64747c478bd9Sstevel@tonic-gate	[!STAGE1_5] (int13_handler_end): New label used for just
64757c478bd9Sstevel@tonic-gate	computing the end address of int13_handler.
64767c478bd9Sstevel@tonic-gate	* stage2/shared.h (DRIVE_MAP_SIZE): New macro.
64777c478bd9Sstevel@tonic-gate	(set_int13_handler): Declared.
64787c478bd9Sstevel@tonic-gate	* grub/asmstub.c (set_int13_handler): New function. Do nothing.
64797c478bd9Sstevel@tonic-gate
64807c478bd9Sstevel@tonic-gate1999-10-20  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
64817c478bd9Sstevel@tonic-gate
64827c478bd9Sstevel@tonic-gate	* stage2/builtins.c (find_func): Print only the device names.
64837c478bd9Sstevel@tonic-gate	* docs/tutorial.texi: New file.
64847c478bd9Sstevel@tonic-gate	* docs/Makefile.am (UNFINISHED_MANUALS): Added tutorial.texi.
64857c478bd9Sstevel@tonic-gate	(%.c.texi): Use $(SHELL) instead of /bin/sh.
64867c478bd9Sstevel@tonic-gate	(%.h.texi): Likewise.
64877c478bd9Sstevel@tonic-gate	(%.S.texi): Likewise.
64887c478bd9Sstevel@tonic-gate
64897c478bd9Sstevel@tonic-gate1999-10-20  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
64907c478bd9Sstevel@tonic-gate
64917c478bd9Sstevel@tonic-gate	* stage2/char_io.c (memcheck): Fix the checks: "<=" -> "<".
64927c478bd9Sstevel@tonic-gate	Reported by Mike Hicks <hick0088@umn.edu>.
64937c478bd9Sstevel@tonic-gate
64947c478bd9Sstevel@tonic-gate1999-10-19  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
64957c478bd9Sstevel@tonic-gate
64967c478bd9Sstevel@tonic-gate	* stage2/builtins.c (find_func): New function.
64977c478bd9Sstevel@tonic-gate	(builtin_find): New variable.
64987c478bd9Sstevel@tonic-gate	(hide_func): Save SAVED_DRIVE and SAVED_PARTITION to TMP_DRIVE
64997c478bd9Sstevel@tonic-gate	and TMP_PARTITION, respectively, and resotre them before return.
65007c478bd9Sstevel@tonic-gate	(unhide_func): Likewise.
65017c478bd9Sstevel@tonic-gate	(setup_func): Likewise. And set SAVED_DRIVE and SAVED_PARTITION
65027c478bd9Sstevel@tonic-gate	instead of CURRENT_DRIVE and CURRENT_PARTITION to IMAGE_DRIVE
65037c478bd9Sstevel@tonic-gate	and IMAGE_PARTITION before running install_func.
65047c478bd9Sstevel@tonic-gate	(builtin_table): Added a pointer to BUILTIN_FIND.
65057c478bd9Sstevel@tonic-gate
65067c478bd9Sstevel@tonic-gate1999-10-19  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
65077c478bd9Sstevel@tonic-gate
65087c478bd9Sstevel@tonic-gate	* docs/Makefile.am (UNFINISHED_MANUALS): New variable.
65097c478bd9Sstevel@tonic-gate	(EXTRA_DIST): Added $(UNFINISHED_MANUALS).
65107c478bd9Sstevel@tonic-gate	* docs/new-grub.texi: New file.
65117c478bd9Sstevel@tonic-gate
65127c478bd9Sstevel@tonic-gate1999-10-19  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
65137c478bd9Sstevel@tonic-gate
65147c478bd9Sstevel@tonic-gate	* docs/Makefile.am (man_MANS): Added mbchk.1.
65157c478bd9Sstevel@tonic-gate	[MAINTAINER_MODE] (mbchk.1): New target.
65167c478bd9Sstevel@tonic-gate	* docs/mbchk.1: New file. Generated by help2man.
65177c478bd9Sstevel@tonic-gate
65187c478bd9Sstevel@tonic-gate1999-10-18  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
65197c478bd9Sstevel@tonic-gate
65207c478bd9Sstevel@tonic-gate	* Makefile.am (SUBDIRS): Added util.
65217c478bd9Sstevel@tonic-gate	* configure.in: Output util/Makefile.
65227c478bd9Sstevel@tonic-gate	* util/Makefile.am: New file.
65237c478bd9Sstevel@tonic-gate	* util/mbchk.c: Likewise.
65247c478bd9Sstevel@tonic-gate	* util/Makefile.in: Likewise. Generated by automake.
65257c478bd9Sstevel@tonic-gate
65267c478bd9Sstevel@tonic-gate1999-10-17  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
65277c478bd9Sstevel@tonic-gate
65287c478bd9Sstevel@tonic-gate	* docs/Makefile.am (.texi): Canceled because the dependecies can
65297c478bd9Sstevel@tonic-gate	be circulated.
65307c478bd9Sstevel@tonic-gate	* stage2/builtins.c (embed_func): Set BUF_TRACK to -1 before
65317c478bd9Sstevel@tonic-gate	writing	the Stage 1.5 to the disk to clear the cache.
65327c478bd9Sstevel@tonic-gate
65337c478bd9Sstevel@tonic-gate1999-10-17  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
65347c478bd9Sstevel@tonic-gate
65357c478bd9Sstevel@tonic-gate	* stage2/boot.c (load_initrd): Change types of *RAMDISK and
65367c478bd9Sstevel@tonic-gate	MOVETO to unsigned long.
65377c478bd9Sstevel@tonic-gate	Apply the macro RAW_ADDR to MOVETO.
65387c478bd9Sstevel@tonic-gate
65397c478bd9Sstevel@tonic-gate1999-10-16  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
65407c478bd9Sstevel@tonic-gate
65417c478bd9Sstevel@tonic-gate	* docs/multiboot.texi: Include the example source files of a
65427c478bd9Sstevel@tonic-gate	Multiboot kernel.
65437c478bd9Sstevel@tonic-gate	* docs/src2texi: New file.
65447c478bd9Sstevel@tonic-gate	* docs/boot.S: Likewise.
65457c478bd9Sstevel@tonic-gate	* docs/multiboot.h: Likewise.
65467c478bd9Sstevel@tonic-gate	* docs/kernel.c: Likewise.
65477c478bd9Sstevel@tonic-gate	* docs/boot.S.texi: Likewise.
65487c478bd9Sstevel@tonic-gate	* docs/multiboot.h.texi: Likewise.
65497c478bd9Sstevel@tonic-gate	* docs/kernel.c.texi: Likewise.
65507c478bd9Sstevel@tonic-gate	* docs/Makefile.am (EXAMPLES): New varilable.
65517c478bd9Sstevel@tonic-gate	(multiboot_TEXINFOS): Likewise.
65527c478bd9Sstevel@tonic-gate	(SRC2TEXI): Likewise.
65537c478bd9Sstevel@tonic-gate	(noinst_SCRIPTS): Added $(SRC2TEXI).
65547c478bd9Sstevel@tonic-gate	(EXTRA_DIST): Added $(EXAMPLES) and $(multiboot_TEXINFOS).
65557c478bd9Sstevel@tonic-gate	(%.c.texi): New target.
65567c478bd9Sstevel@tonic-gate	(%.h.texi): Likewise.
65577c478bd9Sstevel@tonic-gate	(%.S.texi): Likewise.
65587c478bd9Sstevel@tonic-gate
65597c478bd9Sstevel@tonic-gate1999-09-22  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
65607c478bd9Sstevel@tonic-gate
65617c478bd9Sstevel@tonic-gate        * multiboot.texi (BIOS device mapping techniques): New section.
65627c478bd9Sstevel@tonic-gate        Stolen from bios_mapping.txt in grub-0.5.
65637c478bd9Sstevel@tonic-gate        (Data comparison technique): New subsection.
65647c478bd9Sstevel@tonic-gate        (I/O restriction technique): Likewise.
65657c478bd9Sstevel@tonic-gate        (Example OS code): Rewrited from scratch.
65667c478bd9Sstevel@tonic-gate
65677c478bd9Sstevel@tonic-gate1999-09-21  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
65687c478bd9Sstevel@tonic-gate
65697c478bd9Sstevel@tonic-gate        * multiboot.texi: Rename Multiboot Standard to Multiboot
65707c478bd9Sstevel@tonic-gate        Specification and upgrade the version to 0.7. Many cleanups
65717c478bd9Sstevel@tonic-gate        are done.
65727c478bd9Sstevel@tonic-gate
65737c478bd9Sstevel@tonic-gate1999-10-15  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
65747c478bd9Sstevel@tonic-gate
65757c478bd9Sstevel@tonic-gate	* stage2/builtins.c (setup_func): Save CURRENT_DRIVE and
65767c478bd9Sstevel@tonic-gate	CURRENT_PARTITION into IMAGE_DRIVE and IMAGE_PARTITION
65777c478bd9Sstevel@tonic-gate	respectively, and restore them before running install_func.
65787c478bd9Sstevel@tonic-gate	Use DEVICE instead of BUFFER to store the device name.
65797c478bd9Sstevel@tonic-gate	Change each type of STAGE1, STAGE2 and CONFIG_FILE to an array
65807c478bd9Sstevel@tonic-gate	of char.
65817c478bd9Sstevel@tonic-gate	If installing the Stage 1 into a MBR, embed the Stage 1.5 in the
65827c478bd9Sstevel@tonic-gate	sectors right after it.
65837c478bd9Sstevel@tonic-gate	Return the result of install_func instead of zero.
65847c478bd9Sstevel@tonic-gate
65857c478bd9Sstevel@tonic-gate1999-10-14  Pavel Roskin  <pavel_roskin@geocities.com>
65867c478bd9Sstevel@tonic-gate
65877c478bd9Sstevel@tonic-gate	* configure.in: Check for opendisk in libutil.
65887c478bd9Sstevel@tonic-gate	* grub/asmstub.c [__FreeBSD__ || __NetBSD__]: Include
65897c478bd9Sstevel@tonic-gate	<sys/ioctl.h>.
65907c478bd9Sstevel@tonic-gate	[HAVE_OPENDISK]: Include <util.h>.
65917c478bd9Sstevel@tonic-gate	[__NetBSD__] (get_floppy_disk_name): Added support for NetBSD.
65927c478bd9Sstevel@tonic-gate	[__NetBSD__ && HAVE_OPENDISK] (get_ide_disk_name): Likewise.
65937c478bd9Sstevel@tonic-gate	[__NetBSD__ && HAVE_OPENDISK] (get_scsi_disk_name): Likewise.
65947c478bd9Sstevel@tonic-gate	(get_drive_geometry) [__NetBSD__]: Use for NetBSD the same ioctl
65957c478bd9Sstevel@tonic-gate	as for FreeBSD.
65967c478bd9Sstevel@tonic-gate
65977c478bd9Sstevel@tonic-gate1999-10-13  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
65987c478bd9Sstevel@tonic-gate
65997c478bd9Sstevel@tonic-gate	* grub/asmstub.c (assign_device_name): If DEVICE is NULL, set
66007c478bd9Sstevel@tonic-gate	DEVICE_MAP[DRIVE] to NULL.
66017c478bd9Sstevel@tonic-gate	(get_diskinfo): If open or read fails, call assign_device_name
66027c478bd9Sstevel@tonic-gate	to disable accessing the drive DRIVE.
66037c478bd9Sstevel@tonic-gate	(grub_stage2): The device mapping routine is moved to ...
66047c478bd9Sstevel@tonic-gate	(init_device_map): ... here. This new function also reads/writes
66057c478bd9Sstevel@tonic-gate	a device map file. If DEVICE_MAP_FILE already exists, then use
66067c478bd9Sstevel@tonic-gate	the data in it instead of probing devices. Otherwise, guess the
66077c478bd9Sstevel@tonic-gate	map between BIOS drives and OS devices, and write it to the file
66087c478bd9Sstevel@tonic-gate	DEVICE_MAP_FILE if it can be opened.
66097c478bd9Sstevel@tonic-gate	* grub/main.c (device_map_file): New variable.
66107c478bd9Sstevel@tonic-gate	(default_device_map_file): Likewise.
66117c478bd9Sstevel@tonic-gate	(OPT_DEVICE_MAP): New macro.
66127c478bd9Sstevel@tonic-gate	(longopts): Added an entry for "device-map".
66137c478bd9Sstevel@tonic-gate	(usage): Print the usage about --device-map as well.
66147c478bd9Sstevel@tonic-gate	(main): Set DEFAULT_DEVICE_MAP_FILE to DEVICE_MAP_FILE. If
66157c478bd9Sstevel@tonic-gate	OPT_DEVICE_MAP is found, set DEVICE_MAP_FILE to a duplicated
66167c478bd9Sstevel@tonic-gate	string of OPTARG.
66177c478bd9Sstevel@tonic-gate	* stage2/shared.h [GRUB_UTIL] (device_map_file): Declared.
66187c478bd9Sstevel@tonic-gate	* docs/grub.8: Regenerated.
66197c478bd9Sstevel@tonic-gate
66207c478bd9Sstevel@tonic-gate1999-10-13  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
66217c478bd9Sstevel@tonic-gate
66227c478bd9Sstevel@tonic-gate	* stage2/builtins.c (color_func): Do not set NORMAL_COLOR or
66237c478bd9Sstevel@tonic-gate	HIGHLIGHT_COLOR directly, but use NEW_NORMAL_COLOR and
66247c478bd9Sstevel@tonic-gate	NEW_HIGHLIGHT_COLOR as temporary storages instead.
66257c478bd9Sstevel@tonic-gate	New internal function `color_number' is used to convert a
66267c478bd9Sstevel@tonic-gate	symbolic color representation into a color number.
66277c478bd9Sstevel@tonic-gate	Try color_number at first, and if fails, then try
66287c478bd9Sstevel@tonic-gate	safe_parse_maxint for each of NORMAL and HIGHLIGHT.
66297c478bd9Sstevel@tonic-gate	(builtin_color): The long doc does not describe the raw number
66307c478bd9Sstevel@tonic-gate	syntax but the symbolic color name syntax.
66317c478bd9Sstevel@tonic-gate	* docs/grub.texi (Commands): Adjusted to the long doc of
66327c478bd9Sstevel@tonic-gate	BUILTIN_COLOR.
66337c478bd9Sstevel@tonic-gate	* docs/menu.lst: Add examples of "fallback" and "color".
66347c478bd9Sstevel@tonic-gate
66357c478bd9Sstevel@tonic-gate1999-10-13  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
66367c478bd9Sstevel@tonic-gate
66377c478bd9Sstevel@tonic-gate	* stage2/char_io.c [!STAGE1_5] (get_cmdline): If C is a newline
66387c478bd9Sstevel@tonic-gate	or a return, then set LPOS to LLEN and call the function
66397c478bd9Sstevel@tonic-gate	cl_setcpos.
66407c478bd9Sstevel@tonic-gate	[!STAGE1_5] (grub_strncat): New function.
66417c478bd9Sstevel@tonic-gate	* stage2/builtins.c (embed_func): New function.
66427c478bd9Sstevel@tonic-gate	(builtin_embed): New varilable.
66437c478bd9Sstevel@tonic-gate	(setup_func): New function.
66447c478bd9Sstevel@tonic-gate	(builtin_setup): New varilable.
66457c478bd9Sstevel@tonic-gate	(builtin_table): Added a pointer to BUILTIN_EMBED and a pointer
66467c478bd9Sstevel@tonic-gate	to BUILTIN_SETUP.
66477c478bd9Sstevel@tonic-gate	* stage2/shared.h (grub_strncat): Declared.
66487c478bd9Sstevel@tonic-gate
66497c478bd9Sstevel@tonic-gate	* stage2/Makefile.am (stage2_size.h): ../stage2/stage2 ->
66507c478bd9Sstevel@tonic-gate	pre_stage2. Reported by Pavel Roskin.
66517c478bd9Sstevel@tonic-gate
66527c478bd9Sstevel@tonic-gate1999-10-12  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
66537c478bd9Sstevel@tonic-gate
66547c478bd9Sstevel@tonic-gate	From Pavel Roskin:
66557c478bd9Sstevel@tonic-gate	* acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): main -> cmain.
66567c478bd9Sstevel@tonic-gate	* stage2/boot.c (load_image): Only CUR_ADDR, not ENTRY_ADDR
66577c478bd9Sstevel@tonic-gate	should be 1M-aligned for NetBSD. Don't align symbol table on 4k
66587c478bd9Sstevel@tonic-gate	boundaries if the kernel doesn't require it.
66597c478bd9Sstevel@tonic-gate
66607c478bd9Sstevel@tonic-gate1999-10-10  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
66617c478bd9Sstevel@tonic-gate
66627c478bd9Sstevel@tonic-gate	* stage2/asm.S [!STAGE1_5] (start): New label to force ld quiet.
66637c478bd9Sstevel@tonic-gate	[!STAGE1_5] (_start): Likewise.
66647c478bd9Sstevel@tonic-gate	* stage2/builtins.c (install_func): Rewritten heavily almost
66657c478bd9Sstevel@tonic-gate	from scratch. As the blocklist was moved to the first sector of
66667c478bd9Sstevel@tonic-gate	Stage 2, always write sectors of Stage 2 to the disk.
66677c478bd9Sstevel@tonic-gate	* stage1/stage1.h (STAGE1_STAGE2_SECTOR): 0x40 -> 0x41.
66687c478bd9Sstevel@tonic-gate	(STAGE1_STAGE2_ADDRESS): 0x44 -> 0x45.
66697c478bd9Sstevel@tonic-gate	(STAGE1_STAGE2_SEGMENT): 0x46 -> 0x47.
66707c478bd9Sstevel@tonic-gate	(STAGE1_BOOT_DRIVE): 0x3f -> 0x40.
66717c478bd9Sstevel@tonic-gate
66727c478bd9Sstevel@tonic-gate1999-10-09  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
66737c478bd9Sstevel@tonic-gate
66747c478bd9Sstevel@tonic-gate	Stage1 supports both the CHS mode and the LBA mode.
66757c478bd9Sstevel@tonic-gate
66767c478bd9Sstevel@tonic-gate	* stage1/Makefile.am (nodist_pkgdata_DATA): Removed stage1_lba.
66777c478bd9Sstevel@tonic-gate	(BUILT_SOURCES): Deleted.
66787c478bd9Sstevel@tonic-gate	(CLEANFILES): Likewise.
66797c478bd9Sstevel@tonic-gate	(noinst_PROGRAMS): Removed stage1_lba.exec.
66807c478bd9Sstevel@tonic-gate	(stage1_exec_SOURCES): Removed stage2_size.h.
66817c478bd9Sstevel@tonic-gate	(stage2_size.h): Deleted.
66827c478bd9Sstevel@tonic-gate	(stage1_lba_exec_SOURCES): Likewise.
66837c478bd9Sstevel@tonic-gate	* stage1/stage1.S: Rewritten from scratch.
66847c478bd9Sstevel@tonic-gate	* stage1/stage1_lba.S: Deleted.
66857c478bd9Sstevel@tonic-gate	* stage1/stage1.h (COMPAT_VERSION_MAJOR): Set to 3.
66867c478bd9Sstevel@tonic-gate	(COMPAT_VERSION_MINOR): Set to 0.
66877c478bd9Sstevel@tonic-gate	(STAGE1_VER_MAJ_OFFS): Set to 0x3e.
66887c478bd9Sstevel@tonic-gate	(STAGE1_FIRSTLIST): Deleted.
66897c478bd9Sstevel@tonic-gate	(STAGE1_INSTALLSEG): Likewise.
66907c478bd9Sstevel@tonic-gate	(STAGE1_INSTALLADDR): Likewise.
66917c478bd9Sstevel@tonic-gate	(STAGE1_MINPARAMSIZE): Likewise.
66927c478bd9Sstevel@tonic-gate	(STAGE1_LISTSIZE): Likewise.
66937c478bd9Sstevel@tonic-gate	(STAGE1_ID_OFFSET): Likewise.
66947c478bd9Sstevel@tonic-gate	(STAGE1_ID_CHS): Likewise.
66957c478bd9Sstevel@tonic-gate	(STAGE1_ID_LBA): Likewise.
66967c478bd9Sstevel@tonic-gate	(STAGE1_STAGE2_SECTOR): New macro.
66977c478bd9Sstevel@tonic-gate	(STAGE1_STAGE2_ADDRESS): Likewise.
66987c478bd9Sstevel@tonic-gate	(STAGE1_STAGE2_SEGMENT): Likewise.
66997c478bd9Sstevel@tonic-gate	(STAGE1_BOOT_DRIVE): Likewise.
67007c478bd9Sstevel@tonic-gate	* stage2/start.S: New file.
67017c478bd9Sstevel@tonic-gate	* stage2/Makefile.am (noinst_DATA): New variable.
67027c478bd9Sstevel@tonic-gate	(CLEANFILES): Set to "$(nodist_pkgdata_DATA) $(noinst_DATA)
67037c478bd9Sstevel@tonic-gate	$(BUILT_SOURCES)".
67047c478bd9Sstevel@tonic-gate	(noinst_PROGRAMS): Removed stage2.exec, and added start.exec and
67057c478bd9Sstevel@tonic-gate	pre_stage2.exec.
67067c478bd9Sstevel@tonic-gate	(STAGE2_LINK): Deleted.
67077c478bd9Sstevel@tonic-gate	(PRE_STAGE2_LINK): New variable.
67087c478bd9Sstevel@tonic-gate	(START_LINK): Likewise.
67097c478bd9Sstevel@tonic-gate	(stage2_exec_SOURCES): Deleted.
67107c478bd9Sstevel@tonic-gate	(stage2_exec_CFLAGS): Likewise.
67117c478bd9Sstevel@tonic-gate	(stage2_exec_LDFLAGS): Likewise.
67127c478bd9Sstevel@tonic-gate	[NETBOOT_SUPPORT] (stage2_exec_LDADD): Likewise.
67137c478bd9Sstevel@tonic-gate	(pre_stage2_exec_SOURCES): New variable.
67147c478bd9Sstevel@tonic-gate	(pre_stage2_exec_CFLAGS): Likewise.
67157c478bd9Sstevel@tonic-gate	(pre_stage2_exec_LDFLAGS): Likewise.
67167c478bd9Sstevel@tonic-gate	[NETBOOT_SUPPORT] (pre_stage2_exec_LDADD): Likewise.
67177c478bd9Sstevel@tonic-gate	(BUILT_SOURCES): Likewise.
67187c478bd9Sstevel@tonic-gate	(start_exec_SOURCES): Likewise.
67197c478bd9Sstevel@tonic-gate	(start_exec_CFLAGS): Likewise.
67207c478bd9Sstevel@tonic-gate	(start_exec_LDFLAGS): Likewise.
67217c478bd9Sstevel@tonic-gate	(start_exec_DEPENDENCIES): Likewise.
67227c478bd9Sstevel@tonic-gate	(stage2_size.h): New rule.
67237c478bd9Sstevel@tonic-gate	(stage2): Likewise.
67247c478bd9Sstevel@tonic-gate	(e2fs_stage1_5_exec_SOURCES): Added start.S.
67257c478bd9Sstevel@tonic-gate	(fat_stage1_5_exec_SOURCES): Likewise.
67267c478bd9Sstevel@tonic-gate	(ffs_stage1_5_exec_SOURCES): Likewise.
67277c478bd9Sstevel@tonic-gate	(minix_stage1_5_exec_SOURCES): Likewise.
67287c478bd9Sstevel@tonic-gate	* stage2/asm.S (start): Renamed to ...
67297c478bd9Sstevel@tonic-gate	(main): ... this.
67307c478bd9Sstevel@tonic-gate	[STAGE1_5] (main): Jump to (codestart - EXT_C(main) + 0x2200)
67317c478bd9Sstevel@tonic-gate	instead of (codestart - EXT_C(start) + 0x2000).
67327c478bd9Sstevel@tonic-gate	[!STAGE1_5] (main): Jump to (codestart - EXT_C(main) + 0x8200)
67337c478bd9Sstevel@tonic-gate	instead of (codestart - EXT_C(start) + 0x8000).
67347c478bd9Sstevel@tonic-gate	[STAGE1_5] (chain_stage2): Use main instead of start.
67357c478bd9Sstevel@tonic-gate	* stage2/shared.h (BOOTSEC_LISTSIZE): New macro.
67367c478bd9Sstevel@tonic-gate	* stage2/stage1_5.c: Change the second argument for chain_stage2
67377c478bd9Sstevel@tonic-gate	to 0x8200.
67387c478bd9Sstevel@tonic-gate
67397c478bd9Sstevel@tonic-gate1999-10-08  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
67407c478bd9Sstevel@tonic-gate
67417c478bd9Sstevel@tonic-gate	* configure.in (--with-binutils): New option to specify a
67427c478bd9Sstevel@tonic-gate	directory to find binutils.
67437c478bd9Sstevel@tonic-gate	(CFLAGS): If WITH_BINUTILS is not empty, added the option `-B'.
67447c478bd9Sstevel@tonic-gate	(LD): Do not check for this. We don't use ld directly anyway.
67457c478bd9Sstevel@tonic-gate	(RANLIB): If WITH_BINUTILS is not empty, search the directory
67467c478bd9Sstevel@tonic-gate	WITH_BINUTILS first.
67477c478bd9Sstevel@tonic-gate	(OBJCOPY): Likewise.
67487c478bd9Sstevel@tonic-gate	* acinclude.m4 (grub_ASM_USCORE): Add CFLAGS into
67497c478bd9Sstevel@tonic-gate	AC_TRY_COMMAND.
67507c478bd9Sstevel@tonic-gate	(grub_ASM_ADDR32): Likewise.
67517c478bd9Sstevel@tonic-gate	(grub_ASM_PREFIX_REQUIREMENT): Likewise.
67527c478bd9Sstevel@tonic-gate	(grub_PROG_OBJCOPY_ABSOLUTE): Use CC instead of LD.
67537c478bd9Sstevel@tonic-gate
67547c478bd9Sstevel@tonic-gate1999-10-04  Pavel Roskin  <pavel_roskin@geocities.com>
67557c478bd9Sstevel@tonic-gate
67567c478bd9Sstevel@tonic-gate	* stage2/freebsd.h (struct bootinfo): New member, bi_bios_dev.
67577c478bd9Sstevel@tonic-gate	* stage2/boot.c (bsd_boot): Set BI.BI_BIOS_DEV to SAVED_DRIVE.
67587c478bd9Sstevel@tonic-gate
67597c478bd9Sstevel@tonic-gate1999-10-04  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
67607c478bd9Sstevel@tonic-gate
67617c478bd9Sstevel@tonic-gate	From Pavel Roskin:
67627c478bd9Sstevel@tonic-gate	* docs/grub.texi: Fix typos.
67637c478bd9Sstevel@tonic-gate	* stage2/builtins.c (install_func): Reformat the warning message
67647c478bd9Sstevel@tonic-gate	about the option `d'.
67657c478bd9Sstevel@tonic-gate
67667c478bd9Sstevel@tonic-gate1999-10-03  Gordon Matzigkeit  <gord@fig.org>
67677c478bd9Sstevel@tonic-gate
67687c478bd9Sstevel@tonic-gate	* stage2/builtins.c (install_func): Fix check for the Stage 2 id.
67697c478bd9Sstevel@tonic-gate	From Pavel Roskin.
67707c478bd9Sstevel@tonic-gate
67717c478bd9Sstevel@tonic-gate	* debian/Makefile.am (EXTRA_DIST): Add postinst and prerm.
67727c478bd9Sstevel@tonic-gate
67737c478bd9Sstevel@tonic-gate1999-10-03  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
67747c478bd9Sstevel@tonic-gate
67757c478bd9Sstevel@tonic-gate	* stage2/builtins.c (boot_func): Pass MBI.CMDLINE instead of ARG
67767c478bd9Sstevel@tonic-gate	to bsd_boot.
67777c478bd9Sstevel@tonic-gate
67787c478bd9Sstevel@tonic-gate1999-10-03  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
67797c478bd9Sstevel@tonic-gate
67807c478bd9Sstevel@tonic-gate	* stage2/gunzip.c (gunzip_test_header): Check if CURRENT_DRIVE
67817c478bd9Sstevel@tonic-gate	is 0x20 instead of if the fs type is TFTP, because GRUB does not
67827c478bd9Sstevel@tonic-gate	mount CURRENT_DRIVE when using a block file. Reported by Pavel
67837c478bd9Sstevel@tonic-gate	Roskin.
67847c478bd9Sstevel@tonic-gate
67857c478bd9Sstevel@tonic-gate1999-10-02  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
67867c478bd9Sstevel@tonic-gate
67877c478bd9Sstevel@tonic-gate	* stage2/builtins.c (cat_func): Do not read the whole of a file
67887c478bd9Sstevel@tonic-gate	at one time. Instead, repeat reading one byte and print it on
67897c478bd9Sstevel@tonic-gate	the screen.
67907c478bd9Sstevel@tonic-gate	* docs/grub.texi (Command line): List the available key
67917c478bd9Sstevel@tonic-gate	bindings.
67927c478bd9Sstevel@tonic-gate	(Commands): Added descriptions about "geometry", "device" and
67937c478bd9Sstevel@tonic-gate	"cat".
67947c478bd9Sstevel@tonic-gate
67957c478bd9Sstevel@tonic-gate1999-10-02  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
67967c478bd9Sstevel@tonic-gate
67977c478bd9Sstevel@tonic-gate	Now it is possible to build the grub shell with old BSD curses.
67987c478bd9Sstevel@tonic-gate
67997c478bd9Sstevel@tonic-gate	* stage2/shared.h [!A_NORMAL] (A_NORMAL): Set to zero.
68007c478bd9Sstevel@tonic-gate	[!A_REVERSE && A_STANDOUT] (A_REVERSE): Set to A_STANDOUT.
68017c478bd9Sstevel@tonic-gate	[!A_REVERSE && !A_STANDOUT] (A_REVERSE): Set to zero.
68027c478bd9Sstevel@tonic-gate
68037c478bd9Sstevel@tonic-gate1999-09-30  Pavel Roskin  <pavel_roskin@geocities.com>
68047c478bd9Sstevel@tonic-gate
68057c478bd9Sstevel@tonic-gate	* stage2/disk_io.c (set_bootdev): Mask 0x7F instead of 0x79 of
68067c478bd9Sstevel@tonic-gate	the device number.
68077c478bd9Sstevel@tonic-gate
68087c478bd9Sstevel@tonic-gate1999-10-01  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
68097c478bd9Sstevel@tonic-gate
68107c478bd9Sstevel@tonic-gate	* configure.in (--without-curses): New option. If WITH_CURSES is
68117c478bd9Sstevel@tonic-gate	no, do not check for curses.
68127c478bd9Sstevel@tonic-gate
68137c478bd9Sstevel@tonic-gate	* stage2/disk_io.c (set_device) [STAGE1_5]: Change the type of
68147c478bd9Sstevel@tonic-gate	DEV to unsigned long.
68157c478bd9Sstevel@tonic-gate	* stage2/builtins.c (install_func): Always check for the Stage 2
68167c478bd9Sstevel@tonic-gate	id in FILE.
68177c478bd9Sstevel@tonic-gate	Reported by Pavel Roskin.
68187c478bd9Sstevel@tonic-gate
68197c478bd9Sstevel@tonic-gate1999-09-30  Gordon Matzigkeit  <gord@fig.org>
68207c478bd9Sstevel@tonic-gate
68217c478bd9Sstevel@tonic-gate	* debian/postinst: New file to call install-info.
68227c478bd9Sstevel@tonic-gate	* debian/prerm: Likewise.
68237c478bd9Sstevel@tonic-gate	* debian/rules (binary-arch): Add postinst and prerm, compress the
68247c478bd9Sstevel@tonic-gate	info files, and call dpkg-shlibdeps.
68257c478bd9Sstevel@tonic-gate
68267c478bd9Sstevel@tonic-gate	* stage2/cmdline.c (skip_to): Restructure, and count tabs as
68277c478bd9Sstevel@tonic-gate	whitespace.
68287c478bd9Sstevel@tonic-gate	(find_command): Likewise.
68297c478bd9Sstevel@tonic-gate
68307c478bd9Sstevel@tonic-gate1999-09-30  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
68317c478bd9Sstevel@tonic-gate
68327c478bd9Sstevel@tonic-gate	* grub/getopt.c: Moved to ...
68337c478bd9Sstevel@tonic-gate	* lib/getopt.c: ... here.
68347c478bd9Sstevel@tonic-gate	* grub/getopt1.c: Moved to ...
68357c478bd9Sstevel@tonic-gate	* lib/getopt1.c: ... here.
68367c478bd9Sstevel@tonic-gate	* grub/getopt.h: Moved to ...
68377c478bd9Sstevel@tonic-gate	* lib/getopt.h: ... here.
68387c478bd9Sstevel@tonic-gate	* grub/Makefile.am (AM_CFLAGS): Added -I$(top_srcdir)/lib.
68397c478bd9Sstevel@tonic-gate	(grub_LDADD): Added ../lib/libcommon.a.
68407c478bd9Sstevel@tonic-gate	* lib/Makefile.am: New file.
68417c478bd9Sstevel@tonic-gate	* Makefile.am (SUBDIRS): Added lib.
68427c478bd9Sstevel@tonic-gate	* configure.in: lib/Makefile is added into the arguments for
68437c478bd9Sstevel@tonic-gate	AC_OUTPUT.
68447c478bd9Sstevel@tonic-gate
68457c478bd9Sstevel@tonic-gate1999-09-30  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
68467c478bd9Sstevel@tonic-gate
68477c478bd9Sstevel@tonic-gate	From Pavel Roskin:
68487c478bd9Sstevel@tonic-gate	* stage2/defs.h (time_t): Renamed to ...
68497c478bd9Sstevel@tonic-gate	(mach_time_t): ... this.
68507c478bd9Sstevel@tonic-gate	(daddr_t): Renamed to ...
68517c478bd9Sstevel@tonic-gate	(mach_daddr_t): ... this.
68527c478bd9Sstevel@tonic-gate	(uid_t): Renamed to ...
68537c478bd9Sstevel@tonic-gate	(mach_uid_t): ... this.
68547c478bd9Sstevel@tonic-gate	(gid_t): Renamed to ...
68557c478bd9Sstevel@tonic-gate	(mach_gid_t): ... this.
68567c478bd9Sstevel@tonic-gate	(ino_t): Renamed to ...
68577c478bd9Sstevel@tonic-gate	(mach_ino_t): ... this.
68587c478bd9Sstevel@tonic-gate	* stage2/disk_inode.h (FFS_MAX_FASTLINK_SIZE): Use mach_daddr_t
68597c478bd9Sstevel@tonic-gate	instead of daddr_t.
68607c478bd9Sstevel@tonic-gate	(struct icommon): Use mach_uid_t, mach_gid_t, mach_time_t and
68617c478bd9Sstevel@tonic-gate	mach_daddr_t, instead of uid_t, gid_t, time_t and daddr_t.
68627c478bd9Sstevel@tonic-gate	* stage2/fs.h (BBLOCK): Use mach_daddr_t instead of addr_t.
68637c478bd9Sstevel@tonic-gate	(SBLOCK): Likewise.
68647c478bd9Sstevel@tonic-gate	(ROOTINO): Use mach_ino_t instead of ino_t.
68657c478bd9Sstevel@tonic-gate	(struct fs): Use mach_daddr_t and mach_time_t instead of daddr_t
68667c478bd9Sstevel@tonic-gate	and time_t.
68677c478bd9Sstevel@tonic-gate	(struct cg): Use mach_time_t instead of time_t.
68687c478bd9Sstevel@tonic-gate	(struct ocg): Likewise.
68697c478bd9Sstevel@tonic-gate	(cgbase): Use mach_daddr_t instead of daddr_t.
68707c478bd9Sstevel@tonic-gate	(itod): Likewise.
68717c478bd9Sstevel@tonic-gate
68727c478bd9Sstevel@tonic-gate1999-09-30  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
68737c478bd9Sstevel@tonic-gate
68747c478bd9Sstevel@tonic-gate	* acinclude.m4 (grub_CHECK_START_SYMBOL): Use AC_TRY_LINK
68757c478bd9Sstevel@tonic-gate	instead of AC_TRY_COMMAND.
68767c478bd9Sstevel@tonic-gate	(grub_CHECK_USCORE_START_SYMBOL): Likewise.
68777c478bd9Sstevel@tonic-gate	(grub_CHECK_END_SYMBOL): Likewise.
68787c478bd9Sstevel@tonic-gate	(grub_CHECK_USCORE_END_SYMBOL): Likewise.
68797c478bd9Sstevel@tonic-gate
68807c478bd9Sstevel@tonic-gate	* stage2/disk_io.c (set_device) [!STAGE1_5]: Use RESULT instead
68817c478bd9Sstevel@tonic-gate	of RETVAL to check if the analysis succeeds.
68827c478bd9Sstevel@tonic-gate
68837c478bd9Sstevel@tonic-gate1999-09-29  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
68847c478bd9Sstevel@tonic-gate
68857c478bd9Sstevel@tonic-gate	* stage2/builtins.c (install_func): If the Stage 2 id in FILE is
68867c478bd9Sstevel@tonic-gate	not STAGE2_ID_STAGE2, set IS_STAGE1_5 to 1, otherwise to 0.
68877c478bd9Sstevel@tonic-gate	Use CONFIG_FILE_LOCATION to point to the location of the name of
68887c478bd9Sstevel@tonic-gate	a configuration file in Stage 2.
68897c478bd9Sstevel@tonic-gate	If the option `p' is present and IS_STAGE1_5 is non-zero, reset
68907c478bd9Sstevel@tonic-gate	the device information in CONFIG_FILE_LOCATION.
68917c478bd9Sstevel@tonic-gate	(cat_func): New function.
68927c478bd9Sstevel@tonic-gate	(builtin_cat): New variable.
68937c478bd9Sstevel@tonic-gate	(builtin_table): Added a pointer to BUILTIN_CAT.
68947c478bd9Sstevel@tonic-gate	(geometry_func): Call real_open_partition with the argument 1
68957c478bd9Sstevel@tonic-gate	after printing out the drive information.
68967c478bd9Sstevel@tonic-gate	* stage2/disk_io.c (real_open_partition): Made global.
68977c478bd9Sstevel@tonic-gate	[!STAGE1_5] (print_completions): In the command completion and
68987c478bd9Sstevel@tonic-gate	the filename completion, print a newline at the last if
68997c478bd9Sstevel@tonic-gate	IS_COMPLETION is zero.
69007c478bd9Sstevel@tonic-gate	* stage2/shared.h (real_open_partition): Declared.
69017c478bd9Sstevel@tonic-gate	* stage2/fsys_ext2fs.c (ext2fs_dir): Do not print a newline even
69027c478bd9Sstevel@tonic-gate	if PRINT_POSSIBILITIES is less than zero.
69037c478bd9Sstevel@tonic-gate	* stage2/fsys_ffs.c (ffs_dir): Likewise.
69047c478bd9Sstevel@tonic-gate	* stage2/fsys_fat.c (fat_dir): Likewise.
69057c478bd9Sstevel@tonic-gate	* stage2/fsys_minix.c (minix_dir): Likewise.
69067c478bd9Sstevel@tonic-gate
69077c478bd9Sstevel@tonic-gate1999-09-29  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
69087c478bd9Sstevel@tonic-gate
69097c478bd9Sstevel@tonic-gate	* stage1/stage1.S [!FFS_STAGE1_5] (blocklist_default_len): Do
69107c478bd9Sstevel@tonic-gate	not divide the size by 512, but shift the size to the right by
69117c478bd9Sstevel@tonic-gate	9 instead, because of a binutils-2.9.1.0.x bug.
69127c478bd9Sstevel@tonic-gate	* stage1/stage1_lba.S [!FFS_STAGE1_5] (blocklist_default_len):
69137c478bd9Sstevel@tonic-gate	Likewise.
69147c478bd9Sstevel@tonic-gate	* stage2/builtins.c (install_func): When installing Stage 1.5,
69157c478bd9Sstevel@tonic-gate	if set_device returns NULL, then set CURRENT_DRIVE to 0xFF and
69167c478bd9Sstevel@tonic-gate	CONFIG_FILE to PTR.
69177c478bd9Sstevel@tonic-gate
69187c478bd9Sstevel@tonic-gate1999-09-26  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
69197c478bd9Sstevel@tonic-gate
69207c478bd9Sstevel@tonic-gate	* stage2/char_io.c [!STAGE1_5] (get_cmdline): In cl_insert, call
69217c478bd9Sstevel@tonic-gate	cl_setcpos before printing BUF, even if LPOS is equal to LLEN.
69227c478bd9Sstevel@tonic-gate	In the completion, if RET is zero, do not call cl_init.
69237c478bd9Sstevel@tonic-gate	* stage2/disk_io.c [!STAGE1_5] (print_completions): In the
69247c478bd9Sstevel@tonic-gate	filename completion, if UNIQUE is 1, check if UNIQUE_STRING is a
69257c478bd9Sstevel@tonic-gate	directory or not. If so, append '/' to BUF.
69267c478bd9Sstevel@tonic-gate	In the partition completion, if IS_COMPLETION is non-zero and
69277c478bd9Sstevel@tonic-gate	*UNIQUE_STRING is not NUL, copy UNIQUE_STRING to PTR. Do not
69287c478bd9Sstevel@tonic-gate	append '/'.
69297c478bd9Sstevel@tonic-gate	(real_open_partition) [!STAGE1_5]: If DO_COMPRESSION is non-zero,
69307c478bd9Sstevel@tonic-gate	call print_a_completion.
69317c478bd9Sstevel@tonic-gate	(check_BSD_parts) [!STAGE1_5]: Likewise.
69327c478bd9Sstevel@tonic-gate	[!STAGE1_5] (print_a_completion): Ignore NAME if it is "." or
69337c478bd9Sstevel@tonic-gate	"..".
69347c478bd9Sstevel@tonic-gate
69357c478bd9Sstevel@tonic-gate1999-09-25  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
69367c478bd9Sstevel@tonic-gate
69377c478bd9Sstevel@tonic-gate	* acinclude.m4 (grub_CHECK_USCORE_END_SYMBOL): Do not call
69387c478bd9Sstevel@tonic-gate	AC_DEFINE within AC_CACHE_VAL. Call it after AC_CACHE_VAL.
69397c478bd9Sstevel@tonic-gate	* stage2/Makefile.am (STAGE1_5_COMPILE): Do not define
69407c478bd9Sstevel@tonic-gate	CONFIG_FILE_ASM.
69417c478bd9Sstevel@tonic-gate	* stage2/asm.S (config_file) [STAGE1_5]: Set the first 4 bytes
69427c478bd9Sstevel@tonic-gate	to 0xffffffff and the following to "/boot/grub/stage2".
69437c478bd9Sstevel@tonic-gate	(config_file) [!STAGE1_5]: Set to "/boot/grub/menu.lst".
69447c478bd9Sstevel@tonic-gate	* stage2/builtins.c (install_func): Read a Stage 2 before
69457c478bd9Sstevel@tonic-gate	handling the `p' option.
69467c478bd9Sstevel@tonic-gate	If the `configfile' option is present and FILE is a Stage 2,
69477c478bd9Sstevel@tonic-gate	translate the device name to the internal device representation
69487c478bd9Sstevel@tonic-gate	and copy the result to STR.
69497c478bd9Sstevel@tonic-gate	* stage2/disk_io.c [STAGE1_5] (sane_partition): Eliminated.
69507c478bd9Sstevel@tonic-gate	[STAGE1_5] (incomplete): Likewise.
69517c478bd9Sstevel@tonic-gate	[STAGE1_5] (disk_choice): Likewise.
69527c478bd9Sstevel@tonic-gate	[STAGE1_5] (part_choice): Likewise.
69537c478bd9Sstevel@tonic-gate	(set_device) [STAGE1_5]: Assume that the first 4 bytes of DEVICE
69547c478bd9Sstevel@tonic-gate	is a device number. Set DRIVE to the forth byte of DEV and
69557c478bd9Sstevel@tonic-gate	PARTITION to the first 3 bytes of DEV. If DRIVE is 0xFF, set
69567c478bd9Sstevel@tonic-gate	CURRENT_DRIVE and CURRENT_PARTITION to SAVED_DRIVE and
69577c478bd9Sstevel@tonic-gate	SAVED_PARTITION, respectively. Otherwise set to DRIVE and
69587c478bd9Sstevel@tonic-gate	PARTITION, respectively.
69597c478bd9Sstevel@tonic-gate	(setup_part) [STAGE1_5]: Always call set_device.
69607c478bd9Sstevel@tonic-gate
69617c478bd9Sstevel@tonic-gate1999-09-24  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
69627c478bd9Sstevel@tonic-gate
69637c478bd9Sstevel@tonic-gate	* acinclude.m4 (grub_CHECK_END_SYMBOL): Add a missing
69647c478bd9Sstevel@tonic-gate	double-quote. Reported by Johannes Kroeger
69657c478bd9Sstevel@tonic-gate	<hanne@squirrel.owl.de>.
69667c478bd9Sstevel@tonic-gate
69677c478bd9Sstevel@tonic-gate1999-09-14  Gordon Matzigkeit  <gord@fig.org>
69687c478bd9Sstevel@tonic-gate
69697c478bd9Sstevel@tonic-gate	* stage1/stage1.S (blocklist_default_start): New label for default
69707c478bd9Sstevel@tonic-gate	blocklist start sector.
69717c478bd9Sstevel@tonic-gate	(blocklist_default_len): New label for default blocklist length.
69727c478bd9Sstevel@tonic-gate	(blocklist_default_seg): New label for default blocklist segment.
69737c478bd9Sstevel@tonic-gate	* stage1/stage1_lba.S (blocklist_default_start): Likewise.
69747c478bd9Sstevel@tonic-gate	(blocklist_default_len): Likewise.
69757c478bd9Sstevel@tonic-gate	(blocklist_default_seg): Likewise.
69767c478bd9Sstevel@tonic-gate
69777c478bd9Sstevel@tonic-gate1999-09-23  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
69787c478bd9Sstevel@tonic-gate
69797c478bd9Sstevel@tonic-gate	* acinclude.m4 (grub_ASM_ADDR32): First, create a template
69807c478bd9Sstevel@tonic-gate	source file "conftest.s.in", and then, replace @ADDR32@ with
69817c478bd9Sstevel@tonic-gate	"addr32" if GRUB_CV_ASM_PREFIX_REQUIREMENT is yes, otherwise,
69827c478bd9Sstevel@tonic-gate	replace it with "addr32;". Reported by John Tobey
69837c478bd9Sstevel@tonic-gate	<spam@john-edwin-tobey.org>.
69847c478bd9Sstevel@tonic-gate
69857c478bd9Sstevel@tonic-gate1999-09-23  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
69867c478bd9Sstevel@tonic-gate
69877c478bd9Sstevel@tonic-gate	* stage2/builtins.c (debug_fs_print_func): Renamed to ...
69887c478bd9Sstevel@tonic-gate	(disk_read_print_func): ... this.
69897c478bd9Sstevel@tonic-gate	(fstest_func): Use DISK_READ_HOOK instead of DEBUG_FS.
69907c478bd9Sstevel@tonic-gate	(install_func): Rename debug_fs_savesect_func to
69917c478bd9Sstevel@tonic-gate	disk_read_savesect_func.
69927c478bd9Sstevel@tonic-gate	Rename debug_fs_blocklist_func to disk_read_blocklist_func.
69937c478bd9Sstevel@tonic-gate	Use DISK_READ_HOOK instead of DEBUG_FS.
69947c478bd9Sstevel@tonic-gate	(testload_func): Use DISK_READ_HOOK instead of DEBUG_FS.
69957c478bd9Sstevel@tonic-gate	* stage2/disk_io.c [!STAGE1_5] (debug_fs): Renamed to ...
69967c478bd9Sstevel@tonic-gate	[!STAGE1_5] (disk_read_hook): ... this.
69977c478bd9Sstevel@tonic-gate	[!STAGE1_5] (debug_fs_func): Renamed to ...
69987c478bd9Sstevel@tonic-gate	[!STAGE1_5] (disk_read_func): ... this.
69997c478bd9Sstevel@tonic-gate	(rawread) [!STAGE1_5]: Use DISK_READ_HOOK and DISK_READ_FUNC
70007c478bd9Sstevel@tonic-gate	instead	of DEBUG_FS and DEBUG_FS_FUNC.
70017c478bd9Sstevel@tonic-gate	(grub_read) [!STAGE1_5]: Likewise.
70027c478bd9Sstevel@tonic-gate	(devread) [!STAGE1_5]: Use DISK_READ_HOOK instead of DEBUG_FS.
70037c478bd9Sstevel@tonic-gate	* stage2/fsys_ext2fs.c (ext2fs_read) [!STAGE1_5]: Use
70047c478bd9Sstevel@tonic-gate	DISK_READ_HOOK and DISK_READ_FUNC instead of DEBUG_FS and
70057c478bd9Sstevel@tonic-gate	DEBUG_FS_FUNC.
70067c478bd9Sstevel@tonic-gate	* stage2/fsys_ffs.c (ffs_read) [!STAGE1_5]: Likewise.
70077c478bd9Sstevel@tonic-gate	* stage2/fsys_minix.c (minix_read) [!STAGE1_5]: Likewise.
70087c478bd9Sstevel@tonic-gate	* stage2/shared.h [!STAGE1_5] (debug_fs): Renamed to ...
70097c478bd9Sstevel@tonic-gate	[!STAGE1_5] (disk_read_hook): ... this.
70107c478bd9Sstevel@tonic-gate	[!STAGE1_5] (debug_fs_func): Renamed to ...
70117c478bd9Sstevel@tonic-gate	[!STAGE1_5] (disk_read_func): ... this.
70127c478bd9Sstevel@tonic-gate	* docs/grub.texi: Likewise, replace debug_fs and debug_fs_func
70137c478bd9Sstevel@tonic-gate	with disk_read_hook and disk_read_func, respectively.
70147c478bd9Sstevel@tonic-gate
70157c478bd9Sstevel@tonic-gate1999-09-23  Pavel Roskin  <pavel_roskin@geocities.com>
70167c478bd9Sstevel@tonic-gate
70177c478bd9Sstevel@tonic-gate	* stage2/builtins.c (install_func): New local function,
70187c478bd9Sstevel@tonic-gate	debug_fs_savesect_func. Use debug_fs_savesect_func to determine
70197c478bd9Sstevel@tonic-gate	the first sector of Stage2. Write Stage 1 after patching Stage
70207c478bd9Sstevel@tonic-gate	2.
70217c478bd9Sstevel@tonic-gate
70227c478bd9Sstevel@tonic-gate1999-09-22  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
70237c478bd9Sstevel@tonic-gate
70247c478bd9Sstevel@tonic-gate	* acinclude.m4 (grub_ASM_USCORE): Do not define HAVE_ASM_USCORE
70257c478bd9Sstevel@tonic-gate	within AC_CACHE_VAL. Define it after AC_CACHE_VAL if
70267c478bd9Sstevel@tonic-gate	GRUB_CV_ASM_USCORE is yes.
70277c478bd9Sstevel@tonic-gate
70287c478bd9Sstevel@tonic-gate1999-09-20  Edmund GRIMLEY EVANS  <edmundo@rano.demon.co.uk>
70297c478bd9Sstevel@tonic-gate
70307c478bd9Sstevel@tonic-gate	* netboot/3c59x.c: INCLUDE_3c59x is replaced by INCLUDE_3C59X
70317c478bd9Sstevel@tonic-gate 	throughout.
70327c478bd9Sstevel@tonic-gate	* netboot/config.c: Likewise.
70337c478bd9Sstevel@tonic-gate	* netboot/io.h (__INS): New macro.
70347c478bd9Sstevel@tonic-gate	(__OUTS): Likewise.
70357c478bd9Sstevel@tonic-gate	(outl): Likewise.
70367c478bd9Sstevel@tonic-gate	(inl): Likewise.
70377c478bd9Sstevel@tonic-gate	(outl_p): Likewise.
70387c478bd9Sstevel@tonic-gate	(inl_p): Likewise.
70397c478bd9Sstevel@tonic-gate	Call __INS with the argument `b', with `w' and with `l' to
70407c478bd9Sstevel@tonic-gate	define insb, insw and insl, respectively. Likewise, Call __OUTS
70417c478bd9Sstevel@tonic-gate	with `b', with `w' and with `l' to define outsb, outw and outl,
70427c478bd9Sstevel@tonic-gate	respectively.
70437c478bd9Sstevel@tonic-gate	* netboot/pci.h (PCI_VENDOR_ID_VORTEX): New macro.
70447c478bd9Sstevel@tonic-gate 	(PCI_DEVICE_ID_VORTEX_3c595): Likewise. Defined as a random
70457c478bd9Sstevel@tonic-gate	value.
70467c478bd9Sstevel@tonic-gate
70477c478bd9Sstevel@tonic-gate1999-09-20  Edward Killips  <ekillips@triton.net>
70487c478bd9Sstevel@tonic-gate
70497c478bd9Sstevel@tonic-gate	* stage2/disk_io.c (set_partition_hidden_flag): Set/clear the
70507c478bd9Sstevel@tonic-gate	hidden flag, whether the hidden flag is set or not.
70517c478bd9Sstevel@tonic-gate
70527c478bd9Sstevel@tonic-gate1999-09-21  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
70537c478bd9Sstevel@tonic-gate
70547c478bd9Sstevel@tonic-gate	* stage2/builtins.c (install_func): Do not set DEBUG_FS at the
70557c478bd9Sstevel@tonic-gate	first read. Set it to DEBUG_FS_BLOCKLIST_FUNC when reading the
70567c478bd9Sstevel@tonic-gate	whole of Stage 2. Set FILEPOS to zero at the same time to read
70577c478bd9Sstevel@tonic-gate	from the beginning of Stage 2. Reported by Pavel Roskin.
70587c478bd9Sstevel@tonic-gate
70597c478bd9Sstevel@tonic-gate1999-09-20  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
70607c478bd9Sstevel@tonic-gate
70617c478bd9Sstevel@tonic-gate	The argument ADDR for the command install is now optional.
70627c478bd9Sstevel@tonic-gate
70637c478bd9Sstevel@tonic-gate	* stage2/builtins.c (install_func): If parsing ADDR fails, set
70647c478bd9Sstevel@tonic-gate	INSTALLADDR to zero and set PTR to ADDR.
70657c478bd9Sstevel@tonic-gate	If INSTALLADDR is zero after parsing the command-line, check if
70667c478bd9Sstevel@tonic-gate	the Stage 2 id is STAGE2_ID_STAGE2. If so, set INSTALLADDR to
70677c478bd9Sstevel@tonic-gate	0x8000, otherwise set it to 0x2000.
70687c478bd9Sstevel@tonic-gate	Set the install address in the Stage 1 after the automatic
70697c478bd9Sstevel@tonic-gate	determination is completed.
70707c478bd9Sstevel@tonic-gate	(builtin_install): Say that ADDR is optional in the help
70717c478bd9Sstevel@tonic-gate	message.
70727c478bd9Sstevel@tonic-gate	* docs/grub.texi: Synchronize the description about install to
70737c478bd9Sstevel@tonic-gate	builtins.c. Remove explicit address arguments from all the
70747c478bd9Sstevel@tonic-gate	examples. Add a description about help.
70757c478bd9Sstevel@tonic-gate	* docs/menu.lst: Do not specify the address argument for
70767c478bd9Sstevel@tonic-gate	install.
70777c478bd9Sstevel@tonic-gate
70787c478bd9Sstevel@tonic-gate1999-09-19  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
70797c478bd9Sstevel@tonic-gate
70807c478bd9Sstevel@tonic-gate	The completion code is heavily modified.
70817c478bd9Sstevel@tonic-gate
70827c478bd9Sstevel@tonic-gate	* stage2/char_io.c [!STAGE1_5] (get_cmdline): In the completion
70837c478bd9Sstevel@tonic-gate	code, use COMPLETION_BUFFER to get the completion instead of
70847c478bd9Sstevel@tonic-gate	writing to BUF directly.
70857c478bd9Sstevel@tonic-gate	Save the position of a possible equal character after a command
70867c478bd9Sstevel@tonic-gate	in EQUAL_POS and replace the equal character with a space
70877c478bd9Sstevel@tonic-gate	temporarily for the code simplicity.
70887c478bd9Sstevel@tonic-gate	At first, just get completions, and, if there is more than one
70897c478bd9Sstevel@tonic-gate	completions, then print the list of the completions.
70907c478bd9Sstevel@tonic-gate	* stage2/disk_io.c [!STAGE1_5] (do_completion): New variable.
70917c478bd9Sstevel@tonic-gate	[!STAGE1_5] (unique): Moved the definition near the beginning.
70927c478bd9Sstevel@tonic-gate	[!STAGE1_5] (unique_string): Likewise. And changed the type to
70937c478bd9Sstevel@tonic-gate	char *.
70947c478bd9Sstevel@tonic-gate	(check_BSD_parts) [!STAGE1_5]: If DO_COMPLETION is non-zero, do
70957c478bd9Sstevel@tonic-gate	not print anything.
70967c478bd9Sstevel@tonic-gate	(real_open_partition) [!STAGE1_5]: Likewise.
70977c478bd9Sstevel@tonic-gate	[!STAGE1_5] (print_fsys_type): Likewise.
70987c478bd9Sstevel@tonic-gate	[!STAGE1_5] (print_a_completion): The argument FILENAME is
70997c478bd9Sstevel@tonic-gate	renamed	to NAME.
71007c478bd9Sstevel@tonic-gate	If DO_COMPLETION is non-zero, get the unique part from NAME and
71017c478bd9Sstevel@tonic-gate	set UNIQUE_STRING to it.
71027c478bd9Sstevel@tonic-gate	If DO_COMPLETION is zero, just print NAME.
71037c478bd9Sstevel@tonic-gate	Do not call printf unconditionally.
71047c478bd9Sstevel@tonic-gate	[!STAGE1_5] (print_completions): Accept two arguements
71057c478bd9Sstevel@tonic-gate	IS_FILENAME and IS_COMPLETION instead of FILENAME.
71067c478bd9Sstevel@tonic-gate	Set UNIQUE_STRING to UNIQUE_BUF.
71077c478bd9Sstevel@tonic-gate	Set DO_COMPLETION to IS_COMPLETION and set it to zero before
71087c478bd9Sstevel@tonic-gate	returning.
71097c478bd9Sstevel@tonic-gate	If IS_FILENAME is zero, then complete builtin commands and
71107c478bd9Sstevel@tonic-gate	return UNIQUE - 1.
71117c478bd9Sstevel@tonic-gate	Use BUF instead of FILENAME.
71127c478bd9Sstevel@tonic-gate	If IS_COMPLETION is non-zero, do not print anything.
71137c478bd9Sstevel@tonic-gate	Copy UNIQUE_STRING to PTR only if IS_COMPLETION and
71147c478bd9Sstevel@tonic-gate	*UNIQUE_STRING are non-zero.
71157c478bd9Sstevel@tonic-gate	* stage2/shared.h (COMPLETION_BUF): New macro.
71167c478bd9Sstevel@tonic-gate	(COMPLETION_BUFLEN): Likewise.
71177c478bd9Sstevel@tonic-gate	(UNIQUE_BUF): Likewise.
71187c478bd9Sstevel@tonic-gate	(UNIQUE_BUFLEN): Likewise.
71197c478bd9Sstevel@tonic-gate	(MENU_BUF): Set to UNIQUE_BUF + UNIQUE_BUFLEN.
71207c478bd9Sstevel@tonic-gate	(MENU_BUFLEN): Set to 0x8000 + PASSWORD_BUF - UNIQUE_BUF.
71217c478bd9Sstevel@tonic-gate	(print_completions): Adjusted to the definition.
71227c478bd9Sstevel@tonic-gate
71237c478bd9Sstevel@tonic-gate1999-09-19  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
71247c478bd9Sstevel@tonic-gate
71257c478bd9Sstevel@tonic-gate	* acinclude.m4 (grub_ASM_PREFIX_REQUIREMENT): Do not call
71267c478bd9Sstevel@tonic-gate	AC_DEFINE_UNQUOTEs within AC_CACHE_VAL. Define ADDR32 and DATA32
71277c478bd9Sstevel@tonic-gate	after it.
71287c478bd9Sstevel@tonic-gate	(grub_CHECK_START_SYMBOL): Do not call AC_DEFINE within
71297c478bd9Sstevel@tonic-gate	AC_CACHE_VAL. Define HAVE_START_SYMBOL after it.
71307c478bd9Sstevel@tonic-gate	(grub_CHECK_USCORE_START_SYMBOL): Do not call AC_DEFINE within
71317c478bd9Sstevel@tonic-gate	AC_CACHE_VAL. Define HAVE_USCORE_START_SYMBOL after it.
71327c478bd9Sstevel@tonic-gate	(grub_CHECK_END_SYMBOL): Do not call AC_DEFINE within
71337c478bd9Sstevel@tonic-gate	AC_CACHE_VAL. Define HAVE_END_SYMBOL after it.
71347c478bd9Sstevel@tonic-gate	(grub_CHECK_USCORE_END_SYMBOL): Do not call AC_DEFINE within
71357c478bd9Sstevel@tonic-gate	AC_CACHE_VAL. Define HAVE_USCORE_END_SYMBOL after it.
71367c478bd9Sstevel@tonic-gate
71377c478bd9Sstevel@tonic-gate1999-09-17  Pavel Roskin  <pavel_roskin@geocities.com>
71387c478bd9Sstevel@tonic-gate
71397c478bd9Sstevel@tonic-gate	* acconfig.h (ADDR32): Removed. This entry is automatically
71407c478bd9Sstevel@tonic-gate	created by autoheader.
71417c478bd9Sstevel@tonic-gate	(DATA32): Likewise.
71427c478bd9Sstevel@tonic-gate	* acinclude.m4 (grub_ASM_ADD32): Use ADDR32 instead of addr32.
71437c478bd9Sstevel@tonic-gate	Require grub_ASM_PREFIX_REQUIREMENT.
71447c478bd9Sstevel@tonic-gate	(grub_ASM_PREFIX_REQUIREMENT): Define ADDR32 and DATA32.
71457c478bd9Sstevel@tonic-gate	* configure.in: Call grub_ASM_PREFIX_REQUIREMENT before
71467c478bd9Sstevel@tonic-gate	grub_ASM_ADDR32. Do not define ADDR32 and DATA32.
71477c478bd9Sstevel@tonic-gate	* stage1/stage1.S (after_BPB): Use ABS(firstlist) instead of
71487c478bd9Sstevel@tonic-gate	firstlist.
71497c478bd9Sstevel@tonic-gate	(MSG): Use ABS(x) instead of x.
71507c478bd9Sstevel@tonic-gate	(probe_loop): Use the macro MSG for fd_probe_error_string.
71517c478bd9Sstevel@tonic-gate	* stage1/stage1_lba.S (after_BPB): Use ABS(firstlist) instead of
71527c478bd9Sstevel@tonic-gate	firstlist.
71537c478bd9Sstevel@tonic-gate	(MSG): Use ABS(x) instead of x.
71547c478bd9Sstevel@tonic-gate	* stage2/asm.S (putchar): Renamed to ...
71557c478bd9Sstevel@tonic-gate	(grub_putchar): ... this.
71567c478bd9Sstevel@tonic-gate
71577c478bd9Sstevel@tonic-gate1999-09-18  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
71587c478bd9Sstevel@tonic-gate
71597c478bd9Sstevel@tonic-gate	* stage2/gunzip.c (reset_linalloc): Use the macro RAW_ADDR
71607c478bd9Sstevel@tonic-gate	before setting LINALLOC_TOPADDR.
71617c478bd9Sstevel@tonic-gate	* stage2/shared.h [!GRUB_UTIL] (RAW_ADDR): Added parenthesises
71627c478bd9Sstevel@tonic-gate	to avoid a gcc warning.
71637c478bd9Sstevel@tonic-gate	[!GRUB_UTIL] (RAW_SEG): Likewise.
71647c478bd9Sstevel@tonic-gate
71657c478bd9Sstevel@tonic-gate1999-09-18  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
71667c478bd9Sstevel@tonic-gate
71677c478bd9Sstevel@tonic-gate	* acinclude.m4 (grub_CHECK_START_SYMBOL): New function.
71687c478bd9Sstevel@tonic-gate	(grub_CHECK_USCORE_START_SYMBOL): Likewise.
71697c478bd9Sstevel@tonic-gate	(grub_CHECK_END_SYMBOL): Likewise.
71707c478bd9Sstevel@tonic-gate	(grub_CHECK_USCORE_SYMBOL): Likewise.
71717c478bd9Sstevel@tonic-gate	* configure.in: Call grub_CHECK_START_SYMBOL and
71727c478bd9Sstevel@tonic-gate	grub_CHECK_USCORE_START_SYMBOL, and if neither start nor _start
71737c478bd9Sstevel@tonic-gate	is defined, print an error message and exit.
71747c478bd9Sstevel@tonic-gate	Likewise, call grub_CHECK_END_SYMBOL and
71757c478bd9Sstevel@tonic-gate	grub_CHECK_USCORE_END_SYMBOL, and if neither end nor _end is
71767c478bd9Sstevel@tonic-gate	defined, print an error message and exit.
71777c478bd9Sstevel@tonic-gate	* acconfig.h (HAVE_START_SYMBOL): Added the "undef" entry.
71787c478bd9Sstevel@tonic-gate	(HAVE_USCORE_START_SYMBOL): Likewise.
71797c478bd9Sstevel@tonic-gate	(HAVE_END_SYMBOL): Likewise.
71807c478bd9Sstevel@tonic-gate	(HAVE_USCORE_END_SYMBOL): Likewise.
71817c478bd9Sstevel@tonic-gate	* stage2/char_io.c (memcheck): Rename the argument START to
71827c478bd9Sstevel@tonic-gate	ADDR. Added two missing equal characters.
71837c478bd9Sstevel@tonic-gate	[GRUB_UTIL]: Define new local functions start_addr and end_addr.
71847c478bd9Sstevel@tonic-gate	[GRUB_UTIL && HAVE_START_SYMBOL]: The function start_addr
71857c478bd9Sstevel@tonic-gate	returns START.
71867c478bd9Sstevel@tonic-gate	[GRUB_UTIL && HAVE_USCORE_START_SYMBOL]: The function start_addr
71877c478bd9Sstevel@tonic-gate	returns _START.
71887c478bd9Sstevel@tonic-gate	[GRUB_UTIL && HAVE_END_SYMBOL]: The function end_addr returns
71897c478bd9Sstevel@tonic-gate	END.
71907c478bd9Sstevel@tonic-gate	[GRUB_UTIL && HAVE_USCORE_END_SYMBOL]: The function end_addr
71917c478bd9Sstevel@tonic-gate	returns _END.
71927c478bd9Sstevel@tonic-gate	[GRUB_UTIL]: If ADDR is equal to or greater than the address
71937c478bd9Sstevel@tonic-gate	returned by start_addr, and ADDR plus LEN is less than the
71947c478bd9Sstevel@tonic-gate	address returned by end_addr, return ! ERRNUM.
71957c478bd9Sstevel@tonic-gate	* stage2/asm.S (get_code_end) [HAVE_END_SYMBOL]: Use $end as the
71967c478bd9Sstevel@tonic-gate	end of the bss.
71977c478bd9Sstevel@tonic-gate	[HAVE_USCORE_END_SYMBOL]: Use $_end as the end of the bss.
71987c478bd9Sstevel@tonic-gate	* stage2/disk_io.c [!STAGE1_5] (cur_part_desc): Made static.
71997c478bd9Sstevel@tonic-gate	Need not to be global any longer.
72007c478bd9Sstevel@tonic-gate
72017c478bd9Sstevel@tonic-gate1999-09-17  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
72027c478bd9Sstevel@tonic-gate
72037c478bd9Sstevel@tonic-gate	* stage2/char_io.c [!STAGE1_5] (get_cmdline): The argument
72047c478bd9Sstevel@tonic-gate	COMPLETION is renamed to READLINE.
72057c478bd9Sstevel@tonic-gate	Do not initialize KILL here.
72067c478bd9Sstevel@tonic-gate	TAB, C-a, C-e, C-f, C-b, C-u, C-k, C-y, C-p and C-n are handled
72077c478bd9Sstevel@tonic-gate	only if READLINE is non-zero.
72087c478bd9Sstevel@tonic-gate	If ECHO_CHAR is not NUL, do not remove the leading spaces in BUF.
72097c478bd9Sstevel@tonic-gate	Add CMDLINE into the history list only if READLINE is non-zero.
72107c478bd9Sstevel@tonic-gate	* stage2/stage2.c (cmain): Initialize the kill buffer.
72117c478bd9Sstevel@tonic-gate
72127c478bd9Sstevel@tonic-gate1999-09-17  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
72137c478bd9Sstevel@tonic-gate
72147c478bd9Sstevel@tonic-gate	Killing, yanking and manipulating the history are supported.
72157c478bd9Sstevel@tonic-gate
72167c478bd9Sstevel@tonic-gate	* stage2/shared.h (cur_cmdline): Removed.
72177c478bd9Sstevel@tonic-gate	(MAX_CMDLINE): Moved near the beginning of the file.
72187c478bd9Sstevel@tonic-gate	(NEW_HEAPSIZE): Likewise.
72197c478bd9Sstevel@tonic-gate	(CMDLINE_BUFLEN): Set to MAX_CMDLINE.
72207c478bd9Sstevel@tonic-gate	(KILL_BUF): New macro.
72217c478bd9Sstevel@tonic-gate	(KILL_BUFLEN): Likewise.
72227c478bd9Sstevel@tonic-gate	(HISTORY_BUF): Likewise.
72237c478bd9Sstevel@tonic-gate	(HISTORY_SIZE): Likewise.
72247c478bd9Sstevel@tonic-gate	(HISTORY_BUFLEN): Likewise.
72257c478bd9Sstevel@tonic-gate	(MENU_BUF): Set to HISTORY_BUF + HISTORY_BUFLEN.
72267c478bd9Sstevel@tonic-gate	(MENU_BUFLEN): Set to 0x8000 + PASSWORD_BUF - HISTORY_BUF.
72277c478bd9Sstevel@tonic-gate	(strcpy): New macro.
72287c478bd9Sstevel@tonic-gate	(grub_strcpy): Delared.
72297c478bd9Sstevel@tonic-gate	* stage2/boot.c (cur_cmdline): Removed.
72307c478bd9Sstevel@tonic-gate	* stage2/char_io.c [!STAGE1_5] (grub_strcpy): New function.
72317c478bd9Sstevel@tonic-gate	[!STAGE1_5] (get_history): Likewise.
72327c478bd9Sstevel@tonic-gate	[!STAGE1_5] (add_history): Likewise.
72337c478bd9Sstevel@tonic-gate	[!STAGE1_5] (get_cmdline): Use BUF instead of CMDLINE for the
72347c478bd9Sstevel@tonic-gate	working buffer for the command-line.
72357c478bd9Sstevel@tonic-gate	A new function cl_insert is used to insert a string to the
72367c478bd9Sstevel@tonic-gate	command-line.
72377c478bd9Sstevel@tonic-gate	In the case where C-u or C-k is pressed, copy the string being
72387c478bd9Sstevel@tonic-gate	deleted to KILL.
72397c478bd9Sstevel@tonic-gate	If C-y is pressed, insert KILL to the command-line.
72407c478bd9Sstevel@tonic-gate	If C-p is pressed, fetch the previous command from the history
72417c478bd9Sstevel@tonic-gate	list HISTORY, and if C-n is pressed, fetch the next command from
72427c478bd9Sstevel@tonic-gate	it.
72437c478bd9Sstevel@tonic-gate	If LPOS is less than LLEN, add CMDLINE into the history list.
72447c478bd9Sstevel@tonic-gate	If C is equal to KEY_UP, set C to 16, and if C is equal to
72457c478bd9Sstevel@tonic-gate	KEY_DOWN, set C to 14.
72467c478bd9Sstevel@tonic-gate	[!STAGE1_5] (num_history): New variable.
72477c478bd9Sstevel@tonic-gate
72487c478bd9Sstevel@tonic-gate1999-09-15  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
72497c478bd9Sstevel@tonic-gate
72507c478bd9Sstevel@tonic-gate	* stage2/size_test: Do not check for the size of Stage 2.
72517c478bd9Sstevel@tonic-gate	* stage1/Makefile.am (stage2_size.h): Use `set' and `echo'
72527c478bd9Sstevel@tonic-gate	instead of awk, since we cannot expect awk is present. Remove
72537c478bd9Sstevel@tonic-gate	stage2_size.h before creating it.
72547c478bd9Sstevel@tonic-gate
72557c478bd9Sstevel@tonic-gate1999-09-15  Pavel Roskin  <pavel_roskin@geocities.com>
72567c478bd9Sstevel@tonic-gate
72577c478bd9Sstevel@tonic-gate	* Makefile.am (SUBDIRS): Put stage1 after stage2 so that stage2
72587c478bd9Sstevel@tonic-gate	is built before stage1.
72597c478bd9Sstevel@tonic-gate	* stage1/Makefile.am (BUILT_SOURCES): New varilable.
72607c478bd9Sstevel@tonic-gate	(CLEANFILES): Added BUILT_SOURCES.
72617c478bd9Sstevel@tonic-gate	(stage1_exec_SOURCES): Added stage2_size.h.
72627c478bd9Sstevel@tonic-gate	(stage1_lba_exec_SOURCES): Likewise.
72637c478bd9Sstevel@tonic-gate	(stage2_size.h): New rule.
72647c478bd9Sstevel@tonic-gate	* stage1/stage1.S: Include <stage2_size.h> and use STAGE2_SIZE
72657c478bd9Sstevel@tonic-gate	to determine how much number of sectors to be read when loading
72667c478bd9Sstevel@tonic-gate	Stage 2.
72677c478bd9Sstevel@tonic-gate	* stage1/stage1_lba.S: Likewise.
72687c478bd9Sstevel@tonic-gate
72697c478bd9Sstevel@tonic-gate1999-09-15  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
72707c478bd9Sstevel@tonic-gate
72717c478bd9Sstevel@tonic-gate	* netboot/config.h: Moved to ...
72727c478bd9Sstevel@tonic-gate	* netboot/netboot_config.h: ... here.
72737c478bd9Sstevel@tonic-gate	* netboot/config.c: Include netboot_config.h instead of config.h.
72747c478bd9Sstevel@tonic-gate	* netboot/fsys_tftp.c: Likewise.
72757c478bd9Sstevel@tonic-gate	* netboot/ip.c: Likewise.
72767c478bd9Sstevel@tonic-gate	* netboot/Makefile.am (libdrivers_a_SOURCES): Removed config.h
72777c478bd9Sstevel@tonic-gate	and added netboot_config.h.
72787c478bd9Sstevel@tonic-gate
72797c478bd9Sstevel@tonic-gate1999-09-14  Pavel Roskin  <pavel_roskin@geocities.com>
72807c478bd9Sstevel@tonic-gate
72817c478bd9Sstevel@tonic-gate	* grub/asmstub.c [__linux__]: On GLibc 2.0 and newer use lseek,
72827c478bd9Sstevel@tonic-gate	don't include <linux/fs.h> and define BLKFLSBUF if needed.
72837c478bd9Sstevel@tonic-gate
72847c478bd9Sstevel@tonic-gate1999-09-14  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
72857c478bd9Sstevel@tonic-gate
72867c478bd9Sstevel@tonic-gate	Now the grub shell works fine on FreeBSD. A patch by Pavel
72877c478bd9Sstevel@tonic-gate	Roskin is modified and applied.
72887c478bd9Sstevel@tonic-gate
72897c478bd9Sstevel@tonic-gate	* grub/asmstub.c (get_drive_geometry): New function.
72907c478bd9Sstevel@tonic-gate	(get_diskinfo): Use get_drive_geometry to set the geometry of
72917c478bd9Sstevel@tonic-gate	DRIVE.
72927c478bd9Sstevel@tonic-gate
72937c478bd9Sstevel@tonic-gate1999-09-14  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
72947c478bd9Sstevel@tonic-gate
72957c478bd9Sstevel@tonic-gate	* configure.in (--enable-ne): Made the description more clear.
72967c478bd9Sstevel@tonic-gate	(--enable-nepci): Likewise.
72977c478bd9Sstevel@tonic-gate	(--enable-wd): Likewise.
72987c478bd9Sstevel@tonic-gate	(--enable-t503): Likewise.
72997c478bd9Sstevel@tonic-gate	(--enable-t509): Likewise.
73007c478bd9Sstevel@tonic-gate	(--enable-3c59x): Likewise.
73017c478bd9Sstevel@tonic-gate	(--enable-lance): Likewise.
73027c478bd9Sstevel@tonic-gate	(--enable-cs): Likewise.
73037c478bd9Sstevel@tonic-gate	(--enable-eepro100): Likewise.
73047c478bd9Sstevel@tonic-gate	(--enable-wd-default_mem): Renamed to ...
73057c478bd9Sstevel@tonic-gate	(--enable-wd-default-mem): ... this.
73067c478bd9Sstevel@tonic-gate	(--enable-cs-scan): Corrected the description.
73077c478bd9Sstevel@tonic-gate	(NETBOOT_SUPPORT): Defined if NET_CFLAGS is not empty.
73087c478bd9Sstevel@tonic-gate	* stage2/Makefile.am (stage2_exec_LDADD): Defined only if
73097c478bd9Sstevel@tonic-gate	NETBOOT_SUPPORT is true.
73107c478bd9Sstevel@tonic-gate	* netboot/Makefile.am (LIBDRIVERS): New variable. If
73117c478bd9Sstevel@tonic-gate	NETBOOT_SUPPORT is true, set to libdriver.a, otherwise set to an
73127c478bd9Sstevel@tonic-gate	empty string.
73137c478bd9Sstevel@tonic-gate	(noinst_LIBRARIES): Set to LIBDRIVERS.
73147c478bd9Sstevel@tonic-gate	(DRIVERS): Added 3c509.h, cs89x0.h and ns8390.h.
73157c478bd9Sstevel@tonic-gate	(libdrivers_a_SOURCES): Added byteorder.h, config.h, if.h, io.h,
73167c478bd9Sstevel@tonic-gate	ip.h, netboot.h, netdevice.h, nic.h and pic.h.
73177c478bd9Sstevel@tonic-gate	(libdrivers_a_CFLAGS): Added -fno-builtin and -nostdinc and
73187c478bd9Sstevel@tonic-gate	removed -O2.
73197c478bd9Sstevel@tonic-gate	* stage2/char_io.c (grub_sprintf): Added parenthesises to avoid
73207c478bd9Sstevel@tonic-gate	gcc warnings.
73217c478bd9Sstevel@tonic-gate	* stage2/gunzip.c (gunzip_test_header): Check if FSYS_TYPE is
73227c478bd9Sstevel@tonic-gate	TFTP. If so, set IS_TFTP to non-zero, otherwise to zero. And,
73237c478bd9Sstevel@tonic-gate	use IS_TFTP to check if we have GZIP_CRC instead of the equation
73247c478bd9Sstevel@tonic-gate	"FILEMAX == 16 * 1024 * 1024".
73257c478bd9Sstevel@tonic-gate
73267c478bd9Sstevel@tonic-gate1999-09-13  Edmund GRIMLEY EVANS  <edmundo@rano.demon.co.uk>
73277c478bd9Sstevel@tonic-gate
73287c478bd9Sstevel@tonic-gate	The netboot support in the Dresden version of GRUB is integrated.
73297c478bd9Sstevel@tonic-gate
73307c478bd9Sstevel@tonic-gate	* Makefile.am (SUBDIRS): Added netboot.
73317c478bd9Sstevel@tonic-gate	* configure.in (--enable-tftp): New option.
73327c478bd9Sstevel@tonic-gate	(--enable-ne): Likewise.
73337c478bd9Sstevel@tonic-gate	(--enable-nepci): Likewise.
73347c478bd9Sstevel@tonic-gate	(--enable-wd): Likewise.
73357c478bd9Sstevel@tonic-gate	(--enable-t503): Likewise.
73367c478bd9Sstevel@tonic-gate	(--enable-t509): Likewise.
73377c478bd9Sstevel@tonic-gate	(--enable-3c59x): Likewise.
73387c478bd9Sstevel@tonic-gate	(--enable-lance): Likewise.
73397c478bd9Sstevel@tonic-gate	(--enable-cs): Likewise.
73407c478bd9Sstevel@tonic-gate	(--enable-eepro100): Likewise.
73417c478bd9Sstevel@tonic-gate	(--enable-ne-scan): Likewise.
73427c478bd9Sstevel@tonic-gate	(--enable-wd-default_mem): Likewise.
73437c478bd9Sstevel@tonic-gate	(--enable-cs-scan): Likewise.
73447c478bd9Sstevel@tonic-gate	(NET_CFLAGS): New variable.
73457c478bd9Sstevel@tonic-gate	(NET_EXTRAFLAGS): Likewise.
73467c478bd9Sstevel@tonic-gate	Do AC_OUTPUT for netboot/Makefile as well.
73477c478bd9Sstevel@tonic-gate	* stage1/stage1.S: Set the number of sectors for Stage 2 to 130.
73487c478bd9Sstevel@tonic-gate	* stage1/stage1_lba.S: Likewise.
73497c478bd9Sstevel@tonic-gate	* stage2/Makefile.am (stage2_exec_LDADD): Added
73507c478bd9Sstevel@tonic-gate	../netboot/libdrivers.a.
73517c478bd9Sstevel@tonic-gate	* stage2/asm.S [!STAGE1_5] (currticks): New function.
73527c478bd9Sstevel@tonic-gate	* stage2/char_io.c [!STAGE1_5] (grub_sprintf): Likewise.
73537c478bd9Sstevel@tonic-gate	[!STAGE1_5] (grub_memcmp): Likewise.
73547c478bd9Sstevel@tonic-gate	* stage2/disk_io.c (fsys_table) [FSYS_TFTP]: Added an entry for
73557c478bd9Sstevel@tonic-gate	tftp.
73567c478bd9Sstevel@tonic-gate	(sane_partition) [!STAGE1_5]: If CURRENT_DRIVE is a network
73577c478bd9Sstevel@tonic-gate	drive, return 1.
73587c478bd9Sstevel@tonic-gate	(real_open_partition) [!STAGE1_5]: Likewise.
73597c478bd9Sstevel@tonic-gate	(set_device): If DEVICE contains a network drive, set
73607c478bd9Sstevel@tonic-gate	CURRENT_DRIVE to 0x20.
73617c478bd9Sstevel@tonic-gate	* stage2/filesys.h [FSYS_TFTP] (FSYS_TFTP_NUM): Defined as 1.
73627c478bd9Sstevel@tonic-gate	[!FSYS_TFTP] (FSYS_TFTP_NUM): Defined as 0.
73637c478bd9Sstevel@tonic-gate	(NUM_FSYS): Added FSYS_TFTP_NUM.
73647c478bd9Sstevel@tonic-gate	* stage2/gunzip.c (gunzip_test_header): If FILEMAX >= 16MB, do
73657c478bd9Sstevel@tonic-gate	not try to examine the last 8 bytes of the file. This is
73667c478bd9Sstevel@tonic-gate	required for compressed files by TFTP.
73677c478bd9Sstevel@tonic-gate	* stage2/shared.h (sprintf): New macro.
73687c478bd9Sstevel@tonic-gate	(memcmp): Likewise.
73697c478bd9Sstevel@tonic-gate	(currticks): Declared.
73707c478bd9Sstevel@tonic-gate	(grub_sprintf): Likewise.
73717c478bd9Sstevel@tonic-gate	(grub_memcmp): Likewise.
73727c478bd9Sstevel@tonic-gate	* stage2/size_test: Set the maximum size of Stage 2 to 66560.
73737c478bd9Sstevel@tonic-gate	* netboot/3c509.c: New file.
73747c478bd9Sstevel@tonic-gate	* netboot/3c509.h: Likewise.
73757c478bd9Sstevel@tonic-gate	* netboot/3c59x.c: Likewise.
73767c478bd9Sstevel@tonic-gate	* netboot/Makefile.am: Likewise.
73777c478bd9Sstevel@tonic-gate	* netboot/Makefile.in: Likewise.
73787c478bd9Sstevel@tonic-gate	* netboot/byteorder.h: Likewise.
73797c478bd9Sstevel@tonic-gate	* netboot/compile: Likewise.
73807c478bd9Sstevel@tonic-gate	* netboot/config.c: Likewise.
73817c478bd9Sstevel@tonic-gate	* netboot/config.h: Likewise.
73827c478bd9Sstevel@tonic-gate	* netboot/cs89x0.c: Likewise.
73837c478bd9Sstevel@tonic-gate	* netboot/cs89x0.h: Likewise.
73847c478bd9Sstevel@tonic-gate	* netboot/eepro100.c: Likewise.
73857c478bd9Sstevel@tonic-gate	* netboot/fsys_tftp.c: Likewise.
73867c478bd9Sstevel@tonic-gate	* netboot/if.h: Likewise.
73877c478bd9Sstevel@tonic-gate	* netboot/io.h: Likewise.
73887c478bd9Sstevel@tonic-gate	* netboot/ip.c: Likewise.
73897c478bd9Sstevel@tonic-gate	* netboot/ip.h: Likewise.
73907c478bd9Sstevel@tonic-gate	* netboot/lance.c: Likewise.
73917c478bd9Sstevel@tonic-gate	* netboot/netboot.h: Likewise.
73927c478bd9Sstevel@tonic-gate	* netboot/netdevice.h: Likewise.
73937c478bd9Sstevel@tonic-gate	* netboot/nic.h: Likewise.
73947c478bd9Sstevel@tonic-gate	* netboot/ns8390.c: Likewise.
73957c478bd9Sstevel@tonic-gate	* netboot/ns8390.h: Likewise.
73967c478bd9Sstevel@tonic-gate	* netboot/pci.c: Likewise.
73977c478bd9Sstevel@tonic-gate	* netboot/pci.h: Likewise.
73987c478bd9Sstevel@tonic-gate
73997c478bd9Sstevel@tonic-gate1999-09-13  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
74007c478bd9Sstevel@tonic-gate
74017c478bd9Sstevel@tonic-gate	* configure.in (--enable-maintainer-mode): Do not use our own
74027c478bd9Sstevel@tonic-gate	rule, but use AM_MAINTAINER_MODE instead. If the maintainer mode
74037c478bd9Sstevel@tonic-gate	is enabled, then check for perl, and if it is not found, print
74047c478bd9Sstevel@tonic-gate	an error message and abort.
74057c478bd9Sstevel@tonic-gate	* docs/Makefile.am (grub.8): Regenerated if MAINTAINER_MODE is
74067c478bd9Sstevel@tonic-gate	defined, instead of GRUB_MAINT. Use the variable PERL rather
74077c478bd9Sstevel@tonic-gate	than running help2man directly.
74087c478bd9Sstevel@tonic-gate
74097c478bd9Sstevel@tonic-gate1999-09-13  Pavel Roskin  <pavel_roskin@geocities.com>
74107c478bd9Sstevel@tonic-gate
74117c478bd9Sstevel@tonic-gate	* stage2/pc_slice.h (IS_PC_SLICE_TYPE_EXTENDED): New macro.
74127c478bd9Sstevel@tonic-gate	* stage2/disk_io.c (real_open_partition): Use
74137c478bd9Sstevel@tonic-gate	IS_PC_SLICE_TYPE_EXTENDED instead of comparing CURRENT_SLICE
74147c478bd9Sstevel@tonic-gate	with the extended partition types.
74157c478bd9Sstevel@tonic-gate
74167c478bd9Sstevel@tonic-gate1999-09-11  Pavel Roskin  <pavel_roskin@geocities.com>
74177c478bd9Sstevel@tonic-gate
74187c478bd9Sstevel@tonic-gate	* acconfig.h: New file for autoheader support.
74197c478bd9Sstevel@tonic-gate	* acinclude.m4 (grub_ASM_EXT_C) Renamed to ...
74207c478bd9Sstevel@tonic-gate	(grub_ASM_USCORE): ... this. Define HAVE_ASM_USCORE if a C
74217c478bd9Sstevel@tonic-gate	symbol gets an underscore after compiling to assembler.
74227c478bd9Sstevel@tonic-gate	* configure.in: Added AM_CONFIG_HEADER. Autoconf 2.13 is now
74237c478bd9Sstevel@tonic-gate	required. Test for wgetch(), not getch() in -l[n]curses.
74247c478bd9Sstevel@tonic-gate	* stage2/shared.h (EXT_C): Defined.
74257c478bd9Sstevel@tonic-gate	Include the best existing header for [n]curses.
74267c478bd9Sstevel@tonic-gate
74277c478bd9Sstevel@tonic-gate1999-09-12  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
74287c478bd9Sstevel@tonic-gate
74297c478bd9Sstevel@tonic-gate	* stage2/boot.c (load_image): Use CURRENT_DRIVE and
74307c478bd9Sstevel@tonic-gate	CURRENT_PARTITION instead of SAVED_DRIVE and SAVED_PARTITION for
74317c478bd9Sstevel@tonic-gate	the boot device in the Multiboot information. Reported by
74327c478bd9Sstevel@tonic-gate	Stephen Early <steve@greenend.org.uk>.
74337c478bd9Sstevel@tonic-gate
74347c478bd9Sstevel@tonic-gate1999-09-12  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
74357c478bd9Sstevel@tonic-gate
74367c478bd9Sstevel@tonic-gate	* stage2/disk_io.c (sane_partition) [STAGE1_5]: Defined.
74377c478bd9Sstevel@tonic-gate	(set_device): Use sane_partition to make sure that CURRENT_DRIVE
74387c478bd9Sstevel@tonic-gate	has a valid value. Reported by Pavel Roskin.
74397c478bd9Sstevel@tonic-gate
74407c478bd9Sstevel@tonic-gate1999-09-11  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
74417c478bd9Sstevel@tonic-gate
74427c478bd9Sstevel@tonic-gate	From Pavel Roskin:
74437c478bd9Sstevel@tonic-gate	* stage2/builtins.c (device_func) [GRUB_UTIL]: Use check_device
74447c478bd9Sstevel@tonic-gate	in order to make sure that DEVICE exists.
74457c478bd9Sstevel@tonic-gate	* grub/asmstub.c (check_device): New function.
74467c478bd9Sstevel@tonic-gate	(grub_stage2): Use check_device to probe a device.
74477c478bd9Sstevel@tonic-gate
74487c478bd9Sstevel@tonic-gate	* stage2/builtins.c (geometry_func) [GRUB_UTIL]: Copy the
74497c478bd9Sstevel@tonic-gate	modified geometry to GEOM and reset BUF_DRIVE. Reported by Pavel
74507c478bd9Sstevel@tonic-gate	Roskin.
74517c478bd9Sstevel@tonic-gate
74527c478bd9Sstevel@tonic-gate	* grub/main.c (no_floppy): New variable.
74537c478bd9Sstevel@tonic-gate	(probe_second_floppy): Likewise.
74547c478bd9Sstevel@tonic-gate	(OPT_NO_FLOPPY): New macro.
74557c478bd9Sstevel@tonic-gate	(OPT_PROBE_SECOND_FLOPPY): Likewise.
74567c478bd9Sstevel@tonic-gate	(longopts): Added no-floppy and probe-second-floppy.
74577c478bd9Sstevel@tonic-gate	(usage): Added the descriptions about --no-floppy and
74587c478bd9Sstevel@tonic-gate	--probe-second-floppy.
74597c478bd9Sstevel@tonic-gate	(main): Handle OPT_PROBE_SECOND_FLOPPY and OPT_NO_FLOPPY.
74607c478bd9Sstevel@tonic-gate	* grub/asmstub.c (grub_stage2): Print a message before the probe
74617c478bd9Sstevel@tonic-gate	routine. If NO_FLOPPY is non-zero, do not probe any floppy drive.
74627c478bd9Sstevel@tonic-gate	If PROBE_SECOND_FLOPPY is zero, skip the probe of the second
74637c478bd9Sstevel@tonic-gate	floppy drive.
74647c478bd9Sstevel@tonic-gate	(get_floppy_disk_name): New function.
74657c478bd9Sstevel@tonic-gate	(get_ide_disk_name): Likewise.
74667c478bd9Sstevel@tonic-gate	(get_scsi_disk_name): Likewise.
74677c478bd9Sstevel@tonic-gate
74687c478bd9Sstevel@tonic-gate1999-09-10  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
74697c478bd9Sstevel@tonic-gate
74707c478bd9Sstevel@tonic-gate	* stage2/builtins.c (device_func): New function.
74717c478bd9Sstevel@tonic-gate	(builtin_device): New variable.
74727c478bd9Sstevel@tonic-gate	(builtin_table): Added the pointer to BUILTIN_DEVICE.
74737c478bd9Sstevel@tonic-gate	(builtin_geometry) [GRUB_UTIL]: Accept extra arguments,
74747c478bd9Sstevel@tonic-gate	CYLINDER, HEAD, SECTOR and TOTAL_SECTOR, and, if they are found,
74757c478bd9Sstevel@tonic-gate	set the geometry of a drive specified to them.
74767c478bd9Sstevel@tonic-gate	* grub/asmstub.c (disks): Made global.
74777c478bd9Sstevel@tonic-gate	(assign_device_name): New function.
74787c478bd9Sstevel@tonic-gate
74797c478bd9Sstevel@tonic-gate1999-09-09  Gordon Matzigkeit  <gord@fig.org>
74807c478bd9Sstevel@tonic-gate
74817c478bd9Sstevel@tonic-gate	* docs/grub.texi (Commands): Synchronize descriptions with
74827c478bd9Sstevel@tonic-gate	builtins.c.
74837c478bd9Sstevel@tonic-gate
74847c478bd9Sstevel@tonic-gate	* stage2/builtins.c (hide_func): Use set_partition_hidden_flag.
74857c478bd9Sstevel@tonic-gate	(unhide_func): Likewise.
74867c478bd9Sstevel@tonic-gate	Many help message cleanups.  From Pavel Roskin.
74877c478bd9Sstevel@tonic-gate
74887c478bd9Sstevel@tonic-gate	* stage2/shared.h (set_partition_hidden_flag): Declare.
74897c478bd9Sstevel@tonic-gate
74907c478bd9Sstevel@tonic-gate	* stage2/disk_io.c (set_partition_hidden_flag): New function
74917c478bd9Sstevel@tonic-gate	merged from hide_partition and unhide_partition.  Make sure we OR
74927c478bd9Sstevel@tonic-gate	with the inverse of the flag bit rather than XORing to unhide the
74937c478bd9Sstevel@tonic-gate	partition.
74947c478bd9Sstevel@tonic-gate
74957c478bd9Sstevel@tonic-gate1999-09-10  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
74967c478bd9Sstevel@tonic-gate
74977c478bd9Sstevel@tonic-gate	* grub/asmstub.c (_FILE_OFFSET_BITS): Defined.
74987c478bd9Sstevel@tonic-gate	(biosdisk) [!__linux__]: Pass the offset argument as off_t
74997c478bd9Sstevel@tonic-gate	instead of int to lseek, and compare the return value with
75007c478bd9Sstevel@tonic-gate	OFFSET. Reported by Pavel Roskin.
75017c478bd9Sstevel@tonic-gate	(grub_stage2) [!__linux__ && !__GNU__]: Print a warning message.
75027c478bd9Sstevel@tonic-gate
75037c478bd9Sstevel@tonic-gate1999-09-08  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
75047c478bd9Sstevel@tonic-gate
75057c478bd9Sstevel@tonic-gate	* stage2/stage2.c (run_menu): If run_script is successfully
75067c478bd9Sstevel@tonic-gate	finished, break the loop. Reported by Pavel Roskin.
75077c478bd9Sstevel@tonic-gate	Do not wait an input character when FALLBACK_ENTRY is less than
75087c478bd9Sstevel@tonic-gate	zero.
75097c478bd9Sstevel@tonic-gate	* stage2/cmdline.c (run_script): If ERRNUM is non-zero, wait an
75107c478bd9Sstevel@tonic-gate	input character, whether FALLBACK is less than zero or not.
75117c478bd9Sstevel@tonic-gate
75127c478bd9Sstevel@tonic-gate1999-09-06  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
75137c478bd9Sstevel@tonic-gate
75147c478bd9Sstevel@tonic-gate	* stage2/builtins.c (configfile_func): New function.
75157c478bd9Sstevel@tonic-gate	(builtin_configfile): New variable.
75167c478bd9Sstevel@tonic-gate	(builtin_table): Added the pointer to BUILTIN_CONFIGFILE.
75177c478bd9Sstevel@tonic-gate
75187c478bd9Sstevel@tonic-gate1999-09-06  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
75197c478bd9Sstevel@tonic-gate
75207c478bd9Sstevel@tonic-gate	From Pavel Roskin:
75217c478bd9Sstevel@tonic-gate	* stage2/asm.S [!STAGE1_5] (chain_stage2): Deleted.
75227c478bd9Sstevel@tonic-gate	[STAGE1_5] (get_code_end): Likewise.
75237c478bd9Sstevel@tonic-gate	* stage2/char_io.c (grub_strncat): Likewise.
75247c478bd9Sstevel@tonic-gate	* stage2/common.c [STAGE1_5] (saved_mem_upper): Likewise.
75257c478bd9Sstevel@tonic-gate	* stage2/smp-imps.c (imps_release_cpus): Likewise.
75267c478bd9Sstevel@tonic-gate	(imps_any_new_apics): Made static.
75277c478bd9Sstevel@tonic-gate	(imps_enabled): Likewise.
75287c478bd9Sstevel@tonic-gate	(imps_num_cpus): Likewise.
75297c478bd9Sstevel@tonic-gate	(imps_lapic_addr): Likewise.
75307c478bd9Sstevel@tonic-gate	(imps_cpu_apic_map): Likewise.
75317c478bd9Sstevel@tonic-gate	(imps_apic_cpu_map): Likewise.
75327c478bd9Sstevel@tonic-gate
75337c478bd9Sstevel@tonic-gate1999-09-06  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
75347c478bd9Sstevel@tonic-gate
75357c478bd9Sstevel@tonic-gate	* stage2/builtins.c (testload_func): Fix the typos: 0x2000000 ->
75367c478bd9Sstevel@tonic-gate	0x200000 and 0x3000000 -> 0x300000.
75377c478bd9Sstevel@tonic-gate
75387c478bd9Sstevel@tonic-gate1999-09-06  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
75397c478bd9Sstevel@tonic-gate
75407c478bd9Sstevel@tonic-gate	From Hisazumi Kenji <nel@soraneko.com>:
75417c478bd9Sstevel@tonic-gate	* stage2/fsys_ffs.c (mapblock_offset): New variable.
75427c478bd9Sstevel@tonic-gate	(mapblock_bsize): Likewise.
75437c478bd9Sstevel@tonic-gate	(MAPBUF): New macro.
75447c478bd9Sstevel@tonic-gate	(MAPBUF_LEN): Likewise.
75457c478bd9Sstevel@tonic-gate	(ffs_mount): Set MAPBLOCK_OFFSET to -1.
75467c478bd9Sstevel@tonic-gate	(block_map): Added partial read support.
75477c478bd9Sstevel@tonic-gate
75487c478bd9Sstevel@tonic-gate1999-09-06  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
75497c478bd9Sstevel@tonic-gate
75507c478bd9Sstevel@tonic-gate	* stage2/cmdline.c (find_command): If COMMAND is less than
75517c478bd9Sstevel@tonic-gate	(*BUILTIN)->NAME in dictionary order, break the loop.
75527c478bd9Sstevel@tonic-gate	* stage2/builtins.c (builtin_chainloader): Capitalize the
75537c478bd9Sstevel@tonic-gate	variable name in the short doc.
75547c478bd9Sstevel@tonic-gate	(builtin_color): Likewise.
75557c478bd9Sstevel@tonic-gate	(builtin_geometry): Likewise.
75567c478bd9Sstevel@tonic-gate	(builtin_help): Likewise.
75577c478bd9Sstevel@tonic-gate	(builtin_hide): Likewise.
75587c478bd9Sstevel@tonic-gate	(builtin_initrd): Likewise.
75597c478bd9Sstevel@tonic-gate	(builtin_install): Likewise.
75607c478bd9Sstevel@tonic-gate	(builtin_kernel): Likewise.
75617c478bd9Sstevel@tonic-gate	(builtin_module): Likewise.
75627c478bd9Sstevel@tonic-gate	(builtin_modulenounzip): Likewise.
75637c478bd9Sstevel@tonic-gate	(builtin_pause): Likewise.
75647c478bd9Sstevel@tonic-gate	(builtin_read): Likewise.
75657c478bd9Sstevel@tonic-gate	(builtin_root): Likewise.
75667c478bd9Sstevel@tonic-gate	(builtin_testload): Likewise.
75677c478bd9Sstevel@tonic-gate	(builtin_unhide): Likewise.
75687c478bd9Sstevel@tonic-gate	(builtin_uppermem): Likewise.
75697c478bd9Sstevel@tonic-gate
75707c478bd9Sstevel@tonic-gate1999-09-05  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
75717c478bd9Sstevel@tonic-gate
75727c478bd9Sstevel@tonic-gate	The internal of the command handling is heavily modified, and
75737c478bd9Sstevel@tonic-gate	a new command "help" is added.
75747c478bd9Sstevel@tonic-gate
75757c478bd9Sstevel@tonic-gate	* stage1/stage1.S: Set the number of sectors for Stage 2 to 110.
75767c478bd9Sstevel@tonic-gate	* stage1/stage1_lba.S: Likewise.
75777c478bd9Sstevel@tonic-gate	* stage2/builtins.c: New file.
75787c478bd9Sstevel@tonic-gate	* stage2/Makefile.am (libgrub_a_SOURCES): Added builtins.c.
75797c478bd9Sstevel@tonic-gate	(stage2_exec_SOURCES): Likewise.
75807c478bd9Sstevel@tonic-gate	* stage2/boot.c (load_image): Return kernel_t instead int.
75817c478bd9Sstevel@tonic-gate	(bsd_boot): Change the type of the first argument to kernel_t.
75827c478bd9Sstevel@tonic-gate	* stage2/char_io.c (get_cmdline): Do not accept the argument
75837c478bd9Sstevel@tonic-gate	COMMANDS and accept the argument COMPLETION.
75847c478bd9Sstevel@tonic-gate	Print completions only if COMPLETION is non-zero.
75857c478bd9Sstevel@tonic-gate	Print the list of short docs when the command is completed.
75867c478bd9Sstevel@tonic-gate	* stage2/cmdline.c [GRUB_UTIL]: Do not include apic.h and
75877c478bd9Sstevel@tonic-gate	smp-imps.h.
75887c478bd9Sstevel@tonic-gate	(fallback): Deleted.
75897c478bd9Sstevel@tonic-gate	(password): Likewise.
75907c478bd9Sstevel@tonic-gate	(debug): Likewise.
75917c478bd9Sstevel@tonic-gate	(normal_color): Likewise.
75927c478bd9Sstevel@tonic-gate	(highlight_color): Likewise.
75937c478bd9Sstevel@tonic-gate	(print_cmdline_message): New function.
75947c478bd9Sstevel@tonic-gate	(commands): Deleted.
75957c478bd9Sstevel@tonic-gate	(debug_fs_print_func): Likewise.
75967c478bd9Sstevel@tonic-gate	(installaddr): Likewise.
75977c478bd9Sstevel@tonic-gate	(installlist): Likewise.
75987c478bd9Sstevel@tonic-gate	(installsect): Likewise.
75997c478bd9Sstevel@tonic-gate	(debug_fs_blocklist_func): Likewise.
76007c478bd9Sstevel@tonic-gate	(find_command): New function.
76017c478bd9Sstevel@tonic-gate	(init_cmdline): Initialize the data for the command-line
76027c478bd9Sstevel@tonic-gate	interface. The function to print the message is moved to
76037c478bd9Sstevel@tonic-gate	print_cmdline_message.
76047c478bd9Sstevel@tonic-gate	(enter_cmdline): Rewritten from scratch. Now deal with only the
76057c478bd9Sstevel@tonic-gate	pure command-line and the function to deal with a menu entry is
76067c478bd9Sstevel@tonic-gate	moved to run_script.
76077c478bd9Sstevel@tonic-gate	(run_script): New function.
76087c478bd9Sstevel@tonic-gate	* stage2/shared.h (PASSWORD_BUF): New macro.
76097c478bd9Sstevel@tonic-gate	(PASSWORD_BUFLEN): Likewise.
76107c478bd9Sstevel@tonic-gate	(CMDLINE_BUF): Likewise.
76117c478bd9Sstevel@tonic-gate	(CMDLINE_BUFLEN): Likewise.
76127c478bd9Sstevel@tonic-gate	(MENU_BUF): Likewise.
76137c478bd9Sstevel@tonic-gate	(MENU_BUFLEN): Likewise.
76147c478bd9Sstevel@tonic-gate	(fallback): Deleted.
76157c478bd9Sstevel@tonic-gate	(fallback_entry): Declared.
76167c478bd9Sstevel@tonic-gate	(default_entry): Likewise.
76177c478bd9Sstevel@tonic-gate	(BUILTIN_CMDLINE): New macro.
76187c478bd9Sstevel@tonic-gate	(BUILTIN_MENU): Likewise.
76197c478bd9Sstevel@tonic-gate	(BUILTIN_TITLE): Likewise.
76207c478bd9Sstevel@tonic-gate	(struct builtin): New tag.
76217c478bd9Sstevel@tonic-gate	(builtin_table): Declared.
76227c478bd9Sstevel@tonic-gate	(cmdline_t): Deleted.
76237c478bd9Sstevel@tonic-gate	(kernel_t): New type.
76247c478bd9Sstevel@tonic-gate	(kernel_type): Declared.
76257c478bd9Sstevel@tonic-gate	(grub_timeout): Likewise.
76267c478bd9Sstevel@tonic-gate	(init_builtins): Likewise.
76277c478bd9Sstevel@tonic-gate	(init_config): Likewise.
76287c478bd9Sstevel@tonic-gate	(find_command): Likewise.
76297c478bd9Sstevel@tonic-gate	(print_cmdline_message): Likewise.
76307c478bd9Sstevel@tonic-gate	(run_script): Likewise.
76317c478bd9Sstevel@tonic-gate	[!STAGE1_5] (bsd_boot): Deleted.
76327c478bd9Sstevel@tonic-gate	[!STAGE1_5] (load_image): Likewise.
76337c478bd9Sstevel@tonic-gate	[!STAGE1_5] (load_module): Likewise.
76347c478bd9Sstevel@tonic-gate	[!STAGE1_5] (load_initrd): Likewise.
76357c478bd9Sstevel@tonic-gate	* stage2/size_test: Set the maximum size of Stage 2 to 56320.
76367c478bd9Sstevel@tonic-gate	* stage2/stage2.c (grub_timeout): Deleted.
76377c478bd9Sstevel@tonic-gate	(menu_t): Likewise.
76387c478bd9Sstevel@tonic-gate	(run_menu): Changed the return type to void.
76397c478bd9Sstevel@tonic-gate	Use FALLBACK_ENTRY instead of FALLBACK.
76407c478bd9Sstevel@tonic-gate	Do not check the return value of enter_cmdline.
76417c478bd9Sstevel@tonic-gate	(run_menu) [GRUB_UTIL]: Call stop instead of returning
76427c478bd9Sstevel@tonic-gate	MENU_ABORT.
76437c478bd9Sstevel@tonic-gate	(cmain): Set MENU_ENTRIES to MENU_BUF.
76447c478bd9Sstevel@tonic-gate	Call init_config instead of clearing the variables directly.
76457c478bd9Sstevel@tonic-gate	Use CMDLINE_BUF for the command-line buffer instead of the
76467c478bd9Sstevel@tonic-gate	stack.
76477c478bd9Sstevel@tonic-gate	Adapted the analysis routine for the configuration file to the
76487c478bd9Sstevel@tonic-gate	new builtin commands interface.
76497c478bd9Sstevel@tonic-gate	Run enter_cmdline forever.
76507c478bd9Sstevel@tonic-gate	If run_menu returns, restart the loop.
76517c478bd9Sstevel@tonic-gate
76527c478bd9Sstevel@tonic-gate1999-09-04  Pavel Roskin  <pavel_roskin@geocities.com>
76537c478bd9Sstevel@tonic-gate
76547c478bd9Sstevel@tonic-gate	* docs/menu.lst: More meaningful examples. Not using (0x80,0)
76557c478bd9Sstevel@tonic-gate	notation anymore.
76567c478bd9Sstevel@tonic-gate	* stage2/stage2.c (run_menu): Erase the entered password before
76577c478bd9Sstevel@tonic-gate	get_cmdline(). Help on TAB disabled when entering the password.
76587c478bd9Sstevel@tonic-gate	* stage2/char_io.c (get_cmdline): Restore command-line even if
76597c478bd9Sstevel@tonic-gate	there is no help string.
76607c478bd9Sstevel@tonic-gate	* configure.in: --disable-gunzip disables decompression in
76617c478bd9Sstevel@tonic-gate	stage2.
76627c478bd9Sstevel@tonic-gate	* stage2/gunzip.c [NO_DECOMPRESSION]: Disable all code if
76637c478bd9Sstevel@tonic-gate	decompression is disabled.
76647c478bd9Sstevel@tonic-gate
76657c478bd9Sstevel@tonic-gate1999-09-03  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
76667c478bd9Sstevel@tonic-gate
76677c478bd9Sstevel@tonic-gate	* stage2/boot.c (load_image): Use PHDR->P_PADDR instead of
76687c478bd9Sstevel@tonic-gate	PHDR->P_VADDR. Reported by Ramon van Handel <vhandel@chem.vu.nl>.
76697c478bd9Sstevel@tonic-gate
76707c478bd9Sstevel@tonic-gate1999-09-03  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
76717c478bd9Sstevel@tonic-gate
76727c478bd9Sstevel@tonic-gate	* docs/help2man: Upgraded to 1.013.
76737c478bd9Sstevel@tonic-gate	* docs/grub.8: Regenerated.
76747c478bd9Sstevel@tonic-gate
76757c478bd9Sstevel@tonic-gate1999-09-02  Pavel Roskin  <pavel_roskin@geocities.com>
76767c478bd9Sstevel@tonic-gate
76777c478bd9Sstevel@tonic-gate	* stage2/cmdline.c (enter_cmdline) [GRUB_UTIL]: Add a space in
76787c478bd9Sstevel@tonic-gate	the LBA warning	message.
76797c478bd9Sstevel@tonic-gate
76807c478bd9Sstevel@tonic-gate1999-09-02  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
76817c478bd9Sstevel@tonic-gate
76827c478bd9Sstevel@tonic-gate	The character `=' after a command is now optional.
76837c478bd9Sstevel@tonic-gate
76847c478bd9Sstevel@tonic-gate	* stage2/char_io.c (get_cmdline): Search for a space or a equal
76857c478bd9Sstevel@tonic-gate	character after the first word in CMDLINE when TAB lists
76867c478bd9Sstevel@tonic-gate	completions, instead of just searching for a eqaul character.
76877c478bd9Sstevel@tonic-gate	* stage2/cmdline.c (skip_to): Treat the character `=' as a space
76887c478bd9Sstevel@tonic-gate	if AFTER_EQUAL is non-zero.
76897c478bd9Sstevel@tonic-gate	(commands): Delete all the equal characters.
76907c478bd9Sstevel@tonic-gate	* docs/menu.lst: Likewise.
76917c478bd9Sstevel@tonic-gate	* docs/grub.texi: Likewise.
76927c478bd9Sstevel@tonic-gate
76937c478bd9Sstevel@tonic-gate1999-09-01  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
76947c478bd9Sstevel@tonic-gate
76957c478bd9Sstevel@tonic-gate	* grub/asmstub.c (env_for_exit): New variable.
76967c478bd9Sstevel@tonic-gate	(grub_stage2): Do a setjmp in doit, and when it returns
76977c478bd9Sstevel@tonic-gate	non-zero, set STATUS to 1 if ERRNUM is non-zero.
76987c478bd9Sstevel@tonic-gate	(stop): Call longjmp instead of exit.
76997c478bd9Sstevel@tonic-gate
77007c478bd9Sstevel@tonic-gate1999-08-31  Pavel Roskin  <pavel_roskin@geocities.com>
77017c478bd9Sstevel@tonic-gate
77027c478bd9Sstevel@tonic-gate	* stage2/boot.c [GRUB_UTIL] (bsd_boot_entry): New function.
77037c478bd9Sstevel@tonic-gate	(bsd_boot) [GRUB_UTIL]: Set ENTRY_ADDR to BSD_BOOT_ENTRY to fake
77047c478bd9Sstevel@tonic-gate	the *BSD boot.
77057c478bd9Sstevel@tonic-gate
77067c478bd9Sstevel@tonic-gate1999-08-31  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
77077c478bd9Sstevel@tonic-gate
77087c478bd9Sstevel@tonic-gate	* stage2/fsys_fat.c (fat_create_blocklist): Cast FAT_BUF to
77097c478bd9Sstevel@tonic-gate	unsigned short * instead of unsigned long *. Suggested by Pavel
77107c478bd9Sstevel@tonic-gate	Roskin.
77117c478bd9Sstevel@tonic-gate
77127c478bd9Sstevel@tonic-gate1999-08-30  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
77137c478bd9Sstevel@tonic-gate
77147c478bd9Sstevel@tonic-gate	From Edward Killips <ekillips@triton.net>:
77157c478bd9Sstevel@tonic-gate	* stage2/cmdline.c (commands): Added hide and unhide.
77167c478bd9Sstevel@tonic-gate	(enter_cmdline): Likewise.
77177c478bd9Sstevel@tonic-gate	* stage2/disk_io.c (unhide_partition): New function.
77187c478bd9Sstevel@tonic-gate	(hide_partition): Likewise.
77197c478bd9Sstevel@tonic-gate	* stage2/pc_slice.h (PC_SLICE_TYPE_HIDDEN_FLAG): New macro.
77207c478bd9Sstevel@tonic-gate
77217c478bd9Sstevel@tonic-gate1999-08-29  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
77227c478bd9Sstevel@tonic-gate
77237c478bd9Sstevel@tonic-gate	From Pavel Roskin <pavel_roskin@geocities.com>:
77247c478bd9Sstevel@tonic-gate	* stage2/fsys_minix.c (namelen): New variable.
77257c478bd9Sstevel@tonic-gate	(MINIX_NAME_LEN): Deleted.
77267c478bd9Sstevel@tonic-gate	(minix_mount): Set NAMELEN to 14 if SUPRTBLOCK->S_MAGIC is
77277c478bd9Sstevel@tonic-gate	MINIX_SUPER_MAGIC, and set NAMELEN to 30 if it is
77287c478bd9Sstevel@tonic-gate	MINIX_SUPER_MAGIC2.
77297c478bd9Sstevel@tonic-gate	(minix_dir): Use NAMELEN instead of MINIX_NAME_LEN.
77307c478bd9Sstevel@tonic-gate
77317c478bd9Sstevel@tonic-gate1999-08-29  Pavel Roskin  <pavel_roslin@geocities.com>
77327c478bd9Sstevel@tonic-gate
77337c478bd9Sstevel@tonic-gate	* grub/Makefile.am, stage1/Makefile.am, stage2/Makefile.am:
77347c478bd9Sstevel@tonic-gate	Avoid using variables inclosed in '@' because they cannot be
77357c478bd9Sstevel@tonic-gate	overridden at the make time.
77367c478bd9Sstevel@tonic-gate
77377c478bd9Sstevel@tonic-gate1999-08-29  Pavel Roskin  <pavel_roskin@geocities.com>
77387c478bd9Sstevel@tonic-gate
77397c478bd9Sstevel@tonic-gate	* stage2/fsys_fat.c (fat_create_blocklist): Return 1 for the
77407c478bd9Sstevel@tonic-gate	root directory on FAT12 and FAT16.
77417c478bd9Sstevel@tonic-gate
77427c478bd9Sstevel@tonic-gate1999-08-27  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
77437c478bd9Sstevel@tonic-gate
77447c478bd9Sstevel@tonic-gate	* stage2/boot.c (load_image): Accept two arguments, KERNEL and
77457c478bd9Sstevel@tonic-gate	ARG. And use them instead of CUR_CMDLINE.
77467c478bd9Sstevel@tonic-gate	(load_module): Accept two arguments, MODULE and ARG. And use
77477c478bd9Sstevel@tonic-gate	them instead of CUR_CMDLINE.
77487c478bd9Sstevel@tonic-gate	(load_initrd): Accept one argument, INITRD. And use it instead
77497c478bd9Sstevel@tonic-gate	of CUR_CMDLINE.
77507c478bd9Sstevel@tonic-gate	(bsd_boot): Accept one additional argument, ARG. And use it
77517c478bd9Sstevel@tonic-gate	instead of CUR_CMDLINE.
77527c478bd9Sstevel@tonic-gate	* stage2/cmdline.c (enter_cmdline): Use MB_CMDLINE instead of
77537c478bd9Sstevel@tonic-gate	HEAP for the Multiboot command-line buffer.
77547c478bd9Sstevel@tonic-gate	* stage2/shared.h (MB_CMDLINE_BUF): New macro.
77557c478bd9Sstevel@tonic-gate	(MB_CMDLINE_BUFLEN): Likewise.
77567c478bd9Sstevel@tonic-gate
77577c478bd9Sstevel@tonic-gate1999-08-26  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
77587c478bd9Sstevel@tonic-gate
77597c478bd9Sstevel@tonic-gate	* docs/Makefile.am [GRUB_MAINT] (grub.8): The argument for the
77607c478bd9Sstevel@tonic-gate	option --name is changed to "the grub shell".
77617c478bd9Sstevel@tonic-gate	* docs/grub.8: Regenerated.
77627c478bd9Sstevel@tonic-gate	* docs/grub.texi: Do not use the name "the Stage 2 emulator" any
77637c478bd9Sstevel@tonic-gate	more. Use the name "the grub shell" instead.
77647c478bd9Sstevel@tonic-gate
77657c478bd9Sstevel@tonic-gate1999-08-26  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
77667c478bd9Sstevel@tonic-gate
77677c478bd9Sstevel@tonic-gate	From Klaus Reichl <klaus.reichl@alcatel.at>:
77687c478bd9Sstevel@tonic-gate	* stage2/fsys_minix.c: New file.
77697c478bd9Sstevel@tonic-gate	* stage2/size_test: Added a check for the size of minix_stage1_5.
77707c478bd9Sstevel@tonic-gate	* stage2/Makefile.am (libgrub_a_SOURCES): Added fsys_minix.c.
77717c478bd9Sstevel@tonic-gate	(libgrub_a_CFLAGS): Added -DFSYS_MINIX=1.
77727c478bd9Sstevel@tonic-gate	(nodist_pkgdata_DATA): Added minix_stage1_5.
77737c478bd9Sstevel@tonic-gate	(noinst_PROGRAMS): Added minix_stage1_5.exec.
77747c478bd9Sstevel@tonic-gate	(stage2_exec_SOURCES): Added fsys_minix.c.
77757c478bd9Sstevel@tonic-gate	(minix_stage1_5_exec_SOURCES): New variable.
77767c478bd9Sstevel@tonic-gate	(minix_stage1_5_exec_CFLAGS): Likewise.
77777c478bd9Sstevel@tonic-gate	(minix_stage1_5_exec_LDFLAGS): Likewise.
77787c478bd9Sstevel@tonic-gate	* stage2/pc_slice.h (PC_SLICE_TYPE_MINIX): New macro.
77797c478bd9Sstevel@tonic-gate	* stage2/disk_io.c (fsys_table) [FSYS_MINIX]: Added minix entry.
77807c478bd9Sstevel@tonic-gate	* stage2/filesys.h [FSYS_MINIX] (FSYS_MINIX_NUM): Set to 1.
77817c478bd9Sstevel@tonic-gate	[!FSYS_MINIX] (FSYS_MINIX_NUM): Set to 0.
77827c478bd9Sstevel@tonic-gate	[!NUM_FSYS] (NUM_FSYS): Added FSYS_MINIX_NUM.
77837c478bd9Sstevel@tonic-gate	* stage2/shared.h (STAGE2_ID_MINIX_STAGE1_5): New macro.
77847c478bd9Sstevel@tonic-gate	[STAGE1_5 && FSYS_MINIX] (STAGE2_ID): Set to
77857c478bd9Sstevel@tonic-gate	STAGE2_ID_MINIX_STAGE1_5.
77867c478bd9Sstevel@tonic-gate	* grub/Makefile.am (AM_CFLAGS): Added -DFSYS_MINIX=1.
77877c478bd9Sstevel@tonic-gate	* configure.in (--disable-minix): New option.
77887c478bd9Sstevel@tonic-gate
77897c478bd9Sstevel@tonic-gate1999-08-25  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
77907c478bd9Sstevel@tonic-gate
77917c478bd9Sstevel@tonic-gate	From Jochen Hoenicke <jochen@gnu.org>:
77927c478bd9Sstevel@tonic-gate	* stage2/fat.h (FAT_BPB_FAT_SECTORS_16): New macro.
77937c478bd9Sstevel@tonic-gate	(FAT_BPB_FAT_SECTORS_32): Likewise.
77947c478bd9Sstevel@tonic-gate	(FAT_BPB_IS_FAT32): Likewise.
77957c478bd9Sstevel@tonic-gate	(FAT_BPB_ROOT_DIR_CLUSTER): Likewise.
77967c478bd9Sstevel@tonic-gate	(FAT_BPB_FAT_SECTORS): If FAT_BPB_FAT_SECTORS_16 returns
77977c478bd9Sstevel@tonic-gate	a non-zero value, return it. Otherwise return
77987c478bd9Sstevel@tonic-gate	FAT_BPB_FAT_SECTORS_32.
77997c478bd9Sstevel@tonic-gate	(FAT_DIRENTRY_FIRST_CLUSTER): Corrected.
78007c478bd9Sstevel@tonic-gate	* stage2/fsys_fat.c (root_dir): New variable.
78017c478bd9Sstevel@tonic-gate	(fat_mount): Use the macro IS_PC_SLICE_TYPE_FAT instead of
78027c478bd9Sstevel@tonic-gate	checking for each fs types directly.
78037c478bd9Sstevel@tonic-gate	Omit the >64 sectors check.
78047c478bd9Sstevel@tonic-gate	If the current fs type is FAT32, then set FAT_SIZE to 8 and
78057c478bd9Sstevel@tonic-gate	get the root from BPB.
78067c478bd9Sstevel@tonic-gate	(fat_create_blocklist): Use the macro SECTOR_SIZE instead of a
78077c478bd9Sstevel@tonic-gate	magic number.
78087c478bd9Sstevel@tonic-gate	(fat_dir): Set MAP to ROOT_DIR instead of -1.
78097c478bd9Sstevel@tonic-gate	* stage2/pc_slice.h (PC_SLICE_TYPE_FAT32): New macro.
78107c478bd9Sstevel@tonic-gate	(PC_SLICE_TYPE_FAT32_LBA): Likewise.
78117c478bd9Sstevel@tonic-gate	(PC_SLICE_TYPE_FAT16_LBA): Likewise.
78127c478bd9Sstevel@tonic-gate	(IS_PC_SLICE_TYPE_FAT): Likewise.
78137c478bd9Sstevel@tonic-gate
78147c478bd9Sstevel@tonic-gate1999-08-25  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
78157c478bd9Sstevel@tonic-gate
78167c478bd9Sstevel@tonic-gate	* stage2/fsys_ffs.c (ffs_mount): Do not shift the fs type
78177c478bd9Sstevel@tonic-gate	FS_BSDFFS. Reported by Takehiro Suzuki
78187c478bd9Sstevel@tonic-gate	<takehiro@coral.ocn.ne.jp>.
78197c478bd9Sstevel@tonic-gate	* stage2/fsys_fat.c (fat_mount): Do not shift the fs type
78207c478bd9Sstevel@tonic-gate	FS_MSDOS.
78217c478bd9Sstevel@tonic-gate
78227c478bd9Sstevel@tonic-gate1999-08-13  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
78237c478bd9Sstevel@tonic-gate
78247c478bd9Sstevel@tonic-gate	Pavel Roskin's patch that adds new options to disable arbitrary
78257c478bd9Sstevel@tonic-gate	filesystems is heavily modified and applied.
78267c478bd9Sstevel@tonic-gate
78277c478bd9Sstevel@tonic-gate	* configure.in (--disable-ext2fs): New option.
78287c478bd9Sstevel@tonic-gate	(--disable-fat): Likewise.
78297c478bd9Sstevel@tonic-gate	(--disable-ffs): Likewise.
78307c478bd9Sstevel@tonic-gate	(FSYS_CFLAGS): New variable. Set to filesystems the user choose.
78317c478bd9Sstevel@tonic-gate	* grub/Makefile.am (AM_CFLAGS): Added -DFSYS_EXT2FS=1,
78327c478bd9Sstevel@tonic-gate	-DFSYS_FAT=1 and -DFSYS_FFS=1.
78337c478bd9Sstevel@tonic-gate	* stage2/Makefile.am (libgrub_a_CFLAGS): Likewise.
78347c478bd9Sstevel@tonic-gate	(stage2_exec_CFLAGS): Added @FSYS_CFLAGS@.
78357c478bd9Sstevel@tonic-gate	* stage2/filesys.h
78367c478bd9Sstevel@tonic-gate	[!(FSYS_FFS || FSYS_FAT || FSYS_EXT2FS)] (FSYS_FFS): Deleted.
78377c478bd9Sstevel@tonic-gate	[!(FSYS_FFS || FSYS_FAT || FSYS_EXT2FS)] (FSYS_FAT): Likewise.
78387c478bd9Sstevel@tonic-gate	[!(FSYS_FFS || FSYS_FAT || FSYS_EXT2FS)] (FSYS_EXT2FS): Likewise.
78397c478bd9Sstevel@tonic-gate	* stage2/fsys_ext2fs.c [!FSYS_EXT2FS]: Do not define anything.
78407c478bd9Sstevel@tonic-gate	* stage2/fsys_fat.c [!FSYS_FAT]: Likewise.
78417c478bd9Sstevel@tonic-gate	* stage2/fsys_ffs.c [!FSYS_FFS]: Likewise.
78427c478bd9Sstevel@tonic-gate
78437c478bd9Sstevel@tonic-gate1999-08-12  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
78447c478bd9Sstevel@tonic-gate
78457c478bd9Sstevel@tonic-gate	* stage1/stage1_lba.S: Use STAGE1_DRP_ADDR for the address of
78467c478bd9Sstevel@tonic-gate	drive parameters instead of DRIVE_PARAMETER.
78477c478bd9Sstevel@tonic-gate	(drive_parameter): Deleted.
78487c478bd9Sstevel@tonic-gate	* stage1/stage1.h (STAGE1_DRP_ADDR): New macro.
78497c478bd9Sstevel@tonic-gate	(STAGE1_DRP_SIZE): Likewise.
78507c478bd9Sstevel@tonic-gate
78517c478bd9Sstevel@tonic-gate1999-08-11  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
78527c478bd9Sstevel@tonic-gate
78537c478bd9Sstevel@tonic-gate	* stage2/bios.c (get_diskinfo): In LBA mode, set TOTAL_SECTORS
78547c478bd9Sstevel@tonic-gate	to the low 32bits of DRP.TOTAL_SECTORS instead of the multiple
78557c478bd9Sstevel@tonic-gate	of CHS.
78567c478bd9Sstevel@tonic-gate	* stage2/cmdline.c (enter_cmdline) [GRUB_UTIL]: In the command
78577c478bd9Sstevel@tonic-gate	"geometry", print the device file name instead of CHS/LBA
78587c478bd9Sstevel@tonic-gate	information.
78597c478bd9Sstevel@tonic-gate	* stage2/shared.h (device_map): Declared.
78607c478bd9Sstevel@tonic-gate	* grub/asmstub.c (device_map): Defined as a global variable
78617c478bd9Sstevel@tonic-gate	instead of a local variable.
78627c478bd9Sstevel@tonic-gate
78637c478bd9Sstevel@tonic-gate1999-08-10  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
78647c478bd9Sstevel@tonic-gate
78657c478bd9Sstevel@tonic-gate	Support the NetBSD and OpenBSD partition slices.
78667c478bd9Sstevel@tonic-gate
78677c478bd9Sstevel@tonic-gate	* stage2/pc_slice.h (PC_SLICE_TYPE_BSD): Deleted.
78687c478bd9Sstevel@tonic-gate	(PC_SLICE_TYPE_FREEBSD): New macro.
78697c478bd9Sstevel@tonic-gate	(PC_SLICE_TYPE_OPENBSD): Likewise.
78707c478bd9Sstevel@tonic-gate	(PC_SLICE_TYPE_NETBSD): Likewise.
78717c478bd9Sstevel@tonic-gate	(IS_PC_SLICE_TYPE_BSD_WITH_FS): Likewise.
78727c478bd9Sstevel@tonic-gate	(IS_PC_SLICE_TYPE_BSD): Likewise.
78737c478bd9Sstevel@tonic-gate	* stage2/fsys_ffs.c (ffs_mount): Use the macro
78747c478bd9Sstevel@tonic-gate	IS_PC_SLICE_TYPE_BSD_WITH_FS instead of checking if
78757c478bd9Sstevel@tonic-gate	CURRECT_SLICE is equal to the BSD partition type directly.
78767c478bd9Sstevel@tonic-gate	* stage2/fsys_ext2fs.c (ext2fs_mount): Likewise.
78777c478bd9Sstevel@tonic-gate	* stage2/fsys_fat.c (fat_mount): Likewise.
78787c478bd9Sstevel@tonic-gate	* stage2/disk_io.c (check_BSD_parts): Set the low bits of
78797c478bd9Sstevel@tonic-gate	CURRENT_SLICE to PC_SLICE_TYPE_FREEBSD instead of
78807c478bd9Sstevel@tonic-gate	PC_SLICE_TYPE_BSD.
78817c478bd9Sstevel@tonic-gate	(real_open_partition): Use the macro IS_PC_SLICE_TYPE_BSD instead
78827c478bd9Sstevel@tonic-gate	of checking if CURRENT_SLICE is	equal to the BSD partition type
78837c478bd9Sstevel@tonic-gate	directly.
78847c478bd9Sstevel@tonic-gate
78857c478bd9Sstevel@tonic-gate1999-08-09  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
78867c478bd9Sstevel@tonic-gate
78877c478bd9Sstevel@tonic-gate	* stage2/cmdline.c (commands): Added geometry.
78887c478bd9Sstevel@tonic-gate	(enter_cmdline): If CUR_HEAP has the string "geometry", print
78897c478bd9Sstevel@tonic-gate	out the information about a drive that the argument represents.
78907c478bd9Sstevel@tonic-gate
78917c478bd9Sstevel@tonic-gate1999-08-09  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
78927c478bd9Sstevel@tonic-gate
78937c478bd9Sstevel@tonic-gate	* stage2/stage2.c (run_menu): Terminate the string PASSWORD
78947c478bd9Sstevel@tonic-gate	before checking if ENTERED is identical to PASSWORD. Reported
78957c478bd9Sstevel@tonic-gate	by Mark Lundeberg <aa026@pgfn.bc.ca>.
78967c478bd9Sstevel@tonic-gate
78977c478bd9Sstevel@tonic-gate1999-08-08  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
78987c478bd9Sstevel@tonic-gate
78997c478bd9Sstevel@tonic-gate	* stage2/stage2.c (set_line_normal): New function.
79007c478bd9Sstevel@tonic-gate	(set_line_highlight): Likewise.
79017c478bd9Sstevel@tonic-gate	(run_menu): Do not call the function set_line directly any
79027c478bd9Sstevel@tonic-gate	longer, call set_line_normal and set_line_highlight instead.
79037c478bd9Sstevel@tonic-gate
79047c478bd9Sstevel@tonic-gate	From Pavel Roskin:
79057c478bd9Sstevel@tonic-gate	* stage2/stage2.c (run_menu) [GRUB_UTIL]: Quit when pushing the
79067c478bd9Sstevel@tonic-gate	key `q'.
79077c478bd9Sstevel@tonic-gate
79087c478bd9Sstevel@tonic-gate1999-08-05  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
79097c478bd9Sstevel@tonic-gate
79107c478bd9Sstevel@tonic-gate	* acinclude.m4 (grub_ASM_PREFIX_REQUIREMENT): New function.
79117c478bd9Sstevel@tonic-gate	* configure.in: Call grub_ASM_PREFIX_REQUIREMENT, and define
79127c478bd9Sstevel@tonic-gate	ADDR32 and DATA32 based on the result.
79137c478bd9Sstevel@tonic-gate	* stage2/asm.S: Replace addr32 and data32 prefixes with	ADDR32
79147c478bd9Sstevel@tonic-gate	and DATA32 respectively.
79157c478bd9Sstevel@tonic-gate
79167c478bd9Sstevel@tonic-gate1999-08-05  Pavel Roskin  <pavel_roskin@geocities.com>
79177c478bd9Sstevel@tonic-gate
79187c478bd9Sstevel@tonic-gate	* stage2/boot.c (load_image): Use RAW_ADDR macro when loading
79197c478bd9Sstevel@tonic-gate	an a.out kernel.
79207c478bd9Sstevel@tonic-gate
79217c478bd9Sstevel@tonic-gate1999-08-04  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
79227c478bd9Sstevel@tonic-gate
79237c478bd9Sstevel@tonic-gate	* stage2/asm.S: Make each of the addr32 and data32 prefixes
79247c478bd9Sstevel@tonic-gate	appear in the same line as it modifies, as the gas manual in
79257c478bd9Sstevel@tonic-gate	binutils-2.9.5.0.4 says "it must be in the same line".
79267c478bd9Sstevel@tonic-gate
79277c478bd9Sstevel@tonic-gate1999-08-04  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
79287c478bd9Sstevel@tonic-gate
79297c478bd9Sstevel@tonic-gate	* boot.c (load_image): Fix a strcmp test. Reported by Pavel
79307c478bd9Sstevel@tonic-gate	Roskin <pavel_roskin@geocities.com>.
79317c478bd9Sstevel@tonic-gate
79327c478bd9Sstevel@tonic-gate1999-08-03  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
79337c478bd9Sstevel@tonic-gate
79347c478bd9Sstevel@tonic-gate	From "Dan J. Walters" <djw@cs.utexas.edu>:
79357c478bd9Sstevel@tonic-gate	* stage2/i386-elf.h (EI_BRAND): New macro.
79367c478bd9Sstevel@tonic-gate	* stage2/boot.c (load_image): If the kernel is ELF, check if it
79377c478bd9Sstevel@tonic-gate	is a FreeBSD kernel as well as a Multiboot kernel, and if it is
79387c478bd9Sstevel@tonic-gate	a FreeBSD kernel, then mask ENTRY_ADDR since FreeBSD requires
79397c478bd9Sstevel@tonic-gate	that. Likewise, mask MEMADDR.
79407c478bd9Sstevel@tonic-gate	(bsd_boot): Set the bi_symtab and the bi_esymtab members of BI
79417c478bd9Sstevel@tonic-gate	only if MBI.FLAGS has the flag MB_INFO_AOUT_SYMS. Otherwise,
79427c478bd9Sstevel@tonic-gate	clear them.
79437c478bd9Sstevel@tonic-gate
79447c478bd9Sstevel@tonic-gate1999-07-30  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
79457c478bd9Sstevel@tonic-gate
79467c478bd9Sstevel@tonic-gate	From Pavel Roskin <pavel_roskin@geocities.com>:
79477c478bd9Sstevel@tonic-gate	* grub/getopt.c: New file. Copied from texinfo-3.12n.
79487c478bd9Sstevel@tonic-gate	* grub/getopt1.c: Likewise.
79497c478bd9Sstevel@tonic-gate	* grub/getopt.h: Likewise.
79507c478bd9Sstevel@tonic-gate	* grub/Makefile.am (grub_SOURCES): Added getopt.c, getopt1.c and
79517c478bd9Sstevel@tonic-gate	getopt.h.
79527c478bd9Sstevel@tonic-gate	* configure.in: Check for string.h and strings.h.
79537c478bd9Sstevel@tonic-gate	* grub/asmstub.c (grub_stage2): Fix a misordering in the output
79547c478bd9Sstevel@tonic-gate	format of the inline assembly.
79557c478bd9Sstevel@tonic-gate
79567c478bd9Sstevel@tonic-gate1999-07-30  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
79577c478bd9Sstevel@tonic-gate
79587c478bd9Sstevel@tonic-gate	From Pavel Roskin <pavel_roskin@geocities.com>:
79597c478bd9Sstevel@tonic-gate	* stage2/asm.S (get_diskinfo_standard): If the number of sectors
79607c478bd9Sstevel@tonic-gate	returned is zero, then return an error code, even if non-carrier.
79617c478bd9Sstevel@tonic-gate
79627c478bd9Sstevel@tonic-gate1999-07-15  Gordon Matzigkeit  <gord@zen.fig.org>
79637c478bd9Sstevel@tonic-gate
79647c478bd9Sstevel@tonic-gate	* docs/Makefile.am (grub.info): Use an ugly hack to downgrade
79657c478bd9Sstevel@tonic-gate 	grub.texi so that it works with Debian's version of texinfo.
79667c478bd9Sstevel@tonic-gate
79677c478bd9Sstevel@tonic-gate1999-07-26  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
79687c478bd9Sstevel@tonic-gate
79697c478bd9Sstevel@tonic-gate	* stage2/bios.c (get_diskinfo): When DRIVE is a floppy drive,
79707c478bd9Sstevel@tonic-gate	try standard probe routine at first. Reported by Peter Astrand
79717c478bd9Sstevel@tonic-gate	<altic@lysator.liu.se>.
79727c478bd9Sstevel@tonic-gate
79737c478bd9Sstevel@tonic-gate	* grub/main.c (main): Call printf instead of grub_printf.
79747c478bd9Sstevel@tonic-gate	Reported by Klaus Reichl <a8709182@unet.univie.ac.at>.
79757c478bd9Sstevel@tonic-gate
79767c478bd9Sstevel@tonic-gate1999-07-15  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
79777c478bd9Sstevel@tonic-gate
79787c478bd9Sstevel@tonic-gate	* stage2/cmdline.c (skip_to): Don't increase CMDLINE if the
79797c478bd9Sstevel@tonic-gate	character to which CMDLINE points is NUL.
79807c478bd9Sstevel@tonic-gate
79817c478bd9Sstevel@tonic-gate	* stage2/Makefile.am (EXTRA_DIST): Removed smp-imps.c.
79827c478bd9Sstevel@tonic-gate	(stage2_exec_SOURCES): Added smp-imps.c.
79837c478bd9Sstevel@tonic-gate	* stage2/cmdline.c [!GRUB_UTIL] (IMPS_DEBUG) (KERNEL_PRINT)
79847c478bd9Sstevel@tonic-gate	(CMOS_WRITE_BYTE) (CMOS_READ_BYTE) (PHYS_TO_VIRTUAL)
79857c478bd9Sstevel@tonic-gate	(VIRTUAL_TO_PHYS) (inb) (outb) (cmos_write_byte)
79867c478bd9Sstevel@tonic-gate	(cmos_read_byte): These are now defined in ...
79877c478bd9Sstevel@tonic-gate	* stage2/smp-imps.c (IMPS_DEBUG) (KERNEL_PRINT)
79887c478bd9Sstevel@tonic-gate	(CMOS_WRITE_BYTE) (CMOS_READ_BYTE) (PHYS_TO_VIRTUAL)
79897c478bd9Sstevel@tonic-gate	(VIRTUAL_TO_PHYS) (inb) (outb) (cmos_write_byte)
79907c478bd9Sstevel@tonic-gate	(cmos_read_byte): ... here.
79917c478bd9Sstevel@tonic-gate	* stage2/cmdline.c [!GRUB_UTIL]: Include apic.h and smp-imps.h.
79927c478bd9Sstevel@tonic-gate
79937c478bd9Sstevel@tonic-gate1999-07-14  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
79947c478bd9Sstevel@tonic-gate
79957c478bd9Sstevel@tonic-gate	The function ungetch is simulated so that the user can use a
79967c478bd9Sstevel@tonic-gate	buggy curses.
79977c478bd9Sstevel@tonic-gate
79987c478bd9Sstevel@tonic-gate	* grub/asmstub.c [HAVE_LIBCURSES] (save_char): New variable.
79997c478bd9Sstevel@tonic-gate	(getkey) [HAVE_LIBCURSES]: If SAVE_CHAR is not ERR, return
80007c478bd9Sstevel@tonic-gate	SAVE_CHAR and clear it.
80017c478bd9Sstevel@tonic-gate	(checkkey) [HAVE_LIBCURSES]: If SAVE_CHAR is not ERR, return
80027c478bd9Sstevel@tonic-gate	SAVE_CHAR. If C is not ERR, set SAVE_CHAR to C.
80037c478bd9Sstevel@tonic-gate
80047c478bd9Sstevel@tonic-gate1999-07-14  Pavel Roskin  <pavel_roskin@geocities.com>
80057c478bd9Sstevel@tonic-gate
80067c478bd9Sstevel@tonic-gate	* stage2/char_io.c (get_cmdline) [GRUB_UTIL]: Recognize
80077c478bd9Sstevel@tonic-gate	backspace when ncurses fails to do this.
80087c478bd9Sstevel@tonic-gate
80097c478bd9Sstevel@tonic-gate	* grub/asmstub.c (grub_stage2) [HAVE_LIBCURSES]: Call wtimeout
80107c478bd9Sstevel@tonic-gate	instead of nodelay.
80117c478bd9Sstevel@tonic-gate	(getkey) [HAVE_LIBCURSES]: Likewise.
80127c478bd9Sstevel@tonic-gate
80137c478bd9Sstevel@tonic-gate1999-07-14  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
80147c478bd9Sstevel@tonic-gate
80157c478bd9Sstevel@tonic-gate	* stage1/stage1_lba.S (probe_values): New variable. This is not
80167c478bd9Sstevel@tonic-gate	used actually, but prevents `install' command from failing
80177c478bd9Sstevel@tonic-gate	bogusly.
80187c478bd9Sstevel@tonic-gate
80197c478bd9Sstevel@tonic-gate1999-07-14  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
80207c478bd9Sstevel@tonic-gate
80217c478bd9Sstevel@tonic-gate	All constants in stage1s are moved to stage1.h and renamed
80227c478bd9Sstevel@tonic-gate	appropriately, and include stage1.h instead.
80237c478bd9Sstevel@tonic-gate
80247c478bd9Sstevel@tonic-gate	* grub/Makefile.am (AM_CFLAGS): Added the include path to stage1.
80257c478bd9Sstevel@tonic-gate	* stage2/Makefile.am (INCLUDES): New variable.
80267c478bd9Sstevel@tonic-gate	* stage1/Makefile.am (stage1_exec_SOURCES): Added stage1.h
80277c478bd9Sstevel@tonic-gate	(stage1_lba_exec_SOURCES): Likewise.
80287c478bd9Sstevel@tonic-gate	* stage1/stage1.h: New file.
80297c478bd9Sstevel@tonic-gate	* stage1/stage1.S (SIGNATURE): Renamed to ...
80307c478bd9Sstevel@tonic-gate	* stage1/stage1.h (STAGE1_SIGNATURE): ... this.
80317c478bd9Sstevel@tonic-gate	* stage1/stage1.S (BPBEND): Renamed to ...
80327c478bd9Sstevel@tonic-gate	* stage1/stage1.h (STAGE1_BPBEND): ... this.
80337c478bd9Sstevel@tonic-gate	* stage1/stage1.S (PARTSTART): Renamed to ...
80347c478bd9Sstevel@tonic-gate	* stage1/stage1.h (STAGE1_PARTSTART): ... this.
80357c478bd9Sstevel@tonic-gate	* stage1/stage1.S (MINPARMSIZ): Renamed to ...
80367c478bd9Sstevel@tonic-gate	* stage1/stage1.h (STAGE1_MINPARMSIZE): ... this.
80377c478bd9Sstevel@tonic-gate	* stage1/stage1.S (LISTSIZ): Renamed to ...
80387c478bd9Sstevel@tonic-gate	* stage1/stage1.h (STAGE1_LISTSIZE): ... this.
80397c478bd9Sstevel@tonic-gate	* stage1/stage1.S (REALSTACK): Renamed to ...
80407c478bd9Sstevel@tonic-gate	* stage1/stage1.h (STAGE1_STACKSEG): ... this.
80417c478bd9Sstevel@tonic-gate	* stage1/stage1.S (BUFFERSEG): Renamed to ...
80427c478bd9Sstevel@tonic-gate	* stage1/stage1.h (STAGE1_BUFFERSEG): ... this.
80437c478bd9Sstevel@tonic-gate	* stage1/stage1.S (BIOS_HD_FLAG): Renamed to ...
80447c478bd9Sstevel@tonic-gate	* stage1/stage1.h (STAGE1_BIOS_HD_FLAG): ... this.
80457c478bd9Sstevel@tonic-gate	* stage1/stage1_lba.S (SIGNATURE): Removed.
80467c478bd9Sstevel@tonic-gate	* stage1/stage1_lba.S (BPBEND): Likewise.
80477c478bd9Sstevel@tonic-gate	* stage1/stage1_lba.S (PARTSTART): Likewise.
80487c478bd9Sstevel@tonic-gate	* stage1/stage1_lba.S (MINPARMSIZ): Likewise.
80497c478bd9Sstevel@tonic-gate	* stage1/stage1_lba.S (LISTSIZ): Likewise.
80507c478bd9Sstevel@tonic-gate	* stage1/stage1_lba.S (REALSTACK): Likewise.
80517c478bd9Sstevel@tonic-gate	* stage1/stage1_lba.S (BUFFERSEG): Likewise.
80527c478bd9Sstevel@tonic-gate	* stage1/stage1_lba.S (BIOS_HD_FLAG): Likewise.
80537c478bd9Sstevel@tonic-gate
80547c478bd9Sstevel@tonic-gate	* stage1/stage1.S (stage1_id): New variable.
80557c478bd9Sstevel@tonic-gate	* stage1/stage1_lba.S (stage1_id): Likewise.
80567c478bd9Sstevel@tonic-gate	* stage1/stage1.h (COMPAT_VERSION_MINOR): Set to 2.
80577c478bd9Sstevel@tonic-gate	(STAGE1_ID_OFFSET): New macro.
80587c478bd9Sstevel@tonic-gate	(STAGE1_ID_CHS): Likewise.
80597c478bd9Sstevel@tonic-gate	(STAGE1_ID_LBA): Likewise.
80607c478bd9Sstevel@tonic-gate	* stage2/cmdline.c (enter_cmdline) [!GRUB_UTIL]: When running
80617c478bd9Sstevel@tonic-gate	the command `install' and STAGE1_FILE is stage1_lba, check if
80627c478bd9Sstevel@tonic-gate	LBA is supported.
80637c478bd9Sstevel@tonic-gate	(enter_cmdline) [GRUB_UTIL]: In the same case above, check only
80647c478bd9Sstevel@tonic-gate	if CURRENT_DRIVE is a hard disk and, if so, print a warning
80657c478bd9Sstevel@tonic-gate	message, because /sbin/grub cannot detect if LBA is supported or
80667c478bd9Sstevel@tonic-gate	not.
80677c478bd9Sstevel@tonic-gate
80687c478bd9Sstevel@tonic-gate	* stage1/stage1_lba.S: Fix a bug that incorrectly assigns the
80697c478bd9Sstevel@tonic-gate	segment of buffer address.
80707c478bd9Sstevel@tonic-gate
80717c478bd9Sstevel@tonic-gate1999-07-13  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
80727c478bd9Sstevel@tonic-gate
80737c478bd9Sstevel@tonic-gate	* stage2/boot.c (load_image): When removing "vga=...", memmove
80747c478bd9Sstevel@tonic-gate	the length of VGA_END plus one.
80757c478bd9Sstevel@tonic-gate
80767c478bd9Sstevel@tonic-gate1999-07-12  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
80777c478bd9Sstevel@tonic-gate
80787c478bd9Sstevel@tonic-gate	* stage2/bios.c (get_diskinfo): In LBA mode, compute
80797c478bd9Sstevel@tonic-gate	TOTAL_SECTORS from DRP instead of GEOMETRY.
80807c478bd9Sstevel@tonic-gate	Clear GEOMETRY->FLAGS first.
80817c478bd9Sstevel@tonic-gate
80827c478bd9Sstevel@tonic-gate	* stage2/boot.c (load_image): Fix inverted lines.
80837c478bd9Sstevel@tonic-gate
80847c478bd9Sstevel@tonic-gate1999-07-12  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
80857c478bd9Sstevel@tonic-gate
80867c478bd9Sstevel@tonic-gate	Support Linux video mode selection.
80877c478bd9Sstevel@tonic-gate
80887c478bd9Sstevel@tonic-gate	* stage2/shared.h (LINUX_VID_MODE_OFFSET): New macro.
80897c478bd9Sstevel@tonic-gate	(LINUX_VID_MODE_NORMAL): Likewise.
80907c478bd9Sstevel@tonic-gate	(LINUX_VID_MODE_EXTENDED): Likewise.
80917c478bd9Sstevel@tonic-gate	(LINUX_VID_MODE_ASK): Likewise.
80927c478bd9Sstevel@tonic-gate	[!WITHOUT_LIBC_STUBS] (strlen): Likewise.
80937c478bd9Sstevel@tonic-gate	(grub_strlen): Declared.
80947c478bd9Sstevel@tonic-gate	* stage2/boot.c (load_image): Added Linux video mode selection.
80957c478bd9Sstevel@tonic-gate	* stage2/char_io.c [!STAGE1_5] (grub_strlen): New function.
80967c478bd9Sstevel@tonic-gate
80977c478bd9Sstevel@tonic-gate1999-07-12  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
80987c478bd9Sstevel@tonic-gate
80997c478bd9Sstevel@tonic-gate	* stage2/char_io.c (print_error): Print ERRNUM in the format of
81007c478bd9Sstevel@tonic-gate	%u instead of %d.
81017c478bd9Sstevel@tonic-gate	(convert_to_ascii) [STAGE1_5]: Eliminate the `x' and `d'
81027c478bd9Sstevel@tonic-gate	handling code.
81037c478bd9Sstevel@tonic-gate	(grub_printf): Declare FORMAT as `const char *'.
81047c478bd9Sstevel@tonic-gate	(grub_printf) [STAGE1_5]: Eliminate the `x' and `d' handling
81057c478bd9Sstevel@tonic-gate	code.
81067c478bd9Sstevel@tonic-gate	(get_based_digit): Removed.
81077c478bd9Sstevel@tonic-gate	(safe_parse_maxint): Remove unnecessary `register' prefixes,
81087c478bd9Sstevel@tonic-gate	because GCC does better optimization.
81097c478bd9Sstevel@tonic-gate	Declare DIGIT as `unsigned int' and calculate the value by more
81107c478bd9Sstevel@tonic-gate	compact instructions.
81117c478bd9Sstevel@tonic-gate	[!STAGE1_5] (grub_strncat): Declare S2 as `const char *'.
81127c478bd9Sstevel@tonic-gate	[!STAGE1_5] (grub_strcmp): Declare S1 and S2 as `const char *'.
81137c478bd9Sstevel@tonic-gate	[!STAGE1_5] (grub_strstr): Likewise.
81147c478bd9Sstevel@tonic-gate	(grub_memmove): Declare FROM as `const char *'.
81157c478bd9Sstevel@tonic-gate	The copy code is replaced with inline assembly code stolen from
81167c478bd9Sstevel@tonic-gate	Linux-2.2.2.
81177c478bd9Sstevel@tonic-gate
81187c478bd9Sstevel@tonic-gate	* stage2/shared.h (grub_printf) : Corrected.
81197c478bd9Sstevel@tonic-gate	(grub_strncat): Likewise.
81207c478bd9Sstevel@tonic-gate	(grub_memmove): Likewise.
81217c478bd9Sstevel@tonic-gate	(grub_strstr): Likewise.
81227c478bd9Sstevel@tonic-gate	(grub_strcmp): Likewise.
81237c478bd9Sstevel@tonic-gate
81247c478bd9Sstevel@tonic-gate1999-07-11  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
81257c478bd9Sstevel@tonic-gate
81267c478bd9Sstevel@tonic-gate	* stage1/stage1.S (sectors): Change the size to long.
81277c478bd9Sstevel@tonic-gate	(heads): Likewise.
81287c478bd9Sstevel@tonic-gate	(sector_start): New variable.
81297c478bd9Sstevel@tonic-gate	(head_start): Likewise.
81307c478bd9Sstevel@tonic-gate	(cylinder_start): Likewise.
81317c478bd9Sstevel@tonic-gate	(final_init): Set %si to SECTORS first, and use %si for memory
81327c478bd9Sstevel@tonic-gate	references.
81337c478bd9Sstevel@tonic-gate	Zero %eax so that the high 16 bits are always zero.
81347c478bd9Sstevel@tonic-gate	Set %di to FIRSTLIST - LISTSIZ instead of FIRSTLIST.
81357c478bd9Sstevel@tonic-gate	(bootloop): Omit the complex CHS recomputation, and always
81367c478bd9Sstevel@tonic-gate	compute them from LBA address instead.
81377c478bd9Sstevel@tonic-gate	Call 32bits div instructions instead of 16bits div instructions.
81387c478bd9Sstevel@tonic-gate	Update the position where to load data from at the end of this
81397c478bd9Sstevel@tonic-gate	loop, instead of the beginning.
81407c478bd9Sstevel@tonic-gate
81417c478bd9Sstevel@tonic-gate	* stage1/stage1_lba.S: New file.
81427c478bd9Sstevel@tonic-gate	* stage1/Makefile.am (nodist_pkgdata_DATA): Added stage1_lba.
81437c478bd9Sstevel@tonic-gate	(LDFLAGS): New variable.
81447c478bd9Sstevel@tonic-gate	(noinst_PROGRAMS): Added stage1_lba.exec.
81457c478bd9Sstevel@tonic-gate	(stage1_lba_exec_SOURCES): New variable.
81467c478bd9Sstevel@tonic-gate	(%: %.exec): New rule.
81477c478bd9Sstevel@tonic-gate
81487c478bd9Sstevel@tonic-gate1999-06-28  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
81497c478bd9Sstevel@tonic-gate
81507c478bd9Sstevel@tonic-gate	* grub/main.c (main): The third argument for strtoul is changed
81517c478bd9Sstevel@tonic-gate	to 0 in the case where an option is OPT_INSTALL_PARTIION.
81527c478bd9Sstevel@tonic-gate	Reported by Pavel Roskin <pavel_roskin@geocities.com>.
81537c478bd9Sstevel@tonic-gate
81547c478bd9Sstevel@tonic-gate1999-06-27  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
81557c478bd9Sstevel@tonic-gate
81567c478bd9Sstevel@tonic-gate	* stage2/shared.h (STAGE2_STAGE2_ID): New macro.
81577c478bd9Sstevel@tonic-gate	(STAGE2_VER_STR_OFFS): Set to 0xd.
81587c478bd9Sstevel@tonic-gate	(STAGE2_ID_STAGE2): New macro.
81597c478bd9Sstevel@tonic-gate	(STAGE2_ID_FFS_STAGE1_5): Likewise.
81607c478bd9Sstevel@tonic-gate	(STAGE2_ID_E2FS_STAGE1_5): Likewise.
81617c478bd9Sstevel@tonic-gate	(STAGE2_ID_FAT_STAGE1_5): Likewise.
81627c478bd9Sstevel@tonic-gate	(STAGE2_ID) [!STAGE1_5]: Defined as STAGE2_ID_STAGE2.
81637c478bd9Sstevel@tonic-gate	(STAGE2_ID) [STAGE1_5] [FSYS_FFS]: Defined as
81647c478bd9Sstevel@tonic-gate	STAGE2_ID_FFS_STAGE1_5.
81657c478bd9Sstevel@tonic-gate	(STAGE2_ID) [STAGE1_5] [FSYS_EXT2FS]: Defined as
81667c478bd9Sstevel@tonic-gate	STAGE2_ID_STAGE1_5.
81677c478bd9Sstevel@tonic-gate	(STAGE2_ID) [STAGE1_5] [FSYS_FAT]: Defined as
81687c478bd9Sstevel@tonic-gate	STAGE2_ID_FAT_STAGE1_5.
81697c478bd9Sstevel@tonic-gate	(COMPAT_VERSION_MINOR): Set to 1.
81707c478bd9Sstevel@tonic-gate	* stage2/asm.S (stage2_id): New variable.
81717c478bd9Sstevel@tonic-gate	* stage1/stage1.S: Change the minor version to 1.
81727c478bd9Sstevel@tonic-gate
81737c478bd9Sstevel@tonic-gate1999-06-27  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
81747c478bd9Sstevel@tonic-gate
81757c478bd9Sstevel@tonic-gate	* configure.in (CFLAGS): Set to "-g", since only this flag is
81767c478bd9Sstevel@tonic-gate	always sharable.
81777c478bd9Sstevel@tonic-gate	(STAGE1_CFLAGS): Set to "-O2", and AC_SUBST this.
81787c478bd9Sstevel@tonic-gate	(GRUB_CFLAGS): Likewise.
81797c478bd9Sstevel@tonic-gate	(saved_CFLAGS): New variable for temporarily saving CFLAGS.
81807c478bd9Sstevel@tonic-gate	(STAGE2_CFLAGS): Set to "-Os" if this option is available,
81817c478bd9Sstevel@tonic-gate	otherwise set to "-fno-strength-reduce -fno-unroll-loops",
81827c478bd9Sstevel@tonic-gate	and then AC_SUBST this.
81837c478bd9Sstevel@tonic-gate	* grub/Makefile.am (AM_CFLAGS): Prepended @GRUB_CFLAGS@.
81847c478bd9Sstevel@tonic-gate	* stage1/Makefile.am (AM_CFLAGS): Prepended @STAGE1_CFLAGS@.
81857c478bd9Sstevel@tonic-gate	* stage2/Makefile.am (libgrub_a_CFLAGS): Prepened @GRUB_CFLAGS@.
81867c478bd9Sstevel@tonic-gate	(STAGE2_COMPILE): Prepended @STAGE2_CFLAGS@.
81877c478bd9Sstevel@tonic-gate
81887c478bd9Sstevel@tonic-gate	* stage2/asm.S (chain_stage2): Pass CURRENT_PARTITION and
81897c478bd9Sstevel@tonic-gate	CURRENT_DRIVE, instead of INSTALL_PARTITION and BOOT_DRIVE.
81907c478bd9Sstevel@tonic-gate
81917c478bd9Sstevel@tonic-gate1999-06-27  Pavel Roskin  <pavel_roskin@geocities.com>
81927c478bd9Sstevel@tonic-gate
81937c478bd9Sstevel@tonic-gate	* configure.in: set CFLAGS to "-Os -g" for compilers which
81947c478bd9Sstevel@tonic-gate	understand "-Os" if CFLAGS is not already set. Use
81957c478bd9Sstevel@tonic-gate	"-O2 -fno-strength-reduce -fno-unroll-loops -g" for older gcc
81967c478bd9Sstevel@tonic-gate	versions.
81977c478bd9Sstevel@tonic-gate
81987c478bd9Sstevel@tonic-gate1999-06-25  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
81997c478bd9Sstevel@tonic-gate
82007c478bd9Sstevel@tonic-gate	* stage2/disk_io.c (attempt_mount) [STAGE1_5]: Set FSYS_TYPE to
82017c478bd9Sstevel@tonic-gate	0, and set it to NUM_FSYS if mount fails.
82027c478bd9Sstevel@tonic-gate	(real_open_partition): Call rawread in Stage 1.5 as well.
82037c478bd9Sstevel@tonic-gate
82047c478bd9Sstevel@tonic-gate1999-06-24  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
82057c478bd9Sstevel@tonic-gate
82067c478bd9Sstevel@tonic-gate	* Makefile.am (SUBDIRS): Change the order of the directories so
82077c478bd9Sstevel@tonic-gate	that a directory will be made after the dependent directories
82087c478bd9Sstevel@tonic-gate	are made. `grub' depends on `stage2', and `docs' depends on
82097c478bd9Sstevel@tonic-gate	`grub'. Do not make in parallel.
82107c478bd9Sstevel@tonic-gate	* docs/help2man: Copied from help2man-1.012, which contains my
82117c478bd9Sstevel@tonic-gate	previous change.
82127c478bd9Sstevel@tonic-gate	* docs/grub.8: Regenerated.
82137c478bd9Sstevel@tonic-gate
82147c478bd9Sstevel@tonic-gate1999-06-24  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
82157c478bd9Sstevel@tonic-gate
82167c478bd9Sstevel@tonic-gate	Build process is cleaned up. Stage 2 and Stage 1.5's are all
82177c478bd9Sstevel@tonic-gate	built in the directory stage2.
82187c478bd9Sstevel@tonic-gate
82197c478bd9Sstevel@tonic-gate	From Pavel Roskin <pavel_roskin@geocities.com>:
82207c478bd9Sstevel@tonic-gate	* Makefile.am (SUBDIRS): e2fs_stage1_5, ffs_stage1_5,
82217c478bd9Sstevel@tonic-gate	fat_stage1_5 and shared_src are removed.
82227c478bd9Sstevel@tonic-gate	(DISTCLEANFILES): Deleted.
82237c478bd9Sstevel@tonic-gate	* configure.in: Call AC_PROG_RANLIB.
82247c478bd9Sstevel@tonic-gate	(AC_INIT): Change the argument to stage2/stage2.c.
82257c478bd9Sstevel@tonic-gate	(LIBS): Renamed to ...
82267c478bd9Sstevel@tonic-gate	(GRUB_LIBS): ... this, and call AC_SUBST for this.
82277c478bd9Sstevel@tonic-gate	Our own rules are removed.
82287c478bd9Sstevel@tonic-gate	(AC_OUTPUT): e2fs_stage1_5/Makefile, ffs_stage1_5/Makefile,
82297c478bd9Sstevel@tonic-gate	fat_stage1_5/Makefile and shared_src/Makefile are removed.
82307c478bd9Sstevel@tonic-gate	* docs/Makefile.am (HELP2MAN): The prefix $(srcdir) is removed.
82317c478bd9Sstevel@tonic-gate	[GRUB_MAINT]: Prepend $(srcdir) to $(HELP2MAN).
82327c478bd9Sstevel@tonic-gate	* e2fs_stage1_5/Makefile.am: Deleted.
82337c478bd9Sstevel@tonic-gate	* e2fs_stage1_5/Makefile.in: Likewise.
82347c478bd9Sstevel@tonic-gate	* fat_stage1_5/Makefile.am: Likewise.
82357c478bd9Sstevel@tonic-gate	* fat_stage1_5/Makefile.in: Likewise.
82367c478bd9Sstevel@tonic-gate	* ffs_stage1_5/Makefile.am: Likewise.
82377c478bd9Sstevel@tonic-gate	* ffs_stage1_5/Makefile.in: Likewise.
82387c478bd9Sstevel@tonic-gate	* grub/Makefile.am (CLEANFILES): Likewise.
82397c478bd9Sstevel@tonic-gate	(COMPILE): Likewise.
82407c478bd9Sstevel@tonic-gate	(INCLUDES): Likewise.
82417c478bd9Sstevel@tonic-gate	(DEP_FILES): Likewise.
82427c478bd9Sstevel@tonic-gate	(@SHARED_SRC_RULES@): Likewise.
82437c478bd9Sstevel@tonic-gate	(AM_CFLAGS): New variable.
82447c478bd9Sstevel@tonic-gate	(grub_LDADD): Set to the library libgrub.a and @GRUB_LIBS@.
82457c478bd9Sstevel@tonic-gate	* shared_src/Makefile.am: Deleted.
82467c478bd9Sstevel@tonic-gate	* shared_src/Makefile.in: Likewise.
82477c478bd9Sstevel@tonic-gate	* shared_src/apic.h: Moved to ...
82487c478bd9Sstevel@tonic-gate	* stage2/apic.h: ... here.
82497c478bd9Sstevel@tonic-gate	* shared_src/asm.S: Moved to ...
82507c478bd9Sstevel@tonic-gate	* stage2/asm.S: ... here.
82517c478bd9Sstevel@tonic-gate	* shared_src/bios.c: Moved to ...
82527c478bd9Sstevel@tonic-gate	* stage2/bios.c: ... here.
82537c478bd9Sstevel@tonic-gate	* shared_src/boot.c: Moved to ...
82547c478bd9Sstevel@tonic-gate	* stage2/boot.c: ... here.
82557c478bd9Sstevel@tonic-gate	* shared_src/char_io.c: Moved to ...
82567c478bd9Sstevel@tonic-gate	* stage2/char_io.c: ... here.
82577c478bd9Sstevel@tonic-gate	* shared_src/cmdline.c: Moved to ...
82587c478bd9Sstevel@tonic-gate	* stage2/cmdline.c: ... here.
82597c478bd9Sstevel@tonic-gate	* shared_src/common.c: Moved to ...
82607c478bd9Sstevel@tonic-gate	* stage2/common.c: ... here.
82617c478bd9Sstevel@tonic-gate	* shared_src/defs.h: Moved to ...
82627c478bd9Sstevel@tonic-gate	* stage2/defs.h: ... here.
82637c478bd9Sstevel@tonic-gate	* shared_src/dir.h: Moved to ...
82647c478bd9Sstevel@tonic-gate	* stage2/dir.h: ... here.
82657c478bd9Sstevel@tonic-gate	* shared_src/disk_inode.h: Moved to ...
82667c478bd9Sstevel@tonic-gate	* stage2/disk_inode.h: ... here.
82677c478bd9Sstevel@tonic-gate	* shared_src/disk_inode_ffs.h: Moved to ...
82687c478bd9Sstevel@tonic-gate	* stage2/disk_inode_ffs.h: ... here.
82697c478bd9Sstevel@tonic-gate	* shared_src/disk_io.c: Moved to ...
82707c478bd9Sstevel@tonic-gate	* stage2/disk_io.c: ... here.
82717c478bd9Sstevel@tonic-gate	* shared_src/fat.h: Moved to ...
82727c478bd9Sstevel@tonic-gate	* stage2/fat.h: ... here.
82737c478bd9Sstevel@tonic-gate	* shared_src/filesys.h: Moved to ...
82747c478bd9Sstevel@tonic-gate	* stage2/filesys.h: ... here.
82757c478bd9Sstevel@tonic-gate	* shared_src/freebsd.h: Moved to ...
82767c478bd9Sstevel@tonic-gate	* stage2/freebsd.h: ... here.
82777c478bd9Sstevel@tonic-gate	* shared_src/fs.h: Moved to ...
82787c478bd9Sstevel@tonic-gate	* stage2/fs.h: ... here.
82797c478bd9Sstevel@tonic-gate	* shared_src/fsys_ext2fs.c: Moved to ...
82807c478bd9Sstevel@tonic-gate	* stage2/fsys_ext2fs.c: ... here.
82817c478bd9Sstevel@tonic-gate	* shared_src/fsys_fat.c: Moved to ...
82827c478bd9Sstevel@tonic-gate	* stage2/fsys_fat.c: ... here.
82837c478bd9Sstevel@tonic-gate	* shared_src/fsys_ffs.c: Moved to ...
82847c478bd9Sstevel@tonic-gate	* stage2/fsys_ffs.c: ... here.
82857c478bd9Sstevel@tonic-gate	* shared_src/gunzip.c: Moved to ...
82867c478bd9Sstevel@tonic-gate	* stage2/gunzip.c: ... here.
82877c478bd9Sstevel@tonic-gate	* shared_src/i386-elf.h: Moved to ...
82887c478bd9Sstevel@tonic-gate	* stage2/i386-elf.h: ... here.
82897c478bd9Sstevel@tonic-gate	* shared_src/imgact_aout.h: Moved to ...
82907c478bd9Sstevel@tonic-gate	* stage2/imgact_aout.h: ... here.
82917c478bd9Sstevel@tonic-gate	* shared_src/mb_header.h: Moved to ...
82927c478bd9Sstevel@tonic-gate	* stage2/mb_header.h: ... here.
82937c478bd9Sstevel@tonic-gate	* shared_src/mb_info.h: Moved to ...
82947c478bd9Sstevel@tonic-gate	* stage2/mb_info.h: ... here.
82957c478bd9Sstevel@tonic-gate	* shared_src/pc_slice.h: Moved to ...
82967c478bd9Sstevel@tonic-gate	* stage2/pc_slice.h: ... here.
82977c478bd9Sstevel@tonic-gate	* shared_src/shared.h: Moved to ...
82987c478bd9Sstevel@tonic-gate	* stage2/shared.h: ... here.
82997c478bd9Sstevel@tonic-gate	* shared_src/smp-imps.c: Moved to ...
83007c478bd9Sstevel@tonic-gate	* stage2/smp-imps.c: ... here.
83017c478bd9Sstevel@tonic-gate	* shared_src/smp-imps.h: Moved to ...
83027c478bd9Sstevel@tonic-gate	* stage2/smp-imps.h: ... here.
83037c478bd9Sstevel@tonic-gate	* shared_src/stage1_5.c: Moved to ...
83047c478bd9Sstevel@tonic-gate	* stage2/stage1_5.c: ... here.
83057c478bd9Sstevel@tonic-gate	* shared_src/stage2.c: Moved to ...
83067c478bd9Sstevel@tonic-gate	* stage2/stage2.c: ... here.
83077c478bd9Sstevel@tonic-gate	* stage1/Makefile.am (pkgdata_DATA): Renamed to ...
83087c478bd9Sstevel@tonic-gate	(nodist_pkgdata_DATA): ... this.
83097c478bd9Sstevel@tonic-gate	(COMPILE): Deleted.
83107c478bd9Sstevel@tonic-gate	(AM_CFLAGS): New variable.
83117c478bd9Sstevel@tonic-gate	* stage2/Makefile.am: Completely rewritten from scratch.
83127c478bd9Sstevel@tonic-gate	(TESTS): New variable.
83137c478bd9Sstevel@tonic-gate	(noinst_SCRIPTS): Likewise.
83147c478bd9Sstevel@tonic-gate	(noinst_HEADERS): Likewise.
83157c478bd9Sstevel@tonic-gate	(EXTRA_DIST): Set to smp-imps.c and $(noinst_SCRIPTS).
83167c478bd9Sstevel@tonic-gate	(noinst_LIBRARIES): New variable.
83177c478bd9Sstevel@tonic-gate	(libgrub_a_SOURCES): Likewise.
83187c478bd9Sstevel@tonic-gate	(libgrub_a_CFLAGS): Likewise.
83197c478bd9Sstevel@tonic-gate	(pkgdata_DATA): Deleted.
83207c478bd9Sstevel@tonic-gate	(nodist_pkgdata_DATA): New variable.
83217c478bd9Sstevel@tonic-gate	(MOSTLYCLEANFILES): Set to $(noinst_PROGRAMS).
83227c478bd9Sstevel@tonic-gate	(COMPILE): Deleted.
83237c478bd9Sstevel@tonic-gate	(INCLUDES): Likewise.
83247c478bd9Sstevel@tonic-gate	(stage2_exec_LDADD): Likewise.
83257c478bd9Sstevel@tonic-gate	(DEP_FILES): Likewise.
83267c478bd9Sstevel@tonic-gate	(stage2_exec_SOURCES): Set to the actual source files instead of
83277c478bd9Sstevel@tonic-gate	dummy.
83287c478bd9Sstevel@tonic-gate	(DISTFILES): Deleted.
83297c478bd9Sstevel@tonic-gate	(stage2.exec): Likewise.
83307c478bd9Sstevel@tonic-gate	(stage2): Likewise.
83317c478bd9Sstevel@tonic-gate	(@SHARED_SRC_RULES@): Likewise.
83327c478bd9Sstevel@tonic-gate	(noinst_PROGRAMS): Set to executable formats of Stage 2 and
83337c478bd9Sstevel@tonic-gate	Stage 1.5's.
83347c478bd9Sstevel@tonic-gate	(STAGE2_LINK): New variable.
83357c478bd9Sstevel@tonic-gate	(STAGE2_COMPILE): Likewise.
83367c478bd9Sstevel@tonic-gate	(STAGE1_5_LINK): Likewise.
83377c478bd9Sstevel@tonic-gate	(STAGE1_5_COMPILE): Likewise.
83387c478bd9Sstevel@tonic-gate	(stage2_exec_CFLAGS): Likewise.
83397c478bd9Sstevel@tonic-gate	(stage2_exec_LDFLAGS): Likewise.
83407c478bd9Sstevel@tonic-gate	(e2fs_stage1_5_exec_SOURCES): Likewise.
83417c478bd9Sstevel@tonic-gate	(e2fs_stage1_5_exec_CFLAGS): Likewise.
83427c478bd9Sstevel@tonic-gate	(e2fs_stage1_5_exec_LDFLAGS): Likewise.
83437c478bd9Sstevel@tonic-gate	(fat_stage1_5_exec_SOURCES): Likewise.
83447c478bd9Sstevel@tonic-gate	(fat_stage1_5_exec_CFLAGS): Likewise.
83457c478bd9Sstevel@tonic-gate	(fat_stage1_5_exec_LDFLAGS): Likewise.
83467c478bd9Sstevel@tonic-gate	(ffs_stage1_5_exec_SOURCES): Likewise.
83477c478bd9Sstevel@tonic-gate	(ffs_stage1_5_exec_CFLAGS): Likewise.
83487c478bd9Sstevel@tonic-gate	(ffs_stage1_5_exec_LDFLAGS): Likewise.
83497c478bd9Sstevel@tonic-gate	(% : %.exec): New rule.
83507c478bd9Sstevel@tonic-gate
83517c478bd9Sstevel@tonic-gate	* stage2/size_test: New file, for checking for the sizes of
83527c478bd9Sstevel@tonic-gate	Stage 2 and Stage 1.5's.
83537c478bd9Sstevel@tonic-gate
83547c478bd9Sstevel@tonic-gate1999-06-24  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
83557c478bd9Sstevel@tonic-gate
83567c478bd9Sstevel@tonic-gate	* stage1/stage1.S: Call testb instead of andb when checking if
83577c478bd9Sstevel@tonic-gate	the drive is a floppy.
83587c478bd9Sstevel@tonic-gate
83597c478bd9Sstevel@tonic-gate1999-06-23  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
83607c478bd9Sstevel@tonic-gate
83617c478bd9Sstevel@tonic-gate	* grub/asmstub.c [__linux__]: Include linux/fs.h for BLKFLSBUF.
83627c478bd9Sstevel@tonic-gate	(grub_stage2): Call sync before and after calling doit.
83637c478bd9Sstevel@tonic-gate	(gurb_stage2) [__linux__]: Invalidate buffer caches by BLKFLSBUF
83647c478bd9Sstevel@tonic-gate	ioctl.
83657c478bd9Sstevel@tonic-gate	* grub/main.c (main): Call sync first. Suggested by Pavel Roskin
83667c478bd9Sstevel@tonic-gate	<pavel_roskin@geocities.com>.
83677c478bd9Sstevel@tonic-gate
83687c478bd9Sstevel@tonic-gate	* configure.in: Curses libraries are always checked.
83697c478bd9Sstevel@tonic-gate	(--enable-sbin-grub): Deleted. Now /sbin/grub is always built.
83707c478bd9Sstevel@tonic-gate	(--enable-maintainer-mode): New option.
83717c478bd9Sstevel@tonic-gate	* grub/Makefile.am (EXTRA_PROGRAMS): Deleted.
83727c478bd9Sstevel@tonic-gate	(sbin_PROGRAMS): Just set to grub.
83737c478bd9Sstevel@tonic-gate	* docs/Makefile.am (man_MANS): New variable.
83747c478bd9Sstevel@tonic-gate	(HELP2MAN): Likewise.
83757c478bd9Sstevel@tonic-gate	(noinst_SCRIPTS): Likewise.
83767c478bd9Sstevel@tonic-gate	(EXTRA_DIST): Add $(man_MANS) and $(noinst_SCRIPTS).
83777c478bd9Sstevel@tonic-gate	[GRUB_MAINT]: Define the rule for the /sbin/grub manual.
83787c478bd9Sstevel@tonic-gate	* docs/help2man: Copied from texinfo-3.12i.
83797c478bd9Sstevel@tonic-gate	(--section): New option to specify which section a manual
83807c478bd9Sstevel@tonic-gate	belongs	to.
83817c478bd9Sstevel@tonic-gate	(opt_section): New variable.
83827c478bd9Sstevel@tonic-gate	(section): Likewise.
83837c478bd9Sstevel@tonic-gate	* docs/grub.8: Produced by help2man automatically.
83847c478bd9Sstevel@tonic-gate
83857c478bd9Sstevel@tonic-gate1999-06-22  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
83867c478bd9Sstevel@tonic-gate
83877c478bd9Sstevel@tonic-gate	* shared_src/char_io.c (get_cmdline): Add two missing `break's.
83887c478bd9Sstevel@tonic-gate
83897c478bd9Sstevel@tonic-gate	* shared_src/cmdline.c (commands): Add quit.
83907c478bd9Sstevel@tonic-gate	(enter_cmdline): Change the return type	to cmdline_t, and return
83917c478bd9Sstevel@tonic-gate	CMDLINE_OK if successful, otherwise CMDLINE_ERROR if fail.
83927c478bd9Sstevel@tonic-gate	(enter_cmdline) [GRUB_UTIL]: Return CMDLINE_ABORT if CUR_HEAP
83937c478bd9Sstevel@tonic-gate	contains "quit".
83947c478bd9Sstevel@tonic-gate	[!GRUB_UTIL]: Just print an annotation message.
83957c478bd9Sstevel@tonic-gate	* shared_src/shared.h (cmdline_t): New enum type.
83967c478bd9Sstevel@tonic-gate	(enter_cmdline): Change the return type to cmdline_t.
83977c478bd9Sstevel@tonic-gate	(cmain): Remove ``noreturn'' attribute.
83987c478bd9Sstevel@tonic-gate	* shared_src/stage2.c (menu_t): New enum type.
83997c478bd9Sstevel@tonic-gate	(run_menu): Change the return type to menu_t.
84007c478bd9Sstevel@tonic-gate	If enter_cmdline returns CMDLINE_ABORT, then return MENU_ABORT,
84017c478bd9Sstevel@tonic-gate	otherwise return MENU_OK.
84027c478bd9Sstevel@tonic-gate	(cmain): If enter_cmdline aborts, then break the command-line
84037c478bd9Sstevel@tonic-gate	loop and return. If run_menu aborts, then return.
84047c478bd9Sstevel@tonic-gate
84057c478bd9Sstevel@tonic-gate1999-06-22  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
84067c478bd9Sstevel@tonic-gate
84077c478bd9Sstevel@tonic-gate	* shared_src/Makefile.am (EXTRA_DIST): Add bios.c. Reported by
84087c478bd9Sstevel@tonic-gate	Pavel Roskin <pavel_roskin@geocities.com>.
84097c478bd9Sstevel@tonic-gate
84107c478bd9Sstevel@tonic-gate1999-06-21  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
84117c478bd9Sstevel@tonic-gate
84127c478bd9Sstevel@tonic-gate	* docs/Makefile.am (html): Deleted.
84137c478bd9Sstevel@tonic-gate	(txt): Likewise.
84147c478bd9Sstevel@tonic-gate	(EXTRA_DIST): $(txt) and $(html) are removed.
84157c478bd9Sstevel@tonic-gate	* docs/boot-proposal.html: Removed.
84167c478bd9Sstevel@tonic-gate	* docs/errors.html: Likewise.
84177c478bd9Sstevel@tonic-gate	* docs/faq.html: Likewise.
84187c478bd9Sstevel@tonic-gate	* docs/grub.html: Likewise.
84197c478bd9Sstevel@tonic-gate	* docs/install.html: Likewise.
84207c478bd9Sstevel@tonic-gate	* docs/mem64mb.html: Likewise.
84217c478bd9Sstevel@tonic-gate	* docs/technical.html: Likewise.
84227c478bd9Sstevel@tonic-gate	* docs/using.html: Likewise.
84237c478bd9Sstevel@tonic-gate	* docs/PC_partitioning.txt: Likewise.
84247c478bd9Sstevel@tonic-gate	* docs/bios_mapping.txt: Likewise.
84257c478bd9Sstevel@tonic-gate	* docs/commands.txt: Likewise.
84267c478bd9Sstevel@tonic-gate	* docs/embedded_data.txt: Likewise.
84277c478bd9Sstevel@tonic-gate	* docs/filesystem.txt: Likewise.
84287c478bd9Sstevel@tonic-gate
84297c478bd9Sstevel@tonic-gate1999-06-21  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
84307c478bd9Sstevel@tonic-gate
84317c478bd9Sstevel@tonic-gate	From Alexander K. Hudek <alexhudek@home.com>:
84327c478bd9Sstevel@tonic-gate	* shared_src/disk_io.c (real_open_partition): Check if
84337c478bd9Sstevel@tonic-gate	CURRENT_SLICE is equal to PC_SLICE_TYPE_WIN95_EXTENDED as well.
84347c478bd9Sstevel@tonic-gate	* shared_src/pc_slice.c (PC_SLICE_TYPE_WIN95_EXTENDED): New
84357c478bd9Sstevel@tonic-gate	macro.
84367c478bd9Sstevel@tonic-gate	* shared_src/bios.c (biosdisk): Clear the reserved member of DAP.
84377c478bd9Sstevel@tonic-gate
84387c478bd9Sstevel@tonic-gate1999-06-08  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
84397c478bd9Sstevel@tonic-gate
84407c478bd9Sstevel@tonic-gate	Color-menu support based on Peter Astrand
84417c478bd9Sstevel@tonic-gate	<altic@lysator.liu.se>'s patch.
84427c478bd9Sstevel@tonic-gate
84437c478bd9Sstevel@tonic-gate	* shared_src/asm.S (nocursor): New function.
84447c478bd9Sstevel@tonic-gate	* shared_src/cmdline.c (normal_color): New variable.
84457c478bd9Sstevel@tonic-gate	(highlight_color): Likewise.
84467c478bd9Sstevel@tonic-gate	(commands): Added "color" command.
84477c478bd9Sstevel@tonic-gate	(enter_cmdline): Handle the color command.
84487c478bd9Sstevel@tonic-gate	* shared_src/shared.h (normal_color): Declared.
84497c478bd9Sstevel@tonic-gate	(highlight_color): Likewise.
84507c478bd9Sstevel@tonic-gate	[!GRUB_UTIL] (nocursor): Likewise.
84517c478bd9Sstevel@tonic-gate	* shared_src/stage2.c (print_border) [!GRUB_UTIL]: Color the
84527c478bd9Sstevel@tonic-gate	menu.
84537c478bd9Sstevel@tonic-gate	(run_menu) [!GRUB_UTIL]: Call nocursor, and call set_line with
84547c478bd9Sstevel@tonic-gate	the second argument HIGHLIGHT_COLOR when highlighting a line,
84557c478bd9Sstevel@tonic-gate	and NORMAL_COLOR when drawing a normal line.
84567c478bd9Sstevel@tonic-gate	(cmain): Initialize normal_color and highlight_color. Handle
84577c478bd9Sstevel@tonic-gate	the color command in the same way as the command-line
84587c478bd9Sstevel@tonic-gate	interface.
84597c478bd9Sstevel@tonic-gate
84607c478bd9Sstevel@tonic-gate1999-06-07  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
84617c478bd9Sstevel@tonic-gate
84627c478bd9Sstevel@tonic-gate	* e2fs_stage1_5/Makefile.am (IMPORTANT_SIZE_LIMIT): Set to 31744.
84637c478bd9Sstevel@tonic-gate	* fat_stage1_5/Makefile.am (IMPORTANT_SIZE_LIMIT): Likewise.
84647c478bd9Sstevel@tonic-gate
84657c478bd9Sstevel@tonic-gate1999-06-06  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
84667c478bd9Sstevel@tonic-gate
84677c478bd9Sstevel@tonic-gate	The debug version of Stage 2 is removed.
84687c478bd9Sstevel@tonic-gate
84697c478bd9Sstevel@tonic-gate	* shared_src/cmdline.c: The imps code is now defined if GRUB_UTIL
84707c478bd9Sstevel@tonic-gate	is not defined, but not if DEBUG.
84717c478bd9Sstevel@tonic-gate	(debug): New global variable.
84727c478bd9Sstevel@tonic-gate	(commands): All commands are always enabled, and added "debug".
84737c478bd9Sstevel@tonic-gate	(debug_fs_print_func): Defined unconditionally.
84747c478bd9Sstevel@tonic-gate	(debug_fs_blocklist_func): If DEBUG is true, then call printf.
84757c478bd9Sstevel@tonic-gate	(enter_cmdline): Handle "testload", "read", "fstest",
84767c478bd9Sstevel@tonic-gate	"impsprobe" and "displaymem" unconditionally, and added "debug"
84777c478bd9Sstevel@tonic-gate	handling.
84787c478bd9Sstevel@tonic-gate	[GRUB_UTIL]: If a command is impsprobe, just fails.
84797c478bd9Sstevel@tonic-gate	* shared_src/disk_io.c (devread) [!STAGE1_5]: If DEBUG_FS and
84807c478bd9Sstevel@tonic-gate	DEBUG are true, then call printf.
84817c478bd9Sstevel@tonic-gate	* shared_src/asm.S (patch_code): Defined unconditionally.
84827c478bd9Sstevel@tonic-gate	(patch_code_end): Likewise.
84837c478bd9Sstevel@tonic-gate	* stage1/stage1.S (firstlist) [!FFS_STAGE1_5]: Increase the
84847c478bd9Sstevel@tonic-gate	number of sectors to 90, because Stage 2 is larger than 80
84857c478bd9Sstevel@tonic-gate	sectors.
84867c478bd9Sstevel@tonic-gate	* configure.in: The option --enable-debug is removed, and do
84877c478bd9Sstevel@tonic-gate	not output "stage2_debug/Makefile".
84887c478bd9Sstevel@tonic-gate	* Makefile.am (SUBDIRS): stage2_debug is removed.
84897c478bd9Sstevel@tonic-gate	* stage2_debug/Makefile.am: Deleted.
84907c478bd9Sstevel@tonic-gate	* stage2_debug/Makefile.in: Likewise.
84917c478bd9Sstevel@tonic-gate
84927c478bd9Sstevel@tonic-gate1999-06-02  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
84937c478bd9Sstevel@tonic-gate
84947c478bd9Sstevel@tonic-gate	* grub/main.c (verbose): New variable.
84957c478bd9Sstevel@tonic-gate	(read_only): Likewise.
84967c478bd9Sstevel@tonic-gate	(OPT_VERBOSE): New macro.
84977c478bd9Sstevel@tonic-gate	(OPT_READ_ONLY): Likewise.
84987c478bd9Sstevel@tonic-gate	(longopts): Add --read-only and --verbose options.
84997c478bd9Sstevel@tonic-gate	(usage): Add the descriptions about --read-only and --verbose.
85007c478bd9Sstevel@tonic-gate	(main): Handle OPT_VERBOSE and OPT_READ_ONLY.
85017c478bd9Sstevel@tonic-gate	If HOLD and VERBOSE are non-zero, then display the message
85027c478bd9Sstevel@tonic-gate	about how to restart /sbin/grub.
85037c478bd9Sstevel@tonic-gate
85047c478bd9Sstevel@tonic-gate	* shared_src/shared.h (verbose) [GRUB_UTIL]: Declared.
85057c478bd9Sstevel@tonic-gate	(read_only) [GRUB_UTIL]: Likewise.
85067c478bd9Sstevel@tonic-gate
85077c478bd9Sstevel@tonic-gate	* grub/asmstub.c (hex_dump): New function.
85087c478bd9Sstevel@tonic-gate	(biosdisk): In the case where SUBFUNC is
85097c478bd9Sstevel@tonic-gate	BIOSDISK_WRITE, check for READ_ONLY and call nwrite if
85107c478bd9Sstevel@tonic-gate	READ_ONLY is zero. If VERBOSE is non-zero, display what GRUB
85117c478bd9Sstevel@tonic-gate	will try to do.
85127c478bd9Sstevel@tonic-gate	(get_diskinfo): Open DEVNAME with the mode O_RDWR if READ_ONLY
85137c478bd9Sstevel@tonic-gate	is zero, and attempt to open DEVNAME with the mode O_RDONLY
85147c478bd9Sstevel@tonic-gate	regardless of ERRNO if READ_ONLY is non-zero. If VERBOSE is
85157c478bd9Sstevel@tonic-gate	non-zero, then display the drive DRIVE and the file DEVNAME.
85167c478bd9Sstevel@tonic-gate
85177c478bd9Sstevel@tonic-gate	* shared_src/disk_io.c (set_device) [STAGE1_5]: Eliminate
85187c478bd9Sstevel@tonic-gate	completion code.
85197c478bd9Sstevel@tonic-gate
85207c478bd9Sstevel@tonic-gate1999-06-01  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
85217c478bd9Sstevel@tonic-gate
85227c478bd9Sstevel@tonic-gate	* grub/asmstub.c: Do not use I_AM_VERY_BRAVE any more.
85237c478bd9Sstevel@tonic-gate	(grub_stage2): Delete first_scsi_disk and add a variable
85247c478bd9Sstevel@tonic-gate	num_hd, which is used for counting how many drives are
85257c478bd9Sstevel@tonic-gate	detected.
85267c478bd9Sstevel@tonic-gate	Initialize the flags member of each element of disks to -1
85277c478bd9Sstevel@tonic-gate	instead of 0, and check if it is equal to -1 instead of 0 when
85287c478bd9Sstevel@tonic-gate	close it.
85297c478bd9Sstevel@tonic-gate	(get_diskinfo): Treat -1 as non-caching state instead of 0.
85307c478bd9Sstevel@tonic-gate
85317c478bd9Sstevel@tonic-gate1999-06-01  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
85327c478bd9Sstevel@tonic-gate
85337c478bd9Sstevel@tonic-gate	Reported from Klaus Reichl <a8709182@unet.univie.ac.at>:
85347c478bd9Sstevel@tonic-gate	* docs/.cvsignore: New file.
85357c478bd9Sstevel@tonic-gate	* shared_src/disk_io.c (print_a_completion): New function
85367c478bd9Sstevel@tonic-gate	which saves what has been printed to UNIQUE_STRING and printf
85377c478bd9Sstevel@tonic-gate	it.
85387c478bd9Sstevel@tonic-gate	(unique) [!STAGE1_5]: New variable.
85397c478bd9Sstevel@tonic-gate	(unique_string): Likewise.
85407c478bd9Sstevel@tonic-gate	(print_completions): Use print_a_completion, and improve the
85417c478bd9Sstevel@tonic-gate	completion facility.
85427c478bd9Sstevel@tonic-gate	* shared_src/fsys_ext2fs.c (ext2fs_dir) [!STAGE1_5]: Use
85437c478bd9Sstevel@tonic-gate	print_a_completion instead of just printf.
85447c478bd9Sstevel@tonic-gate	* shared_src/fsys_ffs.c (ffs_dir) [!STAGE1_5]: Likewise.
85457c478bd9Sstevel@tonic-gate	* shared_src/fsys_fat.c (fat_dir) [!STAGE1_5]: Likewise.
85467c478bd9Sstevel@tonic-gate	* shared_src/shared.h (print_a_completion): Declared.
85477c478bd9Sstevel@tonic-gate	* shared_src/cmdline.c (enter_cmdline): Explicitly cast
85487c478bd9Sstevel@tonic-gate	int to pointer to char for grub_read.
85497c478bd9Sstevel@tonic-gate	* grub/asmstub.c (grub_stage2) [__linux__]: Don't use /dev/fd1.
85507c478bd9Sstevel@tonic-gate	Probe 4 IDE drives instead of 2.
85517c478bd9Sstevel@tonic-gate	(biosdisk) [__linux__]: Add a prototype for _llseek.
85527c478bd9Sstevel@tonic-gate	* shared_src/char_io.c (get_cmdline): Update LPOS and LLEN_OLD
85537c478bd9Sstevel@tonic-gate	when the functon print_completion modifies CMDLINE.
85547c478bd9Sstevel@tonic-gate	* shared_src/stage2.c (get_line_from_config): Fix LITERAL
85557c478bd9Sstevel@tonic-gate	handling.
85567c478bd9Sstevel@tonic-gate
85577c478bd9Sstevel@tonic-gate1999-05-25  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
85587c478bd9Sstevel@tonic-gate
85597c478bd9Sstevel@tonic-gate	* grub/asmstub.c (grub_stage2): Fix a memory leak that FP is
85607c478bd9Sstevel@tonic-gate	not closed.
85617c478bd9Sstevel@tonic-gate
85627c478bd9Sstevel@tonic-gate1999-05-25  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
85637c478bd9Sstevel@tonic-gate
85647c478bd9Sstevel@tonic-gate	* grub/main.c: Replace OPT_DISABLE_CONFIG_FILE and
85657c478bd9Sstevel@tonic-gate	OPT_DISABLE_CURSES with OPT_NO_CONFIG_FILE and OPT_NO_CURSES
85667c478bd9Sstevel@tonic-gate	respectively.
85677c478bd9Sstevel@tonic-gate	(longopts): Rename from "disable-config-file" to
85687c478bd9Sstevel@tonic-gate	"no-config-file", and from "disable-curses" to "no-curses".
85697c478bd9Sstevel@tonic-gate	(usage): Use "grub" instead of ARGV[0], read the standards.
85707c478bd9Sstevel@tonic-gate	Change the help message according to the changes above.
85717c478bd9Sstevel@tonic-gate	(main): Handle OPT_NO_CONFIG_FILE and OPT_NO_CURSES, instead
85727c478bd9Sstevel@tonic-gate	of OPT_DISABLE_CONFIG_FILE and OPT_DISABLE_CURSES.
85737c478bd9Sstevel@tonic-gate
85747c478bd9Sstevel@tonic-gate1999-05-21  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
85757c478bd9Sstevel@tonic-gate
85767c478bd9Sstevel@tonic-gate	* docs/TODO: Moved to ...
85777c478bd9Sstevel@tonic-gate	* TODO: ... here.
85787c478bd9Sstevel@tonic-gate	* docs/BUGS: Moved to ...
85797c478bd9Sstevel@tonic-gate	* BUGS: ... here.
85807c478bd9Sstevel@tonic-gate	* docs/COPYING: Removed.
85817c478bd9Sstevel@tonic-gate	* docs/Makefile.am (EXTRA_DIST): Get rid of BUGS.
85827c478bd9Sstevel@tonic-gate	* Makefile.am (EXTRA_DIST): Set to BUGS.
85837c478bd9Sstevel@tonic-gate
85847c478bd9Sstevel@tonic-gate1999-05-17  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
85857c478bd9Sstevel@tonic-gate
85867c478bd9Sstevel@tonic-gate	* acinclude.m4 (grub_ASM_EXT_C): Do not overrun the command
85877c478bd9Sstevel@tonic-gate	shift. Reported by Pavel Roskin <pabel_roskin@geocities.com>.
85887c478bd9Sstevel@tonic-gate
85897c478bd9Sstevel@tonic-gate1999-05-14  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
85907c478bd9Sstevel@tonic-gate
85917c478bd9Sstevel@tonic-gate	* docs/Makefile.am (info_TEXINFOS): Added multiboot.texi.
85927c478bd9Sstevel@tonic-gate	* docs/multiboot.texi: New file. From Kunihiro Ishiguro.
85937c478bd9Sstevel@tonic-gate
85947c478bd9Sstevel@tonic-gate1999-05-12  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
85957c478bd9Sstevel@tonic-gate
85967c478bd9Sstevel@tonic-gate	* grub/asmstub.c: Include <errno.h>. Reported by Kunihiro
85977c478bd9Sstevel@tonic-gate	Ishiguro <kunihiro@zebra.org>.
85987c478bd9Sstevel@tonic-gate
85997c478bd9Sstevel@tonic-gate1999-05-11  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
86007c478bd9Sstevel@tonic-gate
86017c478bd9Sstevel@tonic-gate	Reported by Brian Brunswick <brian@skarpsey.demon.co.uk>:
86027c478bd9Sstevel@tonic-gate	* shared_src/asm.S (start) [STAGE1_5]: Jump to 0x0:0x2000.
86037c478bd9Sstevel@tonic-gate	* shared_src/cmdline.c (enter_cmdline): Doesn't check for the jump
86047c478bd9Sstevel@tonic-gate	address in stage2. We are not paranoid.
86057c478bd9Sstevel@tonic-gate	Add a missing RAW_ADDR macro.
86067c478bd9Sstevel@tonic-gate	* shared_src/diskio.c (grub_open): Call setup_part even in stage1.5.
86077c478bd9Sstevel@tonic-gate	And, include necessary functions that were eliminated incorrectly.
86087c478bd9Sstevel@tonic-gate	* shared_src/char_io.c [STAGE1_5]: Eliminate unnecessary functions
86097c478bd9Sstevel@tonic-gate	for stage1.5.
86107c478bd9Sstevel@tonic-gate
86117c478bd9Sstevel@tonic-gate	* grub/asmstub.c (nread): New function. Handle EINTR.
86127c478bd9Sstevel@tonic-gate	(nwrite): Likewise.
86137c478bd9Sstevel@tonic-gate	(biosdisk) [I_AM_VERY_BRAVE]: When SUBFUNC is BIOSDISK_WRITE, call
86147c478bd9Sstevel@tonic-gate	nwrite.
86157c478bd9Sstevel@tonic-gate
86167c478bd9Sstevel@tonic-gate	Reported by Pavel Roskin <pavel_roskin@geocities.com>:
86177c478bd9Sstevel@tonic-gate	* shared_src/fsys_ext2fs.c (off_t): Renamed to ...
86187c478bd9Sstevel@tonic-gate	(linux_off_t): ... this.
86197c478bd9Sstevel@tonic-gate	* shared_src/defs.h (off_t): Renamed to ...
86207c478bd9Sstevel@tonic-gate	(mach_off_t): ... this.
86217c478bd9Sstevel@tonic-gate	* shared_src/fs.h (BBOFF): Use mach_off_t instead of off_t.
86227c478bd9Sstevel@tonic-gate	(SBOFF): Likewise.
86237c478bd9Sstevel@tonic-gate
86247c478bd9Sstevel@tonic-gate	* e2fs_stage1_5/Makefile.am (IMPORTANT_SIZE_LIMIT): Set to 81920.
86257c478bd9Sstevel@tonic-gate	* fat_stage1_5/Makefile.am (IMPORTANT_SIZE_LIMIT): Likewise.
86267c478bd9Sstevel@tonic-gate	* ffs_stage1_5/Makefile.am (IMPORTANT_SIZE_LIMIT): Set to 7168.
86277c478bd9Sstevel@tonic-gate
86287c478bd9Sstevel@tonic-gate1999-05-03  Gordon Matzigkeit  <gord@trick.fig.org>
86297c478bd9Sstevel@tonic-gate
86307c478bd9Sstevel@tonic-gate	From Pavel Roskin:
86317c478bd9Sstevel@tonic-gate	* shared_src/shared.h: Redeclare.
86327c478bd9Sstevel@tonic-gate
86337c478bd9Sstevel@tonic-gate	* grub/main.c (main): Use strncpy rather than pointer assignment
86347c478bd9Sstevel@tonic-gate	to set the config file name.
86357c478bd9Sstevel@tonic-gate
86367c478bd9Sstevel@tonic-gate	* grub/asmstub.c: Make config_file a static array, not a pointer.
86377c478bd9Sstevel@tonic-gate	Correct the value of VERSION_STRING.
86387c478bd9Sstevel@tonic-gate
86397c478bd9Sstevel@tonic-gate1999-04-10  Gordon Matzigkeit  <gord@trick.fig.org>
86407c478bd9Sstevel@tonic-gate
86417c478bd9Sstevel@tonic-gate	* debian/rules (build): Install into /lib instead of /share.
86427c478bd9Sstevel@tonic-gate
86437c478bd9Sstevel@tonic-gate1999-05-03  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
86447c478bd9Sstevel@tonic-gate
86457c478bd9Sstevel@tonic-gate	Preliminary non-interactive use support.
86467c478bd9Sstevel@tonic-gate
86477c478bd9Sstevel@tonic-gate	* grub/main.c (use_config_file): New variable.
86487c478bd9Sstevel@tonic-gate	(use_curses): Likewise.
86497c478bd9Sstevel@tonic-gate	(OPT_DISABLE_CONFIG_FILE): New constant.
86507c478bd9Sstevel@tonic-gate	(OPT_DISABLE_CURSES): Likewise.
86517c478bd9Sstevel@tonic-gate	(OPT_BATCH): Likewise.
86527c478bd9Sstevel@tonic-gate	(longopts): Add new options, --disable-config-file, --disable-curses,
86537c478bd9Sstevel@tonic-gate	and --batch.
86547c478bd9Sstevel@tonic-gate	(usage): Print the help messages about these new options.
86557c478bd9Sstevel@tonic-gate	(main): Handle them.
86567c478bd9Sstevel@tonic-gate
86577c478bd9Sstevel@tonic-gate	* grub/asmstub.c (grub_stage2) [HAVE_LIBCURSES]: If ! USE_CURSES,
86587c478bd9Sstevel@tonic-gate	fallback non-curses code.
86597c478bd9Sstevel@tonic-gate	(stop) [HAVE_LIBCURSES]: Likewise.
86607c478bd9Sstevel@tonic-gate	(cls) [HAVE_LIBCURSES]: Likewise.
86617c478bd9Sstevel@tonic-gate	(getxy) [HAVE_LIBCURSES]: Likewise.
86627c478bd9Sstevel@tonic-gate	(gotoxy) [HAVE_LIBCURSES]: Likewise.
86637c478bd9Sstevel@tonic-gate	(grub_putchar) [HAVE_LIBCURSES]: Likewise.
86647c478bd9Sstevel@tonic-gate	(getkey) [HAVE_LIBCURSES]: Likewise.
86657c478bd9Sstevel@tonic-gate	(checkkey) [HAVE_LIBCURSES]: Likewise.
86667c478bd9Sstevel@tonic-gate	(set_attrib) [HAVE_LIBCURSES]: Likewise.
86677c478bd9Sstevel@tonic-gate
86687c478bd9Sstevel@tonic-gate	* shared_src/cmdline.c (enter_cmdline): Do not use getc, but use
86697c478bd9Sstevel@tonic-gate	getkey.
86707c478bd9Sstevel@tonic-gate
86717c478bd9Sstevel@tonic-gate	* shared_src/stage2.c (cmain) [GRUB_UTIL]: Check if USE_CONFIG_FILE
86727c478bd9Sstevel@tonic-gate	is non-zero or not.
86737c478bd9Sstevel@tonic-gate
86747c478bd9Sstevel@tonic-gate	* shared_src/shared.h (getc): Removed.
86757c478bd9Sstevel@tonic-gate	(use_config_file) [GRUB_UTIL]: Add the declaration.
86767c478bd9Sstevel@tonic-gate	(use_curses) [GRUB_UTIL]: Likewise.
86777c478bd9Sstevel@tonic-gate
86787c478bd9Sstevel@tonic-gate1999-05-02  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
86797c478bd9Sstevel@tonic-gate
86807c478bd9Sstevel@tonic-gate	* shared_src/asm.S (biosdisk_standard): Pop %ebp correctly, reported
86817c478bd9Sstevel@tonic-gate	by Pavel Roskin <pavel_roskin@geocities.com>.
86827c478bd9Sstevel@tonic-gate
86837c478bd9Sstevel@tonic-gate1999-04-25  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
86847c478bd9Sstevel@tonic-gate
86857c478bd9Sstevel@tonic-gate	* docs/menu.lst: Rewritten, so that it contains up-to-date
86867c478bd9Sstevel@tonic-gate	information and FAQish configuration examples.
86877c478bd9Sstevel@tonic-gate
86887c478bd9Sstevel@tonic-gate1999-04-09  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
86897c478bd9Sstevel@tonic-gate
86907c478bd9Sstevel@tonic-gate	* shared_src/asm.S (get_diskinfo_floppy): Correct the number of heads
86917c478bd9Sstevel@tonic-gate	and the one of cylinders.
86927c478bd9Sstevel@tonic-gate
86937c478bd9Sstevel@tonic-gate1999-04-06  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
86947c478bd9Sstevel@tonic-gate
86957c478bd9Sstevel@tonic-gate	* grub/asmstub.c (get_diskinfo): Compute the total number of sectors
86967c478bd9Sstevel@tonic-gate	for DRIVE.
86977c478bd9Sstevel@tonic-gate
86987c478bd9Sstevel@tonic-gate	* shared_src/asm.S (get_diskinfo_standard): Clear the data segment
86997c478bd9Sstevel@tonic-gate	after calling int 0x13. Restore the base pointer after returning
87007c478bd9Sstevel@tonic-gate	to protected mode.
87017c478bd9Sstevel@tonic-gate	(get_diskinfo_floppy): Likewise.
87027c478bd9Sstevel@tonic-gate
87037c478bd9Sstevel@tonic-gate	* shared_src/bios.c (get_diskinfo): Always set the size of DRP to
87047c478bd9Sstevel@tonic-gate	the max size of DRP, regardless of the major version of extensions.
87057c478bd9Sstevel@tonic-gate
87067c478bd9Sstevel@tonic-gate1999-04-03  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
87077c478bd9Sstevel@tonic-gate
87087c478bd9Sstevel@tonic-gate	* shared_src/shared.h (struct geometry): Declare total_sectors as
87097c478bd9Sstevel@tonic-gate	unsigned long instead of unsigned long long, because GRUB represents
87107c478bd9Sstevel@tonic-gate	a sector number by 4bytes integer, so it doesn't make sense.
87117c478bd9Sstevel@tonic-gate
87127c478bd9Sstevel@tonic-gate	* shared_src/bios.c (biosdisk) [!NO_INT13_FALLBACK]: Recompute
87137c478bd9Sstevel@tonic-gate	TOTAL_SECTORS according to CHS information.
87147c478bd9Sstevel@tonic-gate	(get_diskinfo) [DEBUG]: Print the geometry of DRIVE.
87157c478bd9Sstevel@tonic-gate
87167c478bd9Sstevel@tonic-gate	* shared_src/disk_io.c (real_open_partition): Set PART_LENGTH to
87177c478bd9Sstevel@tonic-gate	BUF_GEOM.TOTAL_SECTORS.
87187c478bd9Sstevel@tonic-gate
87197c478bd9Sstevel@tonic-gate1999-04-01  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
87207c478bd9Sstevel@tonic-gate
87217c478bd9Sstevel@tonic-gate	* docs/texinfo.tex: Copied from automake-1.4a.
87227c478bd9Sstevel@tonic-gate
87237c478bd9Sstevel@tonic-gate	* configure.in (SHARED_SRC_RULES): Add bios into shared sources.
87247c478bd9Sstevel@tonic-gate
87257c478bd9Sstevel@tonic-gate	* e2fs_stage1_5/Makefile.am (e2fs_stage1_5_exec_LDADD): Added bios.o.
87267c478bd9Sstevel@tonic-gate	* fat_stage1_5/Makefile.am (fat_stage1_5_exec_LDADD): Likewise.
87277c478bd9Sstevel@tonic-gate	* ffs_stage1_5/Makefile.am (ffs_stage1_5_exec_LDADD): Likewise.
87287c478bd9Sstevel@tonic-gate	* stage2/Makefile.am (stage2_exec_LDADD): Likewise.
87297c478bd9Sstevel@tonic-gate	* stage2_debug/Makefile.am (stage2_debug_exec_LDADD): Likewise.
87307c478bd9Sstevel@tonic-gate
87317c478bd9Sstevel@tonic-gate	* shared_src/Makefile.am (EXTRA_DIST): Added bios.c.
87327c478bd9Sstevel@tonic-gate
87337c478bd9Sstevel@tonic-gate	* shared_src/asm.S (biosdisk): Deleted. Now defined in bios.c.
87347c478bd9Sstevel@tonic-gate	(get_diskinfo): Likewise.
87357c478bd9Sstevel@tonic-gate	(biosdisk_int13_extensions): New function.
87367c478bd9Sstevel@tonic-gate	(biosdisk_standard): Likewise.
87377c478bd9Sstevel@tonic-gate	(check_int13_extensions): Likewise.
87387c478bd9Sstevel@tonic-gate	(get_diskinfo_int13_extensions): Likewise.
87397c478bd9Sstevel@tonic-gate	(get_diskinfo_standard): Likewise.
87407c478bd9Sstevel@tonic-gate	(get_diskinfo_floppy): Likewise.
87417c478bd9Sstevel@tonic-gate
87427c478bd9Sstevel@tonic-gate	* shared_src/bios.c: New file.
87437c478bd9Sstevel@tonic-gate
87447c478bd9Sstevel@tonic-gate	* shared_src/shared.h (struct geometry): Added new member,
87457c478bd9Sstevel@tonic-gate	total_sectors.
87467c478bd9Sstevel@tonic-gate
87477c478bd9Sstevel@tonic-gate1999-03-28  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
87487c478bd9Sstevel@tonic-gate
87497c478bd9Sstevel@tonic-gate	* shared_src/stage2.c (print_entries): Correctly assign MENU_ENTRIES
87507c478bd9Sstevel@tonic-gate	the entries starting from FIRST.
87517c478bd9Sstevel@tonic-gate
87527c478bd9Sstevel@tonic-gate1999-03-27  Gordon Matzigkeit  <gord@trick.fig.org>
87537c478bd9Sstevel@tonic-gate
87547c478bd9Sstevel@tonic-gate	* Change everything to use memset and memmove instead of bzero and
87557c478bd9Sstevel@tonic-gate	bcopy.  GNB's Not BSD.
87567c478bd9Sstevel@tonic-gate
87577c478bd9Sstevel@tonic-gate	* shared_src/shared.h (grub_memset): Adapted from grub_bzero.
87587c478bd9Sstevel@tonic-gate	(grub_memmove): Adapted from grub_bcopy.
87597c478bd9Sstevel@tonic-gate
87607c478bd9Sstevel@tonic-gate	* grub/asmstub.c (checkkey): Fix unterminated comment.
87617c478bd9Sstevel@tonic-gate
87627c478bd9Sstevel@tonic-gate	* shared_src/char_io.c (grub_printf): Renamed from printf.
87637c478bd9Sstevel@tonic-gate	(grub_tolower): Renamed from tolower.
87647c478bd9Sstevel@tonic-gate	(grub_isspace): Renamed from isspace.
87657c478bd9Sstevel@tonic-gate	(grub_strncat): Renamed from strncat.
87667c478bd9Sstevel@tonic-gate	(grub_strstr): Renamed from strstr.
87677c478bd9Sstevel@tonic-gate	(grub_bcopy): Renamed from bcopy.
87687c478bd9Sstevel@tonic-gate	(grub_bzero): Renamed from bzero.
87697c478bd9Sstevel@tonic-gate
87707c478bd9Sstevel@tonic-gate	From Bradford Hovinen:
87717c478bd9Sstevel@tonic-gate	* shared_src/char_io.c (get_cmdline): Add new argument to hide
87727c478bd9Sstevel@tonic-gate	password entry.
87737c478bd9Sstevel@tonic-gate	(grub_strcmp): New function.
87747c478bd9Sstevel@tonic-gate	* shared_src/shared.h (get_cmdline): Fix declaration.
87757c478bd9Sstevel@tonic-gate	(grub_strcmp): Declare.
87767c478bd9Sstevel@tonic-gate	* shared_src/stage2.c (run_menu): Use get_cmdline with an
87777c478bd9Sstevel@tonic-gate	ECHO_CHAR of `*'.  This protects against both brute-force and
87787c478bd9Sstevel@tonic-gate	sidelong-glance password cracking attempts.
87797c478bd9Sstevel@tonic-gate
87807c478bd9Sstevel@tonic-gate	* grub/main.c (usage): Display defaults for stage2 options.
87817c478bd9Sstevel@tonic-gate
87827c478bd9Sstevel@tonic-gate	* grub/asmstub.c [WITHOUT_LIBC_STUBS]: Renamed from
87837c478bd9Sstevel@tonic-gate	NO_REMAPPING_LIBC_FUNCTIONS.
87847c478bd9Sstevel@tonic-gate	* grub/main.c: Likewise.
87857c478bd9Sstevel@tonic-gate	* shared_src/shared.h: Likewise.
87867c478bd9Sstevel@tonic-gate
87877c478bd9Sstevel@tonic-gate1999-03-27  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
87887c478bd9Sstevel@tonic-gate
87897c478bd9Sstevel@tonic-gate	* grub/asmstub.c (set_attrib): Use inch and addch, instead of
87907c478bd9Sstevel@tonic-gate	chgat, because chgat doesn't work as expected.
87917c478bd9Sstevel@tonic-gate
87927c478bd9Sstevel@tonic-gate1999-03-26  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
87937c478bd9Sstevel@tonic-gate
87947c478bd9Sstevel@tonic-gate	* grub/asmstub.c (grub_stage2) [HAVE_LIBCURSES]: Call nodelay.
87957c478bd9Sstevel@tonic-gate	(checkkey) [HAVE_LIBCURSES]: If getting an input character, then
87967c478bd9Sstevel@tonic-gate	ungetch it, because checkkey shouldn't modify the input queue.
87977c478bd9Sstevel@tonic-gate
87987c478bd9Sstevel@tonic-gate	Use file descriptors instead of file pointers to support
87997c478bd9Sstevel@tonic-gate	>4GB disks in Linux.
88007c478bd9Sstevel@tonic-gate
88017c478bd9Sstevel@tonic-gate	* grub/asmstub.c (grub_stage2): Call close instead of fclose.
88027c478bd9Sstevel@tonic-gate	(get_diskinfo): Call open instead of fopen.
88037c478bd9Sstevel@tonic-gate	(biosdisk) [__linux__]: Use _llseek instead of lseek.
88047c478bd9Sstevel@tonic-gate	(biosdisk): Call read instead of fread.
88057c478bd9Sstevel@tonic-gate
88067c478bd9Sstevel@tonic-gate	Add options so that the user can specify the config file.
88077c478bd9Sstevel@tonic-gate
88087c478bd9Sstevel@tonic-gate	* grub/Makefile.am (CPPFLAGS): Use -fwritable-strings, because
88097c478bd9Sstevel@tonic-gate	grub assumes that all strings resides at the data section.
88107c478bd9Sstevel@tonic-gate
88117c478bd9Sstevel@tonic-gate	* grub/main.c: Define NO_REMAPPING_LIBC_FUNCTIONS before including
88127c478bd9Sstevel@tonic-gate	shared.h.
88137c478bd9Sstevel@tonic-gate	(OPT_CONFIG_FILE): New macro.
88147c478bd9Sstevel@tonic-gate	(OPT_INSTALL_PARTITION): Likewise.
88157c478bd9Sstevel@tonic-gate	(OPT_BOOT_DRIVE): Likewise.
88167c478bd9Sstevel@tonic-gate	(longopts): Add new options, config-file, install-partition and
88177c478bd9Sstevel@tonic-gate	boot-drive.
88187c478bd9Sstevel@tonic-gate	(usage): Add the documentation for them.
88197c478bd9Sstevel@tonic-gate	(main): Add handling code for OPT_CONFIG_FILE, OPT_INSTALL_PARTITION
88207c478bd9Sstevel@tonic-gate	and OPT_BOOT_DRIVE.
88217c478bd9Sstevel@tonic-gate
88227c478bd9Sstevel@tonic-gate	* grub/asmstub.c: Define NO_REMAPPING_LIBC_FUNCTIONS before including
88237c478bd9Sstevel@tonic-gate	shared.h.
88247c478bd9Sstevel@tonic-gate	(config_file): Make it char * instead of char [].
88257c478bd9Sstevel@tonic-gate	(getrtsecs): Return current time instead of 0xff.
88267c478bd9Sstevel@tonic-gate
88277c478bd9Sstevel@tonic-gate	* shared_src/shared.h [NO_REMAPPING_LIBC_FUNCTIONS]: Don't define
88287c478bd9Sstevel@tonic-gate	libc-API-compatible function names.
88297c478bd9Sstevel@tonic-gate	(config_file): Change the prototype from char [] to char *.
88307c478bd9Sstevel@tonic-gate	(grub_putchar): Renamed from putchar.
88317c478bd9Sstevel@tonic-gate
88327c478bd9Sstevel@tonic-gate1999-03-25  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
88337c478bd9Sstevel@tonic-gate
88347c478bd9Sstevel@tonic-gate	* char_io.c (get_cmdline): Call cl_setcpos even if lpos == llen,
88357c478bd9Sstevel@tonic-gate	because ncurses won't update the cursor position.
88367c478bd9Sstevel@tonic-gate
88377c478bd9Sstevel@tonic-gate	* grub/main.c (OPT_HOLD): New macro.
88387c478bd9Sstevel@tonic-gate	(longopts): New option --hold.
88397c478bd9Sstevel@tonic-gate	(usage): Add the documentation about --hold.
88407c478bd9Sstevel@tonic-gate	(main): Set hold if --hold is specified. Wait until cleared.
88417c478bd9Sstevel@tonic-gate
88427c478bd9Sstevel@tonic-gate1999-03-22  Gordon Matzigkeit  <gord@trick.fig.org>
88437c478bd9Sstevel@tonic-gate
88447c478bd9Sstevel@tonic-gate	* shared_src/cmdline.c (enter_cmdline): Check the return value of
88457c478bd9Sstevel@tonic-gate	set_device in the `root' command.
88467c478bd9Sstevel@tonic-gate
88477c478bd9Sstevel@tonic-gate	* shared_src/char_io.c (memcheck): Special-case cur_part_desc and
88487c478bd9Sstevel@tonic-gate	reenable memory checking.
88497c478bd9Sstevel@tonic-gate
88507c478bd9Sstevel@tonic-gate1999-03-21  Gordon Matzigkeit  <gord@trick.fig.org>
88517c478bd9Sstevel@tonic-gate
88527c478bd9Sstevel@tonic-gate	* shared_src/boot.c (load_image): Make sure we use the mapped
88537c478bd9Sstevel@tonic-gate	address before actually writing data to memaddr.
88547c478bd9Sstevel@tonic-gate
88557c478bd9Sstevel@tonic-gate	* shared_src/char_io.c (get_cmdline): Only zero-terminate if there
88567c478bd9Sstevel@tonic-gate	were leading blanks.  This prevents accidental truncation of
88577c478bd9Sstevel@tonic-gate	commands.
88587c478bd9Sstevel@tonic-gate
88597c478bd9Sstevel@tonic-gate	* grub/asmstub.c (get_diskinfo): Cache device geometries as well
88607c478bd9Sstevel@tonic-gate	as file handles.
88617c478bd9Sstevel@tonic-gate	Use the Linux HDIO_GETGEO ioctl to make a better guess at hard
88627c478bd9Sstevel@tonic-gate	disk geometries.
88637c478bd9Sstevel@tonic-gate
88647c478bd9Sstevel@tonic-gate1999-03-16  Gordon Matzigkeit  <gord@trick.fig.org>
88657c478bd9Sstevel@tonic-gate
88667c478bd9Sstevel@tonic-gate	* shared_src/shared.h (geometry_t): Delete typedef, until we
88677c478bd9Sstevel@tonic-gate	actually use it.
88687c478bd9Sstevel@tonic-gate
88697c478bd9Sstevel@tonic-gate1999-03-16  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
88707c478bd9Sstevel@tonic-gate
88717c478bd9Sstevel@tonic-gate	* shared_src/asm.S (biosdisk): Use a structure for geometry
88727c478bd9Sstevel@tonic-gate	instead of a integer.
88737c478bd9Sstevel@tonic-gate	(get_diskinfo): Take a pointer to a geometry structure as the
88747c478bd9Sstevel@tonic-gate	second argument, and fill a geometry in it. Return 1 if an error
88757c478bd9Sstevel@tonic-gate	occurs, otherwise return 0.
88767c478bd9Sstevel@tonic-gate	* shared_src/boot.c (bsd_boot): Compute BIOS geometries for BSD.
88777c478bd9Sstevel@tonic-gate	* shared_src/cmdline.c (enter_cmdline): Declare dest_geom as
88787c478bd9Sstevel@tonic-gate	struct geometry.
88797c478bd9Sstevel@tonic-gate	* shared_src/disk_io.c (buf_geom): Declare as struct geometry.
88807c478bd9Sstevel@tonic-gate	* shared_src/filesys.h (SECTORS): Deleted.
88817c478bd9Sstevel@tonic-gate	(HEADS): Likewise.
88827c478bd9Sstevel@tonic-gate	(CYLINDERS): Likewise.
88837c478bd9Sstevel@tonic-gate	* shared_src/shared.h (BIOSDISK_FLAG_LBA_EXTENSION): New macro.
88847c478bd9Sstevel@tonic-gate	(struct geometry): New structure.
88857c478bd9Sstevel@tonic-gate	(buf_geom): Correct the prototype.
88867c478bd9Sstevel@tonic-gate	(get_diskinfo): Likewise.
88877c478bd9Sstevel@tonic-gate	(biosdisk): Likewise.
88887c478bd9Sstevel@tonic-gate
88897c478bd9Sstevel@tonic-gate1999-03-15  Gordon Matzigkeit  <gord@trick.fig.org>
88907c478bd9Sstevel@tonic-gate
88917c478bd9Sstevel@tonic-gate	* grub/asmstub.c (doit): Nested function to get a clean stack
88927c478bd9Sstevel@tonic-gate	frame while in grub_stage2.
88937c478bd9Sstevel@tonic-gate	Use different assembler magic.  From OKUJI Yoshinori.
88947c478bd9Sstevel@tonic-gate
88957c478bd9Sstevel@tonic-gate1999-03-14  Gordon Matzigkeit  <gord@trick.fig.org>
88967c478bd9Sstevel@tonic-gate
88977c478bd9Sstevel@tonic-gate	* shared_src/stage2.c (run_menu): Use A_REVERSE and A_NORMAL
88987c478bd9Sstevel@tonic-gate	constants instead of magic numbers.
88997c478bd9Sstevel@tonic-gate
89007c478bd9Sstevel@tonic-gate	* shared_src/shared.h (A_REVERSE): Renamed from ATTR_INVERSE for
89017c478bd9Sstevel@tonic-gate	compatibility with curses.
89027c478bd9Sstevel@tonic-gate	(A_NORMAL): Renamed from ATTR_NORMAL.
89037c478bd9Sstevel@tonic-gate
89047c478bd9Sstevel@tonic-gate	* shared_src/cmdline.c (enter_cmdline): Change prompt to "grub> ".
89057c478bd9Sstevel@tonic-gate	(enter_cmdline): Only abort the boot if we are in a script.
89067c478bd9Sstevel@tonic-gate
89077c478bd9Sstevel@tonic-gate	* shared_src/stage2.c (run_menu): Change prompts to "grub edit> ".
89087c478bd9Sstevel@tonic-gate
89097c478bd9Sstevel@tonic-gate	* shared_src/char_io.c (memcheck): Use RAW_ADDR to compute memory
89107c478bd9Sstevel@tonic-gate	locations.
89117c478bd9Sstevel@tonic-gate	(get_cmdline): Change the `goto next line' code to account for
89127c478bd9Sstevel@tonic-gate	newlines deleting to end of line under curses.
89137c478bd9Sstevel@tonic-gate
89147c478bd9Sstevel@tonic-gate	* Innumerable cleanups to fix warnings.  There are still too many
89157c478bd9Sstevel@tonic-gate	typecasts in the wrong places (int variables used to hold
89167c478bd9Sstevel@tonic-gate	pointers, then casted to a pointer type), but things look better.
89177c478bd9Sstevel@tonic-gate
89187c478bd9Sstevel@tonic-gate	* configure.in (CPPFLAGS): Bump up GCC warnings to -Wall
89197c478bd9Sstevel@tonic-gate	-Wmissing-prototypes -Wunused.
89207c478bd9Sstevel@tonic-gate
89217c478bd9Sstevel@tonic-gate	* shared_src/shared.h: Delete stupid declarations, and totally
89227c478bd9Sstevel@tonic-gate	rearrange for clarity.
89237c478bd9Sstevel@tonic-gate	(inb, outb): Move to cmdline.c, since it's only used there.
89247c478bd9Sstevel@tonic-gate	(print_possibilities, fsmax, fsys_table): Move definitions to
89257c478bd9Sstevel@tonic-gate	disk_io.c.
89267c478bd9Sstevel@tonic-gate
89277c478bd9Sstevel@tonic-gate	* grub/asmstub.c: Fill in more stubs.
89287c478bd9Sstevel@tonic-gate
89297c478bd9Sstevel@tonic-gate1999-03-13  Gordon Matzigkeit  <gord@trick.fig.org>
89307c478bd9Sstevel@tonic-gate
89317c478bd9Sstevel@tonic-gate	* shared_src/gunzip.c (border): Rename to bitorder, to resolve
89327c478bd9Sstevel@tonic-gate	clash with curses.
89337c478bd9Sstevel@tonic-gate	* shared_src/stage2.c (timeout): Rename to grub_timeout.
89347c478bd9Sstevel@tonic-gate
89357c478bd9Sstevel@tonic-gate	* configure.in: Check for curses libraries for use with
89367c478bd9Sstevel@tonic-gate	/sbin/grub.
89377c478bd9Sstevel@tonic-gate
89387c478bd9Sstevel@tonic-gate	* shared_src/shared.h (KEY_DELETE): Rename to KEY_DC, for
89397c478bd9Sstevel@tonic-gate	compatibility with curses.
89407c478bd9Sstevel@tonic-gate	(KEY_INSERT): Rename to KEY_IC.
89417c478bd9Sstevel@tonic-gate	(KEY_PGDN): Rename to KEY_NPAGE.
89427c478bd9Sstevel@tonic-gate	(KEY_PGUP): Rename to KEY_PPAGE.
89437c478bd9Sstevel@tonic-gate
89447c478bd9Sstevel@tonic-gate	* shared_src/asm.S (asm_getkey): Renamed to getkey.
89457c478bd9Sstevel@tonic-gate
89467c478bd9Sstevel@tonic-gate	* shared_src/char_io.c (getkey): Delete, because it's useless.
89477c478bd9Sstevel@tonic-gate
89487c478bd9Sstevel@tonic-gate	* shared_src/shared.h: Resolve name clashes with libc by renaming
89497c478bd9Sstevel@tonic-gate	overlapping functions to have grub_ prefixes, then defining
89507c478bd9Sstevel@tonic-gate	macros.
89517c478bd9Sstevel@tonic-gate
89527c478bd9Sstevel@tonic-gate	* grub/asmstub.c (start_stage2): Make some assertions about our
89537c478bd9Sstevel@tonic-gate	scratch memory area.
89547c478bd9Sstevel@tonic-gate
89557c478bd9Sstevel@tonic-gate	* shared_src/shared.h (end): Delete declaration.
89567c478bd9Sstevel@tonic-gate	(RAW_ADDR, RAW_SEG): Macros to redirect /sbin/grub memory requests
89577c478bd9Sstevel@tonic-gate	through grub_scratch_mem.
89587c478bd9Sstevel@tonic-gate
89597c478bd9Sstevel@tonic-gate	* grub/asmstub.c (get_mem_map): Implement, simulating 4MB
89607c478bd9Sstevel@tonic-gate	contiguous memory.
89617c478bd9Sstevel@tonic-gate	(get_code_end): Implement, simulating with a malloced area.
89627c478bd9Sstevel@tonic-gate	grub/asmstub.c (start_stage2): Initialize grub_scratch_mem.
89637c478bd9Sstevel@tonic-gate
89647c478bd9Sstevel@tonic-gate	* shared_src/asm.S (get_mem_map): Some BIOSes expect the high word
89657c478bd9Sstevel@tonic-gate	of %eax to be zero.
89667c478bd9Sstevel@tonic-gate	(get_code_end): Move this from common.c so that we can stub it out
89677c478bd9Sstevel@tonic-gate	in the simulator.
89687c478bd9Sstevel@tonic-gate
89697c478bd9Sstevel@tonic-gate	* debian/rules: Make sure info files end up in /usr/info, not
89707c478bd9Sstevel@tonic-gate	/info.
89717c478bd9Sstevel@tonic-gate
89727c478bd9Sstevel@tonic-gate1999-03-10  Gordon Matzigkeit  <gord@trick.fig.org>
89737c478bd9Sstevel@tonic-gate
89747c478bd9Sstevel@tonic-gate	* shared_src/asm.S (biosdisk): Make LBA mode work correctly.  From
89757c478bd9Sstevel@tonic-gate	OKUJI Yoshinori.
89767c478bd9Sstevel@tonic-gate	Unconditionally define NO_INT13_FALLBACK until we release GRUB
89777c478bd9Sstevel@tonic-gate	0.6.  This will help debug any problems with the LBA support until
89787c478bd9Sstevel@tonic-gate	then.
89797c478bd9Sstevel@tonic-gate
89807c478bd9Sstevel@tonic-gate1999-03-09  Gordon Matzigkeit  <gord@trick.fig.org>
89817c478bd9Sstevel@tonic-gate
89827c478bd9Sstevel@tonic-gate	* shared_src/asm.S (biosdisk): Compute location of
89837c478bd9Sstevel@tonic-gate	disk_address_packet correctly.  From OKUJI Yoshinori.
89847c478bd9Sstevel@tonic-gate
89857c478bd9Sstevel@tonic-gate1999-03-08  Gordon Matzigkeit  <gord@trick.fig.org>
89867c478bd9Sstevel@tonic-gate
89877c478bd9Sstevel@tonic-gate	* docs/grub.texi: New Texinfo documentation.
89887c478bd9Sstevel@tonic-gate
89897c478bd9Sstevel@tonic-gate	* shared_src/disk_io.c (set_device): First stab at interpreting
89907c478bd9Sstevel@tonic-gate	Mach-style partition naming.
89917c478bd9Sstevel@tonic-gate
89927c478bd9Sstevel@tonic-gate	* shared_src/stage2.c (run_menu): Don't say it was a failure if
89937c478bd9Sstevel@tonic-gate	enter_cmdline returns nonzero... just wait for a key.
89947c478bd9Sstevel@tonic-gate
89957c478bd9Sstevel@tonic-gate	* shared_src/cmdline.c (enter_cmdline): Return nonzero, and avoid
89967c478bd9Sstevel@tonic-gate	the fallback command if we did an install.
89977c478bd9Sstevel@tonic-gate
89987c478bd9Sstevel@tonic-gate	* shared_src/asm.S (_start): New explicit symbol to supress
89997c478bd9Sstevel@tonic-gate	warnings.
90007c478bd9Sstevel@tonic-gate
90017c478bd9Sstevel@tonic-gate	* e2fs_stage1_5/Makefile.am (NO_FANCY_STUFF): Renamed to STAGE1_5,
90027c478bd9Sstevel@tonic-gate	since that describes this conditional more accurately.
90037c478bd9Sstevel@tonic-gate	* fat_stage1_5/Makefile.am: Likewise.
90047c478bd9Sstevel@tonic-gate	* ffs_stage1_5/Makefile.am: Likewise.
90057c478bd9Sstevel@tonic-gate	* shared_src/asm.S: Likewise.
90067c478bd9Sstevel@tonic-gate	* shared_src/char_io.c: Likewise.
90077c478bd9Sstevel@tonic-gate	* shared_src/common.c: Likewise.
90087c478bd9Sstevel@tonic-gate	* shared_src/disk_io.c: Likewise.
90097c478bd9Sstevel@tonic-gate	* shared_src/fsys_ext2fs.c: Likewise.
90107c478bd9Sstevel@tonic-gate	* shared_src/fsys_ffs.c: Likewise.
90117c478bd9Sstevel@tonic-gate	* shared_src/shared.h: Likewise.
90127c478bd9Sstevel@tonic-gate
90137c478bd9Sstevel@tonic-gate1999-03-07  Gordon Matzigkeit  <gord@trick.fig.org>
90147c478bd9Sstevel@tonic-gate
90157c478bd9Sstevel@tonic-gate	* configure.in (SHARED_SRC_RULES): Automatically generate
90167c478bd9Sstevel@tonic-gate	Makefile dependencies for files in shared_src.
90177c478bd9Sstevel@tonic-gate	e2fs_stage1_5/Makefile.am: Use them.
90187c478bd9Sstevel@tonic-gate	fat_stage1_5/Makefile.am: Likewise.
90197c478bd9Sstevel@tonic-gate	ffs_stage1_5/Makefile.am: Likewise.
90207c478bd9Sstevel@tonic-gate	grub/Makefile.am: Likewise.
90217c478bd9Sstevel@tonic-gate	stage2/Makefile.am: Likewise.
90227c478bd9Sstevel@tonic-gate	stage2_debug/Makefile.am: Likewise.
90237c478bd9Sstevel@tonic-gate
90247c478bd9Sstevel@tonic-gate	* shared_src/disk_inode.h: Fix typo: i_ic shouldn't be defined.
90257c478bd9Sstevel@tonic-gate
90267c478bd9Sstevel@tonic-gate	* shared_src/fsys_ffs.c (block_map): Make static, since this
90277c478bd9Sstevel@tonic-gate	function isn't used outside of its defining file.
90287c478bd9Sstevel@tonic-gate
90297c478bd9Sstevel@tonic-gate	* shared_src/disk_io.c [NO_FANCY_STUFF]: Eliminate a whole bunch
90307c478bd9Sstevel@tonic-gate	more functions from the stage1.5.  From OKUJI Yoshinori.
90317c478bd9Sstevel@tonic-gate	* shared_src/fsys_ffs.c: Likewise.
90327c478bd9Sstevel@tonic-gate	* shared_src/char_io.c: Likewise.
90337c478bd9Sstevel@tonic-gate
90347c478bd9Sstevel@tonic-gate1999-03-05  Gordon Matzigkeit  <gord@trick.fig.org>
90357c478bd9Sstevel@tonic-gate
90367c478bd9Sstevel@tonic-gate	* shared_src/char_io.c (getkey): Don't set BUF_DRIVE to -1.
90377c478bd9Sstevel@tonic-gate	BUF_DRIVE has nothing at all to do with getkey.
90387c478bd9Sstevel@tonic-gate
90397c478bd9Sstevel@tonic-gate	* shared_src/common.c (err_list): Change description of ERR_GEOM
90407c478bd9Sstevel@tonic-gate	to be more informative.
90417c478bd9Sstevel@tonic-gate
90427c478bd9Sstevel@tonic-gate	* Makefile.am (configure): Depend on debian/changelog.
90437c478bd9Sstevel@tonic-gate
90447c478bd9Sstevel@tonic-gate	* configure.in (host_cpu): Make all fully i386-compatible CPUs be
90457c478bd9Sstevel@tonic-gate	identified as i386.
90467c478bd9Sstevel@tonic-gate	(AM_INIT_AUTOMAKE): Fetch values for PACKAGE and VERSION from
90477c478bd9Sstevel@tonic-gate	debian/changelog, so that we only have one file to update.
90487c478bd9Sstevel@tonic-gate
90497c478bd9Sstevel@tonic-gate	* shared_src/asm.S (get_diskinfo): Fix a few bit-twiddling bugs in
90507c478bd9Sstevel@tonic-gate	the BIOS extension detection code.
90517c478bd9Sstevel@tonic-gate	(biosdisk) [AWARD_INT13_EXTENSIONS]: Preliminary implementation
90527c478bd9Sstevel@tonic-gate	of Award's encoding of cylinder bits 10 and 11.
90537c478bd9Sstevel@tonic-gate	(biosdisk) [NO_INT13_FALLBACK]: If defined, don't use the standard
90547c478bd9Sstevel@tonic-gate	disk interface if the extended interface fails.
90557c478bd9Sstevel@tonic-gate
90567c478bd9Sstevel@tonic-gate	* configure.in: Make sure $(host_cpu) and $(host_vendor) are
90577c478bd9Sstevel@tonic-gate	substituted into the Makefile.
90587c478bd9Sstevel@tonic-gate
90597c478bd9Sstevel@tonic-gate	* e2fs_stage1_5/Makefile.am (pkgdatadir): Install files in
90607c478bd9Sstevel@tonic-gate	$(datadir)/grub/$(host_cpu)-$(host_vendor).
90617c478bd9Sstevel@tonic-gate	* fat_stage1_5/Makefile.am: Likewise.
90627c478bd9Sstevel@tonic-gate	* ffs_stage1_5/Makefile.am: Likewise.
90637c478bd9Sstevel@tonic-gate	* stage1/Makefile.am: Likewise.
90647c478bd9Sstevel@tonic-gate	* stage2/Makefile.am: Likewise.
90657c478bd9Sstevel@tonic-gate	* stage2_debug/Makefile.am: Likewise.
90667c478bd9Sstevel@tonic-gate
90677c478bd9Sstevel@tonic-gate1999-03-03  Gordon Matzigkeit  <gord@trick.fig.org>
90687c478bd9Sstevel@tonic-gate
90697c478bd9Sstevel@tonic-gate	* shared_src/asm.S (biosdisk): Use LBA mode if high nibble of
90707c478bd9Sstevel@tonic-gate	GEOMETRY is nonzero.
90717c478bd9Sstevel@tonic-gate	(get_diskinfo): Set high nibble of GEOMETRY (0xf0000000) to 1 if
90727c478bd9Sstevel@tonic-gate	LBA mode is detected.
90737c478bd9Sstevel@tonic-gate
90747c478bd9Sstevel@tonic-gate1999-03-02  Gordon Matzigkeit  <gord@trick.fig.org>
90757c478bd9Sstevel@tonic-gate
90767c478bd9Sstevel@tonic-gate	* shared_src/disk_io.c (make_saved_active): Use BIOSDISK_READ and
90777c478bd9Sstevel@tonic-gate	BIOSDISK_WRITE.
90787c478bd9Sstevel@tonic-gate
90797c478bd9Sstevel@tonic-gate	* shared_src/cmdline.c (enter_cmdline): Use BIOSDISK_WRITE.
90807c478bd9Sstevel@tonic-gate
90817c478bd9Sstevel@tonic-gate	* shared_src/shared.h (BIOSDISK_SUBFUNC_READ,
90827c478bd9Sstevel@tonic-gate	BIOSDISK_SUBFUNC_WRITE): Delete constants.
90837c478bd9Sstevel@tonic-gate
90847c478bd9Sstevel@tonic-gate	* shared_src/asm.S (biosdisk): Change subfunc argument to be
90857c478bd9Sstevel@tonic-gate	read=0, write=1.
90867c478bd9Sstevel@tonic-gate
90877c478bd9Sstevel@tonic-gate	* configure.in: Drop redundant AC_PROG_INSTALL.  From OKUJI
90887c478bd9Sstevel@tonic-gate	Yoshinori.
90897c478bd9Sstevel@tonic-gate
90907c478bd9Sstevel@tonic-gate1999-03-01  Gordon Matzigkeit  <gord@trick.fig.org>
90917c478bd9Sstevel@tonic-gate
90927c478bd9Sstevel@tonic-gate	* debian/rules (binary-arch): Properly install README.debian.
90937c478bd9Sstevel@tonic-gate
90947c478bd9Sstevel@tonic-gate	* acinclude.m4 (grub_OBJCOPY_ABSOLUTE): Don't forget to move the
90957c478bd9Sstevel@tonic-gate	old binary out of the way before reentering the loop.
90967c478bd9Sstevel@tonic-gate	(grub_ASM_ADDR32): Delete conftest files after running the test.
90977c478bd9Sstevel@tonic-gate
90987c478bd9Sstevel@tonic-gate	* debian/rules (binary-arch): Remove empty /sbin directory until
90997c478bd9Sstevel@tonic-gate	/sbin/grub is installed.  Use $(DESTDIR) instead of $(prefix) to
91007c478bd9Sstevel@tonic-gate	install files.
91017c478bd9Sstevel@tonic-gate
91027c478bd9Sstevel@tonic-gate	* shared_src/asm.S (version_string): Set the version string from
91037c478bd9Sstevel@tonic-gate	the VERSION specified in configure.in.
91047c478bd9Sstevel@tonic-gate
91057c478bd9Sstevel@tonic-gate	* Change all Makefiles into Makefile.ams.  Many major build
91067c478bd9Sstevel@tonic-gate	environment changes to get Automake/Autoconf working nicely.
91077c478bd9Sstevel@tonic-gate
91087c478bd9Sstevel@tonic-gate1999-02-28  Gordon Matzigkeit  <gord@trick.fig.org>
91097c478bd9Sstevel@tonic-gate
91107c478bd9Sstevel@tonic-gate	* NEWS: Moved from docs/NEWS.
91117c478bd9Sstevel@tonic-gate
91127c478bd9Sstevel@tonic-gate	* configure.in, acinclude.m4: New files for Autoconf.  From OKUJI
91137c478bd9Sstevel@tonic-gate	Yoshinori.
91147c478bd9Sstevel@tonic-gate
91157c478bd9Sstevel@tonic-gate	* AUTHORS, INSTALL: New files.
91167c478bd9Sstevel@tonic-gate
91177c478bd9Sstevel@tonic-gate1999-02-24  Gordon Matzigkeit  <gord@trick.fig.org>
91187c478bd9Sstevel@tonic-gate
91197c478bd9Sstevel@tonic-gate	* stage1/stage1.S (after_BPB): Do a hard disk probe first, so that
91207c478bd9Sstevel@tonic-gate	we can work with IDE floppies (like the LS-120).
91217c478bd9Sstevel@tonic-gate
91227c478bd9Sstevel@tonic-gate	* Run GNU Indent on */*.[ch].
91237c478bd9Sstevel@tonic-gate
91247c478bd9Sstevel@tonic-gate1999-02-21  Gordon Matzigkeit  <gord@trick.fig.org>
91257c478bd9Sstevel@tonic-gate
91267c478bd9Sstevel@tonic-gate	* debian: Add to the distribution, since we maintain the GRUB
91277c478bd9Sstevel@tonic-gate	Debian package ourselves.
91287c478bd9Sstevel@tonic-gate
91297c478bd9Sstevel@tonic-gate	* grub/asmstub.c: New file to implement stubbed assembly functions
91307c478bd9Sstevel@tonic-gate	under Unix.
91317c478bd9Sstevel@tonic-gate
91327c478bd9Sstevel@tonic-gate	* stage1/Makefile: Delete spurious dependencies on Makefile.
91337c478bd9Sstevel@tonic-gate	* stage2/Makefile: Likewise.
91347c478bd9Sstevel@tonic-gate	* stage2_debug/Makefile: Likewise.
91357c478bd9Sstevel@tonic-gate	* grub/Makefile: Likewise.
91367c478bd9Sstevel@tonic-gate
91377c478bd9Sstevel@tonic-gate	* shared_src/fsys_ext2fs.c (ext2fs_dir): Follow symbolic links
91387c478bd9Sstevel@tonic-gate	rather than giving an error.
91397c478bd9Sstevel@tonic-gate
91407c478bd9Sstevel@tonic-gate	* shared_src/common.c (err_list): Use labeled elements to
91417c478bd9Sstevel@tonic-gate	associate messages with error codes.
91427c478bd9Sstevel@tonic-gate	* shared_src/shared.h: Make error codes into an enumerated type.
91437c478bd9Sstevel@tonic-gate
91447c478bd9Sstevel@tonic-gate	* shared_src/common.c (err_list): Add ERR_SYMLINK_LOOP.
91457c478bd9Sstevel@tonic-gate	* shared_src/shared.h: Likewise.
91467c478bd9Sstevel@tonic-gate
91477c478bd9Sstevel@tonic-gate	* shared_src/char_io.c (bcopy): Don't make any assumptions about
91487c478bd9Sstevel@tonic-gate	the length of an unsigned long.
91497c478bd9Sstevel@tonic-gate
91507c478bd9Sstevel@tonic-gate	* grub/Makefile: Treat CFLAGS, CPPFLAGS, LDFLAGS according to
91517c478bd9Sstevel@tonic-gate	GNU standards.
91527c478bd9Sstevel@tonic-gate	* stage2/Makefile: Likewise.
91537c478bd9Sstevel@tonic-gate	* e2fs_stage1_5/Makefile: Likewise.
91547c478bd9Sstevel@tonic-gate	* fat_stage1_5/Makefile: Likewise.
91557c478bd9Sstevel@tonic-gate	* ffs_stage1_5/Makefile: Likewise.
91567c478bd9Sstevel@tonic-gate
91577c478bd9Sstevel@tonic-gate1999-02-20  Gordon Matzigkeit  <gord@trick.fig.org>
91587c478bd9Sstevel@tonic-gate
91597c478bd9Sstevel@tonic-gate	* docs/index.html: Rename to grub.html, so that we don't hide
91607c478bd9Sstevel@tonic-gate	files in this directory from a web browser.
91617c478bd9Sstevel@tonic-gate
91627c478bd9Sstevel@tonic-gate1999-02-15  Gordon Matzigkeit  <gord@trick.fig.org>
91637c478bd9Sstevel@tonic-gate
91647c478bd9Sstevel@tonic-gate	* Makefile.end (PROGS): Add grub.
91657c478bd9Sstevel@tonic-gate
91667c478bd9Sstevel@tonic-gate	* grub/main.c: New file.
91677c478bd9Sstevel@tonic-gate
91687c478bd9Sstevel@tonic-gate	* grub/Makefile: New directory to contain the stage2 Unix program.
91697c478bd9Sstevel@tonic-gate
91707c478bd9Sstevel@tonic-gate	* shared_src/cmdline.c: Use substring.
91717c478bd9Sstevel@tonic-gate	* shared_src/fsys_ext2fs.c: Likewise.
91727c478bd9Sstevel@tonic-gate	* shared_src/fsys_fat.c: Likewise.
91737c478bd9Sstevel@tonic-gate	* shared_src/fsys_ffs.c: Likewise.
91747c478bd9Sstevel@tonic-gate	* shared_src/stage2.c: Likewise.
91757c478bd9Sstevel@tonic-gate
91767c478bd9Sstevel@tonic-gate	* shared_src/shared.h: Delete strcmp, declare substring.
91777c478bd9Sstevel@tonic-gate
91787c478bd9Sstevel@tonic-gate	* shared_src/char_io.c (strcmp): Rename to `substring', because
91797c478bd9Sstevel@tonic-gate	this function doesn't behave the same as libc's strcmp.
91807c478bd9Sstevel@tonic-gate
91817c478bd9Sstevel@tonic-gate1999-02-14  Gordon Matzigkeit  <gord@trick.fig.org>
91827c478bd9Sstevel@tonic-gate
91837c478bd9Sstevel@tonic-gate	* shared_src/shared.h: (addr32, data32): Delete definitions.
91847c478bd9Sstevel@tonic-gate
91857c478bd9Sstevel@tonic-gate	* stage1/stage1.S: Modify to use GAS's new .code16 semantics.
91867c478bd9Sstevel@tonic-gate	shared_src/asm.S: Likewise.
91877c478bd9Sstevel@tonic-gate
91887c478bd9Sstevel@tonic-gate	* configure: Test to see if the `addr32' instruction is supported.
91897c478bd9Sstevel@tonic-gate	Ian Lance Taylor says that GAS's interpretation of `.code16' has
91907c478bd9Sstevel@tonic-gate	changed.  Older versions always generated 32-bit code, but
91917c478bd9Sstevel@tonic-gate	implicitly inserted addr32 and data32 when .code16 was given.
91927c478bd9Sstevel@tonic-gate	Newer versions generate 16-bit code, and require manual addr32 and
91937c478bd9Sstevel@tonic-gate	data32 overrides.
91947c478bd9Sstevel@tonic-gate
91957c478bd9Sstevel@tonic-gate	* shared_src/shared.h: Add some assertions to check that buffer
91967c478bd9Sstevel@tonic-gate	addresses are properly defined.
91977c478bd9Sstevel@tonic-gate
91987c478bd9Sstevel@tonic-gate1999-02-12  Gordon Matzigkeit  <gord@trick.fig.org>
91997c478bd9Sstevel@tonic-gate
92007c478bd9Sstevel@tonic-gate	* shared_src/stage2.c (run_menu): Pause if we failed to boot both
92017c478bd9Sstevel@tonic-gate	the default and fallback entries.
92027c478bd9Sstevel@tonic-gate
92037c478bd9Sstevel@tonic-gate	* configure: Check to make sure that GAS actually honors .code16
92047c478bd9Sstevel@tonic-gate	directives.
92057c478bd9Sstevel@tonic-gate
92067c478bd9Sstevel@tonic-gate1999-02-02  Gordon Matzigkeit  <gord@trick.fig.org>
92077c478bd9Sstevel@tonic-gate
92087c478bd9Sstevel@tonic-gate	* shared_src/asm.S: Fix typo that called interrupt 0xd (decimal
92097c478bd9Sstevel@tonic-gate	13) instead of 0x13.
92107c478bd9Sstevel@tonic-gate
92117c478bd9Sstevel@tonic-gate1999-01-31  Gordon Matzigkeit  <gord@trick.fig.org>
92127c478bd9Sstevel@tonic-gate
92137c478bd9Sstevel@tonic-gate	* e2fs_stage1_5/Makefile: Avoid gratuitous dependencies on
92147c478bd9Sstevel@tonic-gate	Makefile.
92157c478bd9Sstevel@tonic-gate	* fat_stage1_5/Makefile: Likewise.
92167c478bd9Sstevel@tonic-gate	* ffs_stage1_5/Makefile: Likewise.
92177c478bd9Sstevel@tonic-gate
92187c478bd9Sstevel@tonic-gate	* Makefile.end (PROGS): Add e2fs_stage1_5, fat_stage1_5, and
92197c478bd9Sstevel@tonic-gate	grubinst.
92207c478bd9Sstevel@tonic-gate	(distclean): New GNU standard rule.
92217c478bd9Sstevel@tonic-gate
92227c478bd9Sstevel@tonic-gate1998-10-23  Gordon Matzigkeit  <gord@trick.fig.org>
92237c478bd9Sstevel@tonic-gate
92247c478bd9Sstevel@tonic-gate	* configure: Accept `--host' as a synonym for `--target', and
92257c478bd9Sstevel@tonic-gate	accept a non-optional argument as the target name.  Join the
92267c478bd9Sstevel@tonic-gate	prefix to the tool name with a hyphen.
92277c478bd9Sstevel@tonic-gate
92287c478bd9Sstevel@tonic-gate	* shared_src/disk_io.c (print_fsys_type): Always print the
92297c478bd9Sstevel@tonic-gate	partition type.
92307c478bd9Sstevel@tonic-gate
92317c478bd9Sstevel@tonic-gate	* shared_src/stage2.c (run_menu): Check to make sure that the
92327c478bd9Sstevel@tonic-gate	fallback entry is nonnegative.
92337c478bd9Sstevel@tonic-gate	(run_menu): For consistency, use `e' rather than enter to edit the
92347c478bd9Sstevel@tonic-gate	command entry.
9235