summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>1997-07-17 22:43:54 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>1997-07-17 22:43:54 +0000
commit9994ddc59828d8c799efe18598bef2f308ef3237 (patch)
tree5ef08188735266710d58ec4f55ec6f4bc717fe09 /sys/arch
parent66ba72288b2dc8afd721bf44d9cf5c518b12a4b6 (diff)
use cpp, not equ
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/i386/boot/start.S26
1 files changed, 13 insertions, 13 deletions
diff --git a/sys/arch/i386/boot/start.S b/sys/arch/i386/boot/start.S
index d9adc1ac74d..7cd586e968c 100644
--- a/sys/arch/i386/boot/start.S
+++ b/sys/arch/i386/boot/start.S
@@ -55,16 +55,16 @@ WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#define addr32 .byte 0x67
#define data32 .byte 0x66
-BOOTSEG = 0x0100 # boot will be loaded here (below 640K)
-BOOTSTACK = 0xfffc # boot stack
-SIGNATURE = 0xaa55
-LOADSZ = 15 # size of unix boot
-PARTSTART = 0x1be # starting address of partition table
-NUMPART = 4 # number of partitions in partition table
-PARTSZ = 16 # each partition table entry is 16 bytes
-BSDPART = 0xA6 # OpenBSD partition identification
-OLDBSDPART = 0xA5 # 386/Net/FreeBSD partition identification
-BOOTABLE = 0x80 # value of boot_ind, means bootable partition
+#define BOOTSEG 0x0100 /* boot will be loaded here (below 640K) */
+#define BOOTSTACK 0xfffc /* boot stack */
+#define SIGNATURE 0xaa55 /* MBR signature */
+#define LOADSZ 15 /* size of unix boot */
+#define PARTSTART 0x1be /* starting address of partition table */
+#define NUMPART 4 /* number of partitions in partition table */
+#define PARTSZ 16 /* each partition table entry is 16 bytes */
+#define BSDPART 0xA6 /* OpenBSD partition identification */
+#define OLDBSDPART 0xA5 /* 386/Net/FreeBSD partition identification */
+#define BOOTABLE 0x80 /* value of boot_ind, means bootable partition */
.text
.globl start
@@ -321,9 +321,9 @@ done:
/* Conventional GDT indexes. */
-BOOT_CS_INDEX = 3
-BOOT_CS16_INDEX = 5
-BOOT_DS_INDEX = 4
+#define BOOT_CS_INDEX 3
+#define BOOT_CS16_INDEX 5
+#define BOOT_DS_INDEX 4
ENTRY(boot2)
data32