+2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
+
+ MIPS support.
+
+ * doc/multiboot2.h (GRUB_MULTIBOOT_ARCHITECTURE_I386): Removed leftover
+ GRUB_ prefix.
+ (MULTIBOOT_ARCHITECTURE_MIPS32): New constant.
+ * doc/multiboot.texi (MIPS machine state): New section.
+ (Header magic fields): New possible value of arcitecture field.
+
2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
* doc/multiboot.texi: Removed the promise of BIOS availability.
Instruction Set Architecture. Since @samp{magic} isn't a palindrome
it already specifies the endianness ISAs differing only in endianness
recieve the same ID. @samp{0} means 32-bit (protected) mode of i386.
+@samp{4} means 32-bit MIPS.
@item header_length
The field @samp{header_length} specifies the Length of multiboot header
@node Machine state
-@section Machine state
+@section MIPS machine state
+
+When the boot loader invokes the operating system, the machine
+must have the following state:
+
+@table @samp
+@item R4 (also known as A0)
+Must contain the magic value @samp{0x36d76289}; the presence of this
+value indicates to the operating system that it was loaded by a
+Multiboot-compliant boot loader (e.g. as opposed to another type of
+boot loader that the operating system can also be loaded from).
+
+@item R5 (also known as A1)
+Must contain the 32-bit physical address of the Multiboot
+information structure provided by the boot loader (@pxref{Boot
+information format}).
+@end table
+
+All other processor registers and flag bits are undefined. This
+includes, in particular:
+
+@table @samp
+@item R29/SP
+The OS image must create its own stack as soon as it needs one.
+
+@end table
+
+@section I386 machine state
When the boot loader invokes the 32-bit operating system, the machine
must have the following state:
#define MULTIBOOT_HEADER_TAG_FRAMEBUFFER 5
#define MULTIBOOT_HEADER_TAG_MODULE_ALIGN 6
-#define GRUB_MULTIBOOT_ARCHITECTURE_I386 0
+#define MULTIBOOT_ARCHITECTURE_I386 0
+#define MULTIBOOT_ARCHITECTURE_MIPS32 4
#define MULTIBOOT_HEADER_TAG_OPTIONAL 1
#define MULTIBOOT_CONSOLE_FLAGS_CONSOLE_REQUIRED 1