summaryrefslogtreecommitdiff
path: root/sys/arch/socppc/stand/mbr/mbr.S
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/socppc/stand/mbr/mbr.S')
-rw-r--r--sys/arch/socppc/stand/mbr/mbr.S34
1 files changed, 34 insertions, 0 deletions
diff --git a/sys/arch/socppc/stand/mbr/mbr.S b/sys/arch/socppc/stand/mbr/mbr.S
new file mode 100644
index 00000000000..4da867aab49
--- /dev/null
+++ b/sys/arch/socppc/stand/mbr/mbr.S
@@ -0,0 +1,34 @@
+#include <machine/asm.h>
+
+ENTRY(start)
+ nop
+
+/* space for mbr_dsn */
+ . = _C_LABEL(start) + 0x1b4
+ .long 0
+
+/* mbr_bootsel_magic */
+ . = _C_LABEL(start) + 0x1b8
+ .word 0
+
+/*
+ * MBR partition table
+ */
+ . = _C_LABEL(start) + 0x1be
+_pbr_part0:
+ .byte 0x80, 1, 1, 0, 0x27, 9, 8, 0
+ .byte 0x3f, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00
+_pbr_part1:
+ .byte 0, 0, 0, 0, 0, 0, 0, 0
+ .byte 0, 0, 0, 0, 0, 0, 0, 0
+_pbr_part2:
+ .byte 0, 0, 0, 0, 0, 0, 0, 0
+ .byte 0, 0, 0, 0, 0, 0, 0, 0
+_pbr_part3:
+ .byte 0, 9, 9, 0, 0xa6, 15, 63, 7
+ .byte 0x3f, 0x02, 0x00, 0x00, 0x41, 0x1d, 0x00, 0x00
+
+ . = _C_LABEL(start) + 0x1fe
+magic:
+ .word 0x55aa
+mbr_end: