Commit Graph

41647 Commits

Author SHA1 Message Date
dsl
37875b24f4 Need to install byte_swap.h and bswap.h needs to include sh3/byte_swap.h. 2006-02-01 20:56:18 +00:00
martin
058c0e1d60 Do not assume the bootstrap CPU has UPA id 0 - on some machines it hasn't.
Explicitly route all interrupts to the current cpu for now, we'll revisit
this when SMP is working.
Problem spotted and analyzed by Stephan Meisinger, fix inspired by FreeBSD.
2006-02-01 20:21:38 +00:00
bouyer
86110231a4 Check the destination ethernet address when not in promiscous mode.
Fix problem where packets would be duplicated, possibly looping, when
a domU is doing IP routing.
Problem reported and fix tested by Mike M. Volokhov on port-xen

While there, add some __predict_false/true in conditionnals where
appropriate, remove a always-true test, and fix handling of
mbuf shortage.
2006-02-01 19:12:02 +00:00
nakayama
2f6d85f32d Fix the new ofwboot boot problem with kernels where .text segment is smaller
than 4MB.

Unless this fix, boot failed with the message as below.

| panic: pmap_kextract: Address 0x1400000 is not from kernel space.
| Data segment is too small?
2006-01-31 20:18:40 +00:00
xtraeme
15a891cdcb GENERIC: add ral(4) at uhub.
GENERIC_LAPTOP: add ral(4) at cardbus/pci/uhub.
XEN0: add ral(4) at pci/uhub.
2006-01-31 16:42:09 +00:00
xtraeme
da63ffb9a6 Add ral(4) at pci/uhub and atu(4) at uhub. 2006-01-31 16:39:47 +00:00
xtraeme
1d4757bcd5 Add ral(4) at cardbus/pci/uhub and atu(4) at uhub. 2006-01-31 16:38:58 +00:00
is
99ff421490 Implement dealloc() - and implement alloc() in a way that it matches it. 2006-01-31 14:58:28 +00:00
gdt
c3a7ca1d6d Change number of vnd to 32 from 4, since many users of XEN0 will need
more.  (One needs to MAKEDEV them, but that can easily be done on a
running system.)
2006-01-31 13:52:16 +00:00
kochi
0cdeab4c58 remove ACPI_DISABLE_ON_POWEROFF option, which was there just for
compatibility of our old driver behavior, which is not necessary.
2006-01-31 09:30:06 +00:00
dsl
28cb02c94f Make the sh3 bswap headers look like all the other ports 2006-01-31 07:58:56 +00:00
dsl
498e318d85 This file only needs to #include sys/bswap.h 2006-01-31 07:51:41 +00:00
dsl
67d47e0290 Change sys/arch/xxx/include/bswap.h to #include machine/byte_swap.h then
sys/bswap.h in order to pick up the MD inline routines and the constant
folding definitions in the right order.
Code can include either sys/bswap.h or machine/bswap.h with the same effect.
2006-01-31 07:49:18 +00:00
gdamore
067008df2a paddr_t should be 64-bits wide to accomodate full R4K 36-bit phys address.
(Alchemy needs it for various system peripherials located above 4GB.)
2006-01-30 23:57:51 +00:00
dsl
c88ae1f9ee Move all the stuff that detects bswapxx(constant) into the MI sys/bswap.h
Put the minimum to define the required inline assembler or C into the MD files.
NB: there may be some fallout from this!
2006-01-30 22:46:35 +00:00
dsl
2723c11bd9 Move the definitions of ntohl() and friends into sys/endian.h where they
are defined in terms of bswap32() and bswap16().
This makes the definition be in the same place for all systems regardless
of creed^Wendianness.
2006-01-30 21:52:38 +00:00
junyoung
ed1116428c ANSI & KNF. 2006-01-30 04:25:44 +00:00
dsl
6f0f9f8763 Make almost everything #include <sys/bswap.h> instead of <machine/bswap.h>
The bswap.h and endian.h files are all rather incestuous, but I want to
get the constant folding stuff into one place - sys/bswap.h
2006-01-29 21:42:40 +00:00
augustss
42d1b78d2c Add more cardbus USB controllers. 2006-01-29 11:32:01 +00:00
kochi
9e72fe1e5e adapt for ACPI-CA 20060113 2006-01-29 03:12:22 +00:00
tsutsui
438f912c45 Fix botch on ANSIfy. 2006-01-28 12:00:56 +00:00
uwe
2894b52ffd Add relevant #include's to get prototypes. 2006-01-28 01:23:16 +00:00
gdamore
de4cbc1b05 Fix improper USB clocking (makes USB work on DBAu1550).
Closes PR port-evbmips/32355.
2006-01-27 23:05:16 +00:00
cdi
4c2e4320bd Alter sparc64 bootstrap, catch up to ofwboot v1.9:
- Accept bootinfo structure passed down from ofwboot v1.9
 - Drop kernel re-mapping code
 - Use permanent 4MB mappings provided by the loader instead
 - Change kernel entry address to point directly at the code instead of pointing
   at the trap table's first slot. This allows the bootloader to detect
   those kernels which are aware of the new boot scheme
 - Due to the changes in kernel mapping code, alter secondary CPU bootstrap
   code to use trampoline just like FreeBSD does (some FreeBSD code is used
   here as well)
