itojun
463d764d56
write/readdisklabel are not consistent in MBR-partitioned case;
...
forbid writes for now (real fix should follow).
2002-06-18 17:25:21 +00:00
wiz
a266aad8d4
Fix typo in comment.
2002-06-18 12:35:09 +00:00
itojun
524e044ee5
apm emulation, from openbsd
2002-06-18 05:22:50 +00:00
itojun
ddd8d90dc2
KNF (whitespace)
2002-06-18 04:35:02 +00:00
itojun
b00d5fb87a
extern decl for adbHardware
2002-06-18 04:33:36 +00:00
itojun
0c74b798cb
make macppc install floppy IPv6 ready
...
(we have two floppies anyways, and there's plenty of space in 2nd floppy)
2002-06-18 02:02:20 +00:00
itojun
73941c5096
avoid hardcoding MBR_MAGICOFF and MBR_MAGIC.
2002-06-18 00:37:25 +00:00
itojun
980d7c811b
LABELSECTOR is redefined to be 0 on macppc, so it is not usable for MBR
...
disk label offset. use hardcoded "1" for now, i guess we need a new #define
in sys/disklabel_mbr.h. fixes ofwboot to boot kernel off from MBR-formatted
disk.
2002-06-17 23:59:01 +00:00
christos
3b50728cf4
MD systrace gluons.
2002-06-17 16:32:57 +00:00
itojun
9e1c373ba9
make it possible to handle/mount FDISK-partitioned disk.
...
extended FDISK partitions are not supported yet.
openbsd code was used as reference.
2002-06-17 15:07:06 +00:00
lukem
fde6ae6f04
Enable "pseudo-device clockctl" in all kernels, except
...
installation related kernels (INSTALL* and RAMDISK*).
This enables rc.conf(5) $ntpd_chroot to be used "out of the box"
2002-06-17 05:14:02 +00:00
itojun
43397e000b
whitespace
2002-06-14 22:43:38 +00:00
itojun
a7ec566073
#define CAPS_IS_CONTROL will make caps key a control key (with weird
...
LCD indicator). From: "Nathan J. Williams" <nathanw@wasabisystems.com>
(#define name taken from arch/i386/isa/pccons.c)
2002-06-14 22:43:05 +00:00
briggs
8f360b5c1e
Disable awacs because on some systems--e.g., a 350MHz G4 GigE--it can
...
generate interrupt storms which render the machine essentially unusable.
2002-06-07 20:27:14 +00:00
augustss
5d1d917cb8
Make it possible not to have akbd.
2002-06-05 06:33:18 +00:00
drochner
d2b9876081
move initialization of the "struct pglist" returned by uvm_pglistalloc()
...
from the calling code into uvm_pglistalloc() itself for consistency
and easier error handling
2002-06-02 14:44:35 +00:00
haya
de6fbd495c
Bugfix: add character device #62 in chrtoblktbl[].
2002-05-28 10:01:23 +00:00
lukem
633e8d9515
minor cosmetic tweaks:
...
- put \r\n before OF_open message
- use '0' + i % 10 instead of 'A' + i to print the read block number
2002-05-18 04:24:22 +00:00
lukem
4fa13b2be7
nuke MD installboot, now that it doesn't understand the macppc
...
bootblocks anymore and /usr/sbin/installboot does
2002-05-18 04:06:12 +00:00
lukem
7f3c3f9b76
Fixes from Bill Studenmund and Allen Briggs:
...
- setup a 32KB (+32byte) stack, instead of 4KB stack
- cache flush: use _start instead of 0x4000, and flush 2k instead of 1k
Features (by me):
- implement:
OF_write() (and grab "stdout" from "/chosen")
putstrn(s,n) using OF_write(); write string s of n bytes long
putstr(s); write fixed-sized string s
putc(c); write char c
- add some useful messages which output the status of loading the
stage 2 bootstrap (which is usually ofwboot)
This code now works on Bill's Beige G3!
2002-05-17 18:45:55 +00:00
wrstuden
1ada35e0f6
Adjust how we set up our stack. According to the ABI, we store the
...
return pc address at (r1). So don't initialize r1 to be outside our
stack area. Scooted it in 16 bytes to help alignment.
2002-05-16 18:02:47 +00:00
thorpej
204183c0fa
* Add "pcitag_t *pba_bridgetag" to pci_attach_args. This is set to
...
NULL for root PCI busses. For busses behind a bridge, it points to
a persistent copy of the bridge's pcitag_t. This can be very useful
for machine-dependent PCI bus enumeration code.
* Implement a machine-dependent pci_enumerate_bus() for sparc64 which
uses OFW device nodes to enumerate the bus. When a PCI bus that is
behind a bridge is attached, pci_attach_hook() allocates a new PCI
chipset tag for the new bus and sets it's "curnode" to the OFW node
of the bridge. This is used as a starting point when enumerating
that bus. Root busses get the OFW node of the host bridge (psycho).
* Garbage-collect "ofpci" and "ofppb" from the sparc64 port.
2002-05-16 01:01:28 +00:00
thorpej
dada8613e1
Let machine-dependent code specify how to enumerate the bus.
...
Currently, everyone uses pci_enumerate_bus_generic().
2002-05-15 19:23:51 +00:00
lukem
ee3c8d5e85
convert to using shared_bbinfo from <sys/bootblock.h>, and install as an
...
"${OBJCOPY} -O binary ..." program (rather than as ELF)
2002-05-15 13:55:38 +00:00
matt
d210f0530b
Eliminate commons.
2002-05-13 06:05:32 +00:00
bjh21
0dd9cb79f4
Add puc at pci and com at puc, since those seem to work under 1.5.2 (and hence
...
have no excuse for not working in -current).
2002-05-11 18:05:12 +00:00
tsutsui
92896ac2a1
Add a null asm statement in adb_read_date_time()
...
to avoid wrong reordering by gcc-2.95.3 with -fgcse.
XXX Should we disable -fgcse everywhere?
2002-05-05 18:36:03 +00:00
tsutsui
87ebd3218c
Backout previous. It is not timing problem, but gcc optimization bug.
2002-05-05 18:29:06 +00:00
tsutsui
8f9d2b8500
Add a delay() in adb_read_date_time() so that my Apus2000 can get
...
correct date in inittodr().
2002-04-29 10:15:29 +00:00
briggs
98ec565a96
Catch up with 1.5 branch... Allow nvram device to be omitted from kernel
...
configuration. Fix noted by Izumi Tsutsui <tsutsui@ceres.dti.ne.jp> and
problme noticed by Louis Guillaume <lguillaume@berklee.edu>.
2002-04-28 17:55:47 +00:00
matt
f53d9a4fa7
Use BAT1 to map the primary I/O segment at 0x80000000 so we don't have to
...
bat-flip for those accesses.
2002-04-25 19:32:59 +00:00
wiz
8a46d7046a
Replace some more options<TAB> with options<SP><TAB>.
...
Noted by Patrick Welche.
2002-04-25 15:21:59 +00:00
atatat
d1b3852365
Add the INCLUDE_CONFIG_FILE option to all config files. In config
...
files that are generic (ie, GENERIC, GENERICSBC, GENERIC32, ALL, or
ALPHA), it is uncommented.
2002-04-25 15:06:20 +00:00
kleink
3a03930d13
Add a third argument to pmap_bootstrap() which platform-specific
...
initialization can use to specify additional segment registers to be set
up in the kernel pmap.
2002-04-23 12:41:04 +00:00
augustss
7f7ab48604
Rename the audio "bus" attribute audiobus to avoid confusion with audio
...
device.
2002-04-22 09:41:19 +00:00
matt
66c475ca19
Use a common genassym.cf for all the PPC_MPC6XX ports. Add a makeoptions to
...
std.foo to indicate the directory to get genassym.cf from. Add an intrframe
to <powerpc/frame.h> and make trap_subr.S use symbolic offsets into it.
2002-04-18 20:08:05 +00:00
mycroft
558b4fb278
Switch from de to tlp by default.
2002-04-17 02:22:41 +00:00
thorpej
eedd94475c
* Move the mii_bitbang attribute into dev/mii/files.mii
...
* Pull in dev/mii/files.mii from conf/files, rather than playing
the magic "files include order" dance in N machine-dependent
configuration definitions.
2002-04-16 20:50:16 +00:00
tsutsui
df16ac88cd
Use "-Os -mmultiple".
2002-04-13 13:44:48 +00:00
tsutsui
c7a7330ca9
Add "cleanlibdir" target.
2002-04-13 13:35:23 +00:00
tsutsui
c58dce575b
Set USE_LIBSA_MEMCPY and USE_LIBSA_MEMSET to save a few bytes.
2002-04-13 13:31:40 +00:00
gmcgarry
6e066ba77a
Add commented-out USERCONF option. Mainly useful for install media
...
and can be optionally enabled based on miniroot and ramdisk size
requirements.
2002-04-12 08:10:45 +00:00
tsutsui
937863b61e
Add (missing) scsibus* at adw?
2002-04-10 13:41:04 +00:00
tsutsui
2b96151049
Disable BOOT_AOUT.
2002-04-10 13:38:42 +00:00
bouyer
e5727031fb
Implement mstohz() as discussed on tech-kern, and use it in SCSI drivers
...
to convert xs->timeout to callout() parameter.
2002-04-05 18:27:45 +00:00
lukem
d213d804f7
Rename MEMORY_DISK_SIZE (formerly MINIROOTSIZE) to MEMORY_DISK_ROOT_SIZE,
...
which was suggested by Izumi Tsutsui <tsutsui@ceres.dti.ne.jp> as
being more consistent with what it's controlling...
2002-04-02 05:30:34 +00:00
tsutsui
8d79e86713
Add -b option to write the second-stage bootloader contiguously. (for ustarfs)
2002-03-30 07:19:30 +00:00
tsutsui
9e9f7b6c60
Bump version for ustarfs support.
2002-03-30 07:17:48 +00:00
tsutsui
4a12192a62
Enable SUPPORT_USTARFS and HAVE_CHANGEDISK_HOOK in CPPFLAGS.
2002-03-30 07:17:09 +00:00
tsutsui
5cb20a9896
Add changedisk_hook() for ustarfs. (from tsubai)
2002-03-30 07:15:51 +00:00