~hamo/ubuntu/precise/grub2/grub2.hi_res

« back to all changes in this revision

Viewing changes to include/grub/kernel.h

  • Committer: Bazaar Package Importer
  • Author(s): Colin Watson, Colin Watson, Robert Millan, Updated translations
  • Date: 2010-11-22 12:24:56 UTC
  • mfrom: (1.26.4 upstream) (17.3.36 sid)
  • mto: (17.3.43 sid)
  • mto: This revision was merged to the branch mainline in revision 89.
  • Revision ID: james.westby@ubuntu.com-20101122122456-y82z3sfb7k4zfdcc
Tags: 1.99~20101122-1
[ Colin Watson ]
* New Bazaar snapshot.  Too many changes to list in full, but some of the
  more user-visible ones are as follows:
  - GRUB script:
    + Function parameters, "break", "continue", "shift", "setparams",
      "return", and "!".
    + "export" command supports multiple variable names.
    + Multi-line quoted strings support.
    + Wildcard expansion.
  - sendkey support.
  - USB hotunplugging and USB serial support.
  - Rename CD-ROM to cd on BIOS.
  - Add new --boot-directory option to grub-install, grub-reboot, and
    grub-set-default; the old --root-directory option is still accepted
    but was often confusing.
  - Basic btrfs detection/UUID support (but no file reading yet).
  - bash-completion for utilities.
  - If a device is listed in device.map, always assume that it is
    BIOS-visible rather than using extra layers such as LVM or RAID.
  - Add grub-mknetdir script (closes: #550658).
  - Remove deprecated "root" command.
  - Handle RAID devices containing virtio components.
  - GRUB Legacy configuration file support (via grub-menulst2cfg).
  - Keyboard layout support (via grub-mklayout and grub-kbdcomp).
  - Check generated grub.cfg for syntax errors before saving.
  - Pause execution for at most ten seconds if any errors are displayed,
    so that the user has a chance to see them.
  - Support submenus.
  - Write embedding zone using Reed-Solomon, so that it's robust against
    being partially overwritten (closes: #550702, #591416, #593347).
  - GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY merged
    into a single GRUB_DISABLE_RECOVERY variable.
  - Fix loader memory allocation failure (closes: #551627).
  - Don't call savedefault on recovery entries (closes: #589325).
  - Support triple-indirect blocks on ext2 (closes: #543924).
  - Recognise DDF1 fake RAID (closes: #603354).

[ Robert Millan ]
* Use dpkg architecture wildcards.

[ Updated translations ]
* Slovenian (Vanja Cvelbar).  Closes: #604003
* Dzongkha (dawa pemo via Tenzin Dendup).  Closes: #604102

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
{
27
27
  OBJ_TYPE_ELF,
28
28
  OBJ_TYPE_MEMDISK,
29
 
  OBJ_TYPE_CONFIG,
30
 
  OBJ_TYPE_FONT
 
29
  OBJ_TYPE_CONFIG
31
30
};
32
31
 
33
32
/* The module header.  */
42
41
/* "gmim" (GRUB Module Info Magic).  */
43
42
#define GRUB_MODULE_MAGIC 0x676d696d
44
43
 
45
 
struct grub_module_info
46
 
{
47
 
  /* Magic number so we know we have modules present.  */
48
 
  grub_uint32_t magic;
 
44
struct grub_module_info32
 
45
{
 
46
  /* Magic number so we know we have modules present.  */
 
47
  grub_uint32_t magic;
 
48
  /* The offset of the modules.  */
 
49
  grub_uint32_t offset;
 
50
  /* The size of all modules plus this header.  */
 
51
  grub_uint32_t size;
 
52
};
 
53
 
 
54
struct grub_module_info64
 
55
{
 
56
  /* Magic number so we know we have modules present.  */
 
57
  grub_uint32_t magic;
 
58
  grub_uint32_t padding;
 
59
  /* The offset of the modules.  */
 
60
  grub_uint64_t offset;
 
61
  /* The size of all modules plus this header.  */
 
62
  grub_uint64_t size;
 
63
};
 
64
 
49
65
#if GRUB_TARGET_SIZEOF_VOID_P == 8
50
 
  grub_uint32_t padding;
 
66
#define grub_module_info grub_module_info64
 
67
#else
 
68
#define grub_module_info grub_module_info32
51
69
#endif
52
 
  /* The offset of the modules.  */
53
 
  grub_target_off_t offset;
54
 
  /* The size of all modules plus this header.  */
55
 
  grub_target_size_t size;
56
 
};
57
70
 
58
71
extern grub_addr_t grub_arch_modules_addr (void);
59
72
 
60
73
extern void EXPORT_FUNC(grub_module_iterate) (int (*hook) (struct grub_module_header *));
61
74
 
 
75
grub_addr_t grub_modules_get_end (void);
 
76
 
62
77
/* The start point of the C code.  */
63
78
void grub_main (void);
64
79
 
74
89
/* Register all the exported symbols. This is automatically generated.  */
75
90
void grub_register_exported_symbols (void);
76
91
 
 
92
#if ! defined (ASM_FILE) && !defined (GRUB_MACHINE_EMU)
 
93
extern char grub_prefix[];
 
94
#endif
 
95
 
77
96
#endif /* ! GRUB_KERNEL_HEADER */