summaryrefslogtreecommitdiffstats
path: root/sys/boot/i386/btx
diff options
context:
space:
mode:
authormsmith <msmith@FreeBSD.org>1998-09-17 23:52:16 +0000
committermsmith <msmith@FreeBSD.org>1998-09-17 23:52:16 +0000
commitf0b5ddae6f18f4e9b5ad66d339e2f6b10f5003fa (patch)
tree7fadd070d2d84c282103a99a4ea34ee576dfe81c /sys/boot/i386/btx
parent00163848c15519499c016ae12ed2a2a3aaf24a83 (diff)
downloadFreeBSD-src-f0b5ddae6f18f4e9b5ad66d339e2f6b10f5003fa.zip
FreeBSD-src-f0b5ddae6f18f4e9b5ad66d339e2f6b10f5003fa.tar.gz
Initial integration of the i386 bootloader and BTX.
- Discard large amounts of BIOS-related code in favour of the more compact BTX vm86 interface. - Build the loader module as ELF, although the resulting object is a.out, make gensetdefs 32/64-bit sensitive and use a single copy of it. - Throw away installboot, as it's no longer required. - Use direct bcopy operations in the i386_copy module, as BTX maps the first 16M of memory. Check operations against the detected size of actual memory.
Diffstat (limited to 'sys/boot/i386/btx')
-rw-r--r--sys/boot/i386/btx/Makefile4
-rw-r--r--sys/boot/i386/btx/btx/Makefile4
-rw-r--r--sys/boot/i386/btx/btxldr/Makefile5
-rw-r--r--sys/boot/i386/btx/lib/btxv86.h16
4 files changed, 21 insertions, 8 deletions
diff --git a/sys/boot/i386/btx/Makefile b/sys/boot/i386/btx/Makefile
index 2da29d0..e1bea3b 100644
--- a/sys/boot/i386/btx/Makefile
+++ b/sys/boot/i386/btx/Makefile
@@ -1,5 +1,5 @@
-# $Id: Makefile,v 1.2 1998/09/12 06:30:10 rnordier Exp $
+# $Id:$
-SUBDIR= btx btxldr lib
+SUBDIR= btx btxldr lib # client ldrtst
.include <bsd.subdir.mk>
diff --git a/sys/boot/i386/btx/btx/Makefile b/sys/boot/i386/btx/btx/Makefile
index 9897217..ad2c438 100644
--- a/sys/boot/i386/btx/btx/Makefile
+++ b/sys/boot/i386/btx/btx/Makefile
@@ -1,4 +1,4 @@
-# $Id: Makefile,v 1.1.1.1 1998/09/12 04:29:23 rnordier Exp $
+# $Id: Makefile,v 1.2 1998/09/14 18:27:05 msmith Exp $
M4?= m4
@@ -23,4 +23,6 @@ clean:
depend:
+cleandepend:
+
install:
diff --git a/sys/boot/i386/btx/btxldr/Makefile b/sys/boot/i386/btx/btxldr/Makefile
index c7fcecf..fdb623a 100644
--- a/sys/boot/i386/btx/btxldr/Makefile
+++ b/sys/boot/i386/btx/btxldr/Makefile
@@ -1,4 +1,4 @@
-# $Id: Makefile,v 1.1 1998/09/12 06:30:26 rnordier Exp $
+# $Id: Makefile,v 1.2 1998/09/14 18:27:05 msmith Exp $
ORG=0x100000
@@ -21,5 +21,6 @@ clean:
depend:
-install:
+cleandepend:
+install:
diff --git a/sys/boot/i386/btx/lib/btxv86.h b/sys/boot/i386/btx/lib/btxv86.h
index 70c2187..d01be4f 100644
--- a/sys/boot/i386/btx/lib/btxv86.h
+++ b/sys/boot/i386/btx/lib/btxv86.h
@@ -14,7 +14,7 @@
*/
/*
- * $Id:$
+ * $Id: btxv86.h,v 1.1 1998/09/14 10:37:00 rnordier Exp $
*/
#ifndef _BTXV86_H_
@@ -44,10 +44,20 @@ struct __v86 {
};
extern struct __v86 __v86; /* V86 interface structure */
+void __v86int(void);
+
+#define v86 __v86
+#define v86int __v86int
+
+extern u_int32_t __base;
+extern u_int32_t __args;
+
+#define PTOV(pa) (caddr_t)((pa) - __base)
+#define VTOP(va) (vm_offset_t)((va) + __base)
+#define VTOPSEG(va) (u_int16_t)(VTOP(va) >> 4)
+#define VTOPOFF(va) (u_int16_t)(VTOP(va) & 0xf)
void __exit(int);
void __exec(caddr_t, ...);
-void __v86int(void);
-
#endif /* !_BTXV86_H_ */
OpenPOWER on IntegriCloud