2006-01-27 18:37:49 +00:00
cdi
97aa1417ff Alter sparc64 bootstrap:
- Map kernel with permanent 4MB pages to ease kernel's life
 - Pass mappings down to the kernel as part of bootinfo structure
 - Try to detect whether kernel is aware of the new boot scheme or not and
   in the former case map the kernel using OpenFirmware and do not pass
   bootinfo structure
 - Provide -C switch to force compatibility mode if autodetection fails
 - While on this, fix PR #25763: If load of default kernel fails, try one by
   one those specified in compiled-in list

Much inspired by the bootloader of FreeBSD, with some imported code from there.
2006-01-27 18:31:11 +00:00
he
a9950f604e Track latest changes elsewhere: free() is now dealloc(), and alloc/dealloc
size argument is now a size_t.
2006-01-27 07:33:47 +00:00
uwe
991ac5aec7 Call freeall() from chain() to match the code for other ofw platforms.
freeall() is a no-op.
2006-01-27 04:53:22 +00:00
uwe
ee90a05a3e Move #ifdef __notyet__ inside freeall() to match sparc and ofppc. 2006-01-27 04:51:47 +00:00
uwe
00323232f7 Sync clean up changes with other copies of ofwboot/alloc.c.
Expand copyright/license by Jason R. Thorpe as in others too.
2006-01-27 04:40:50 +00:00
uwe
cfaf325346 Constify kernel names. 2006-01-27 04:34:38 +00:00
uwe
8499e252a7 Use the same code to create machine, sparc and sparc64 symlinks that
../Makefile.buildboot uses.
2006-01-27 04:29:02 +00:00
uwe
257b602df3 Sync with macppc version. Cosmetic changes mostly. 2006-01-27 04:18:39 +00:00
uwe
3182891154 Tell gcc that startup and stack are used. 2006-01-27 04:11:41 +00:00
uwe
f77271b258 Get rid of unused variables. 2006-01-27 04:01:04 +00:00
uwe
0ccdbf50cf Include relevant libsa headers to make WARNS=4 happy. 2006-01-27 03:58:27 +00:00
uwe
31affa1b85 Return 0 from net_close. 2006-01-27 03:48:15 +00:00
uwe
6c00e44048 Mostly make WARNS=4 happy.
Same object code generated, except for return 0 in devclose.
2006-01-27 03:43:54 +00:00
uwe
bcb1033b34 Make WARNS=4 happy. 2006-01-27 03:11:33 +00:00
uwe
f75f446e52 More constification. 2006-01-27 03:07:31 +00:00
uwe
d9fda226fc Tell gcc that startup and stack are used.
In startup remove declarations of unused symbols.
This file now compiles with WARNS=4.
2006-01-27 02:58:50 +00:00
uwe
f62a1602ab Make -Wcast-qual happy. 2006-01-27 02:54:15 +00:00
uwe
967fd50006 Pull cleanup fixes from sys/arch/shark/stand/ofwboot/alloc.c.
These files are now almost identical.
2006-01-27 02:39:07 +00:00
uwe
e12e03530c dealloc is not "only for consistency check", so remove that comment. 2006-01-27 02:26:16 +00:00
uwe
e8574708b0 WARNS=4 2006-01-27 01:57:29 +00:00
uwe
953e50f4f1 Fix logic botch/typo in prom2boot. 2006-01-27 01:55:34 +00:00
uwe
0055f82067 Pacify gcc -Wuninitialized.
Use NULL instread of (struct fl *)0 - especically as this file doesn't
define struct fl.

XXX: there are more references in the comments to the struct fl
inherited from libsa/alloc.c.
2006-01-27 01:03:10 +00:00
uwe
feedf5e952 Add -ffreestanding to CFLAGS directly. 2006-01-26 23:26:20 +00:00
he
b6517c99d5 Add alloc.c to resolove dealloc() (now used from loadfile_elf32).
Compile with -D_STANDALONE and -ffresstanding so that alloc.c from
libsa builds.
2006-01-26 22:39:08 +00:00
he
d65b8691d7 Follow up the rename of in_cksum.c to ip_cksum.c. 2006-01-26 22:26:52 +00:00
he
54701b2f77 Follow up the renaming of in_cksum.c to ip_cksum.c. 2006-01-26 22:16:08 +00:00