diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-01-31 05:03:23 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-01-31 05:03:23 +0000 |
commit | 93d044bac66e1a946f00b1fd8e58ac67c54e087c (patch) | |
tree | 9d89488eab2f895a0d2809b6972081a7d7f42dec | |
parent | 0fa412afd4d1fba3e90c41b5b336205be83ae6d0 (diff) |
sync with netbsd
-rw-r--r-- | sys/arch/atari/stand/tostools/aptck/disklbl.c | 6 | ||||
-rw-r--r-- | sys/arch/atari/stand/tostools/libtos/bsdstart.s | 26 | ||||
-rw-r--r-- | sys/arch/atari/stand/tostools/libtos/kparamb.h | 5 |
3 files changed, 16 insertions, 21 deletions
diff --git a/sys/arch/atari/stand/tostools/aptck/disklbl.c b/sys/arch/atari/stand/tostools/aptck/disklbl.c index ec88579d258..869edb52513 100644 --- a/sys/arch/atari/stand/tostools/aptck/disklbl.c +++ b/sys/arch/atari/stand/tostools/aptck/disklbl.c @@ -1,4 +1,4 @@ -/* $NetBSD: disklbl.c,v 1.1 1996/01/16 15:15:48 leo Exp $ */ +/* $NetBSD: disklbl.c,v 1.2 1996/01/20 13:54:46 leo Exp $ */ /* * Copyright (c) 1995 Waldi Ravens. @@ -93,12 +93,12 @@ bsd_label(dd, offset) u_int nsec; int rv; - nsec = (BBSIZE + (dd->bsize - 1)) / dd->bsize; + nsec = (BBMINSIZE + (dd->bsize - 1)) / dd->bsize; bblk = disk_read(dd, offset, nsec); if (bblk) { u_short *end, *p; - end = (u_short *)&bblk[BBSIZE - sizeof(struct disklabel)]; + end = (u_short *)&bblk[BBMINSIZE - sizeof(struct disklabel)]; rv = 1; for (p = (u_short *)bblk; p < end; ++p) { struct disklabel *dl = (struct disklabel *)p; diff --git a/sys/arch/atari/stand/tostools/libtos/bsdstart.s b/sys/arch/atari/stand/tostools/libtos/bsdstart.s index 39722062c83..4ede2b4177c 100644 --- a/sys/arch/atari/stand/tostools/libtos/bsdstart.s +++ b/sys/arch/atari/stand/tostools/libtos/bsdstart.s @@ -1,4 +1,4 @@ -/* $NetBSD: bsdstart.s,v 1.1.1.1 1996/01/07 21:50:49 leo Exp $ */ +/* $NetBSD: bsdstart.s,v 1.2 1996/01/23 20:34:07 leo Exp $ */ /* * Copyright (c) 1995 L. Weppelman @@ -54,8 +54,8 @@ _bsd_startup: | a1: end of symbols (esym) | All other registers zeroed for possible future requirements. - movl sp@(4), a3 | a3 points to parameter block -#ifndef STANDALONE + movl sp@(4),a3 | a3 points to parameter block +#ifdef TOSTOOLS lea _bsd_startup,sp | make sure we have a good stack *** #endif movl a3@,a0 | loaded kernel @@ -70,8 +70,8 @@ _bsd_startup: movl a3@(28),d5 | start of fastram movl a3@(32),a1 | end of symbols subl a5,a5 | target, load to 0 - btst #4, d2 | Is this an 68040? - beq not040 + btst #4,d2 | Is this an 68040? + beqs 0f | Turn off 68040 MMU .word 0x4e7b,0xd003 | movec a5,tc @@ -81,22 +81,20 @@ _bsd_startup: .word 0x4e7b,0xd005 | movec a5,itt1 .word 0x4e7b,0xd006 | movec a5,dtt0 .word 0x4e7b,0xd007 | movec a5,dtt1 - bra nott + bras 1f -not040: - lea pc@(zero),a3 +0: lea pc@(zero),a3 pmove a3@,tc | Turn off MMU pmove a3@(-4),crp | crp = nullrp pmove a3@(-4),srp | srp = nullrp + btst #3,d2 | Is this an 68030? + beqs 1f | Turn off 68030 TT registers - btst #3, d2 | Is this an 68030? - jeqs nott .word 0xf013,0x0800 | pmove a3@,tt0 .word 0xf013,0x0c00 | pmove a3@,tt1 -nott: - movq #0,d6 | would have known contents) +1: movq #0,d6 | would have known contents movl d6,d7 movl d6,a2 movl d6,a3 @@ -105,13 +103,9 @@ nott: movl d6,a6 rts | enter kernel at address on stack *** - | A do-nothing MMU root pointer (includes the following long as well) | Note that the above code makes assumptions about the order of the following | items. nullrp: .long 0x80000202 zero: .long 0 -#ifndef STANDALONE -svsp: .long 0 -#endif diff --git a/sys/arch/atari/stand/tostools/libtos/kparamb.h b/sys/arch/atari/stand/tostools/libtos/kparamb.h index 2c32467430a..8c7f0d514b3 100644 --- a/sys/arch/atari/stand/tostools/libtos/kparamb.h +++ b/sys/arch/atari/stand/tostools/libtos/kparamb.h @@ -1,4 +1,4 @@ -/* $NetBSD: kparamb.h,v 1.1.1.1 1996/01/07 21:50:49 leo Exp $ */ +/* $NetBSD: kparamb.h,v 1.2 1996/01/19 13:54:12 leo Exp $ */ /* * Copyright (c) 1995 L. Weppelman @@ -60,7 +60,8 @@ struct kparamb { #define ATARI_CLKBROKEN (1<<16) /* GEMDOS has faulty year base */ -#define ATARI_ANYCPU (0x1f) +#define ATARI_ANYCPU (ATARI_68000|ATARI_68010|ATARI_68020|ATARI_68030 \ + |ATARI_68040) /* * Definitions for boothowto |