1 |
|
2003-01-06 Yoshinori K. Okuji <okuji@enbug.org> |
2 |
|
|
3 |
|
* util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h. |
4 |
|
(setup): Configure the installed partition information and the |
5 |
|
dl prefix. |
6 |
|
|
7 |
|
* loader/i386/pc/chainloader.c (my_mod): New variable. |
8 |
|
(pupa_chainloader_unload): New function. |
9 |
|
(pupa_rescue_cmd_chainloader): Refer itself. |
10 |
|
(PUPA_MOD_INIT): Save its own module in MY_MOD. |
11 |
|
|
12 |
|
* kern/i386/pc/startup.S (install_partition): Removed. |
13 |
|
(version_string): Likewise. |
14 |
|
(config_file): Likewise. |
15 |
|
(pupa_install_dos_part): New variable. |
16 |
|
(pupa_install_bsd_part): Likewise. |
17 |
|
(pupa_prefix): Likewise. |
18 |
|
(pupa_chainloader_real_boot): Call pupa_dl_unload_all. |
19 |
|
|
20 |
|
* kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h |
21 |
|
and pupa/misc.h. |
22 |
|
(make_install_device): New function. |
23 |
|
(pupa_machine_init): Set the dl prefix. |
24 |
|
|
25 |
|
* kern/rescue.c: Include pupa/rescue.h and pupa/dl.h. |
26 |
|
(buf): Renamed to ... |
27 |
|
(linebuf): ... this. |
28 |
|
(pupa_rescue_cmd_prefix): New function. |
29 |
|
(pupa_rescue_cmd_insmod): Likewise. |
30 |
|
(pupa_rescue_cmd_rmmod): Likewise. |
31 |
|
(pupa_rescue_cmd_lsmod): Likewise. |
32 |
|
(pupa_enter_rescue_mode): Register new commands: prefix, insmod, |
33 |
|
rmmod and lsmod. |
34 |
|
|
35 |
|
* kern/mm.c (pupa_memalign): If failed even after invalidating |
36 |
|
disk caches, unload unneeded modules and retry. |
37 |
|
|
38 |
|
* kern/misc.c (pupa_memmove): New function. |
39 |
|
(pupa_memcpy): Removed. |
40 |
|
(pupa_strcpy): New function. |
41 |
|
(pupa_itoa): Made static. |
42 |
|
|
43 |
|
* kern/dl.c (pupa_dl_iterate): New function. |
44 |
|
(pupa_dl_ref): Likewise. |
45 |
|
(pupa_dl_unref): Likewise. |
46 |
|
(pupa_dl_unload): Return if succeeded or not. |
47 |
|
(pupa_dl_unload_unneeded): New function. |
48 |
|
(pupa_dl_unload_all): Likewise. |
49 |
|
(pupa_dl_init): Renamed to ... |
50 |
|
(pupa_dl_set_prefix): ... this. |
51 |
|
(pupa_dl_get_prefix): New function. |
52 |
|
|
53 |
|
* include/pupa/i386/pc/kernel.h: Include pupa/types.h. |
54 |
|
(PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro. |
55 |
|
(PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise. |
56 |
|
(PUPA_KERNEL_MACHINE_PREFIX): Likewise. |
57 |
|
(pupa_install_dos_part): Declared. |
58 |
|
(pupa_install_bsd_part): Likewise. |
59 |
|
(pupa_prefix): Likewise. |
60 |
|
(pupa_boot_drive): Likewise. |
61 |
|
|
62 |
|
* include/pupa/types.h: Fix a typo. |
63 |
|
|
64 |
|
* include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to |
65 |
|
pupa_memmove. |
66 |
|
(pupa_memmove): Declared. |
67 |
|
(pupa_strcpy): Likewise. |
68 |
|
|
69 |
|
* include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now |
70 |
|
pupa_mod_init takes one argument, its own module. |
71 |
|
(pupa_dl_unload_unneeded): Declared. |
72 |
|
(pupa_dl_unload_all): Likewise. |
73 |
|
(pupa_dl_ref): Likewise. |
74 |
|
(pupa_dl_unref): Likewise. |
75 |
|
(pupa_dl_iterate): Likewise. |
76 |
|
(pupa_dl_init): Renamed to ... |
77 |
|
(pupa_dl_set_prefix): ... this. |
78 |
|
(pupa_dl_get_prefix): Declared. |
79 |
|
|
80 |
|
* fs/fat.c [!PUPA_UTIL] (my_mod): New variable. |
81 |
|
(pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being |
82 |
|
unloaded. |
83 |
|
(pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded. |
84 |
|
(pupa_fat_close) [!PUPA_UTIL]: Unrefer itself. |
85 |
|
|
86 |
|
* configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith, |
87 |
|
-Wmissing-prototypes, -Wundef and -Wstrict-prototypes. |
88 |
|
|
89 |
2003-01-03 Yoshinori K. Okuji <okuji@enbug.org> |
2003-01-03 Yoshinori K. Okuji <okuji@enbug.org> |
90 |
|
|
91 |
* util/i386/pc/pupa-setup.c (setup): Define the internal |
* util/i386/pc/pupa-setup.c (setup): Define the internal |