Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F157206527
D9780.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D9780.diff
View Options
Index: head/sys/boot/i386/boot2/Makefile
===================================================================
--- head/sys/boot/i386/boot2/Makefile
+++ head/sys/boot/i386/boot2/Makefile
@@ -25,7 +25,6 @@
CFLAGS= -fomit-frame-pointer \
-mrtd \
-mregparm=3 \
- -DUSE_XREAD \
-D${BOOT2_UFS} \
-DFLAGS=${BOOT_BOOT1_FLAGS} \
-DSIOPRT=${BOOT_COMCONSOLE_PORT} \
Index: head/sys/boot/i386/common/drv.c
===================================================================
--- head/sys/boot/i386/common/drv.c
+++ head/sys/boot/i386/common/drv.c
@@ -25,9 +25,6 @@
#include "util.h"
#include "drv.h"
#include "edd.h"
-#ifdef USE_XREAD
-#include "xreadorg.h"
-#endif
static struct edd_params params;
@@ -50,9 +47,7 @@
return (params.sectors);
}
-#ifndef USE_XREAD
static struct edd_packet packet;
-#endif
int
drvread(struct dsk *dskp, void *buf, daddr_t lba, unsigned nblk)
@@ -61,7 +56,6 @@
if (!OPT_CHECK(RBX_QUIET))
printf("%c\b", c = c << 8 | c >> 24);
-#ifndef USE_XREAD
packet.len = sizeof(struct edd_packet);
packet.count = nblk;
packet.off = VTOPOFF(buf);
@@ -73,15 +67,6 @@
v86.edx = dskp->drive;
v86.ds = VTOPSEG(&packet);
v86.esi = VTOPOFF(&packet);
-#else /* USE_XREAD */
- v86.ctl = V86_ADDR | V86_CALLF | V86_FLAGS;
- v86.addr = XREADORG; /* call to xread in boot1 */
- v86.es = VTOPSEG(buf);
- v86.eax = lba;
- v86.ebx = VTOPOFF(buf);
- v86.ecx = lba >> 32;
- v86.edx = nblk << 8 | dskp->drive;
-#endif /* USE_XREAD */
v86int();
if (V86_CY(v86.efl)) {
printf("%s: error %u lba %u\n",
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, May 20, 8:13 AM (10 h, 23 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33340906
Default Alt Text
D9780.diff (1 KB)
Attached To
Mode
D9780: Remove unused flag in boot2/Makefile.
Attached
Detach File
Event Timeline
Log In to Comment