diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2010-08-11 13:12:00 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2010-08-11 13:12:00 +0000 |
commit | 00393e841d0a9c3d0b44697d017702afdd82a095 (patch) | |
tree | b11c5cee1e5ff02a1dabb7e2476fe52aff3900d0 | |
parent | fe7d2e88535d298db38bb322f3d19d2459335553 (diff) |
De-inline CHS_rw. Somehow the merger of two monster __asm __inline statements
into one function is generating broken code; it might be because of missing
register clobbers.
This is a workaround... it'd be nice to know the real problem
work done with mlarkin and pirofti
-rw-r--r-- | sys/arch/amd64/stand/libsa/biosdev.c | 6 | ||||
-rw-r--r-- | sys/arch/i386/stand/libsa/biosdev.c | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/sys/arch/amd64/stand/libsa/biosdev.c b/sys/arch/amd64/stand/libsa/biosdev.c index ef679b5193f..e4185114881 100644 --- a/sys/arch/amd64/stand/libsa/biosdev.c +++ b/sys/arch/amd64/stand/libsa/biosdev.c @@ -1,4 +1,4 @@ -/* $OpenBSD: biosdev.c,v 1.8 2008/08/12 22:48:32 deraadt Exp $ */ +/* $OpenBSD: biosdev.c,v 1.9 2010/08/11 13:11:59 deraadt Exp $ */ /* * Copyright (c) 1996 Michael Shalayeff @@ -42,7 +42,7 @@ static const char *biosdisk_err(u_int); static int biosdisk_errno(u_int); -static int CHS_rw (int, int, int, int, int, int, void *); +int CHS_rw (int, int, int, int, int, int, void *); static int EDD_rw (int, int, u_int64_t, u_int32_t, void *); static daddr_t findopenbsd(bios_diskinfo_t *, daddr_t, const char **, int *); @@ -182,7 +182,7 @@ bios_getdiskinfo(int dev, bios_diskinfo_t *pdi) /* * Read/Write a block from given place using the BIOS. */ -static __inline int +int CHS_rw(int rw, int dev, int cyl, int head, int sect, int nsect, void *buf) { int rv; diff --git a/sys/arch/i386/stand/libsa/biosdev.c b/sys/arch/i386/stand/libsa/biosdev.c index 01a0ca7e72a..9f5fa49637d 100644 --- a/sys/arch/i386/stand/libsa/biosdev.c +++ b/sys/arch/i386/stand/libsa/biosdev.c @@ -1,4 +1,4 @@ -/* $OpenBSD: biosdev.c,v 1.76 2008/08/12 22:48:31 deraadt Exp $ */ +/* $OpenBSD: biosdev.c,v 1.77 2010/08/11 13:11:57 deraadt Exp $ */ /* * Copyright (c) 1996 Michael Shalayeff @@ -43,7 +43,7 @@ static const char *biosdisk_err(u_int); static int biosdisk_errno(u_int); -static int CHS_rw (int, int, int, int, int, int, void *); +int CHS_rw (int, int, int, int, int, int, void *); static int EDD_rw (int, int, u_int64_t, u_int32_t, void *); static daddr_t findopenbsd(bios_diskinfo_t *, daddr_t, const char **, int *); @@ -185,7 +185,7 @@ bios_getdiskinfo(int dev, bios_diskinfo_t *pdi) /* * Read/Write a block from given place using the BIOS. */ -static __inline int +int CHS_rw(int rw, int dev, int cyl, int head, int sect, int nsect, void *buf) { int rv; |