summaryrefslogtreecommitdiffstats
path: root/sys/boot/common/bootstrap.h
diff options
context:
space:
mode:
authordfr <dfr@FreeBSD.org>1998-09-26 10:51:38 +0000
committerdfr <dfr@FreeBSD.org>1998-09-26 10:51:38 +0000
commitad6ddb77671a5780eefdb973075656e601890d74 (patch)
tree7ee815e87abf339583a4b840f14159bc49a21714 /sys/boot/common/bootstrap.h
parent236ad5eb3ca90664e90a383de91faa975d35b8fc (diff)
downloadFreeBSD-src-ad6ddb77671a5780eefdb973075656e601890d74.zip
FreeBSD-src-ad6ddb77671a5780eefdb973075656e601890d74.tar.gz
* Add old UFS compatibility code to alpha/boot1.
* Fix a raft of warnings, printf and otherwise. * Allocate the correct amount in mod_searchmodule to prevent an overflow. * Fix the makefiles so they work outside my home directory (oops).
Diffstat (limited to 'sys/boot/common/bootstrap.h')
-rw-r--r--sys/boot/common/bootstrap.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/boot/common/bootstrap.h b/sys/boot/common/bootstrap.h
index f02b4f4..b53cf97 100644
--- a/sys/boot/common/bootstrap.h
+++ b/sys/boot/common/bootstrap.h
@@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: bootstrap.h,v 1.6 1998/09/19 01:31:28 msmith Exp $
+ * $Id: bootstrap.h,v 1.7 1998/09/20 21:46:19 dfr Exp $
*/
#include <sys/types.h>
@@ -219,6 +219,7 @@ extern vm_offset_t aout_findsym(char *name, struct loaded_module *mp);
__asm(".previous")
#else
#define MAKE_SET(set, sym) \
+ static void const * const __set_##set##_sym_##sym = &sym; \
__asm(".section .set." #set ",\"aw\""); \
__asm(".long " #sym); \
__asm(".previous")
@@ -280,7 +281,7 @@ struct arch_switch
/* Automatically load modules as required by detected hardware */
int (* arch_autoload)();
/* Locate the device for (name), return pointer to tail in (*path) */
- int (*arch_getdev)(void **dev, char *name, char **path);
+ int (*arch_getdev)(void **dev, const char *name, const char **path);
/* Copy from local address space to module address space, similar to bcopy() */
int (*arch_copyin)(void *src, vm_offset_t dest, size_t len);
/* Copy to local address space from module address space, similar to bcopy() */
OpenPOWER on IntegriCloud