diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2003-02-15 00:52:29 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2003-02-15 00:52:29 +0000 |
commit | 78afcaca5bd83ff4b4a7e708ca56e27928d2dc1c (patch) | |
tree | 0ac5fd000a213e6f904a30e163b768fdd3e12cc8 /sys/arch/hppa/include | |
parent | d9e1f5a7828cb57f270071042410892e43afe214 (diff) |
The current hppa code would always ask for the root device, when running
a kernel configured with "swap generic". This feature was relied upon
by Theo de Raadt, so that he would have to go downstairs to type "sd0a\n\n"
every time he would want to try a new kernel, effectively forcing his body
to take exercise trim the fat.
No more! This commit adds code to correctly detect the root device, currently
either a network interface or an scsi block device. This is slightly tricky,
as all the information the PDC gives up is the controller device and its
numeric subpath, and we need to match the real device from that...
Tested and found to be working on ie and sd only so far.
This commit is brought to you by the so-called friends of Theo de Raadt.
Diffstat (limited to 'sys/arch/hppa/include')
-rw-r--r-- | sys/arch/hppa/include/types.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/arch/hppa/include/types.h b/sys/arch/hppa/include/types.h index 96563543bb4..6c35e4e76a8 100644 --- a/sys/arch/hppa/include/types.h +++ b/sys/arch/hppa/include/types.h @@ -1,4 +1,4 @@ -/* $OpenBSD: types.h,v 1.7 2002/08/28 23:42:16 mickey Exp $ */ +/* $OpenBSD: types.h,v 1.8 2003/02/15 00:52:28 miod Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -86,4 +86,6 @@ typedef unsigned long uint64_t; typedef int32_t register_t; +#define __HAVE_DEVICE_REGISTER + #endif /* _MACHINE_TYPES_H_ */ |