Commit Graph

910 Commits

Author SHA1 Message Date
martti 3b553bac54 Added (commented out) IPFILTER_DEFAULT_BLOCK. 2002-09-20 10:39:48 +00:00
wrstuden 4f7aaad83c Re-add own alloc(). Recent issues with kernels randomly dying on boot
are related to using libsa's alloc(). Problems go away with this alloc().

The problem is that the libsa alloc() assumes we can grab memory off
the end of the program. That assumption doesn't work for us. It's
much better to use the alloc() we were using as it calls OF_claim()
to get memory.
2002-09-20 03:20:24 +00:00
lukem 3ea2e21f82 enable USERCONF by default; it's small and extremely useful to have available. 2002-09-18 02:43:53 +00:00
briggs b3fa829f51 Get rs6000.h from gnu/dist/toolchain/include instead of gnu/dist/include. 2002-09-17 03:55:40 +00:00
dbj c1005e24ba reorganized code slightly that converts a partition map to a disklabel.
No functional change intended by this commit.
2002-09-10 11:31:10 +00:00
dbj 1771e13a7e added defines for new partition types found in the wild:
"Apple_UFS"
  "Apple_Boot"
  "Apple_Loader"
  "Linux"
  "Linux_swap"
removed duplicate define for "Apple_Patches"
2002-09-10 11:28:56 +00:00
gehenna 77a6b82b27 Merge the gehenna-devsw branch into the trunk.
This merge changes the device switch tables from static array to
dynamically generated by config(8).

- All device switches is defined as a constant structure in device drivers.

- The new grammer ``device-major'' is introduced to ``files''.

	device-major <prefix> char <num> [block <num>] [<rules>]

- All device major numbers must be listed up in port dependent majors.<arch>
  by using this grammer.

- Added the new naming convention.
  The name of the device switch must be <prefix>_[bc]devsw for auto-generation
  of device switch tables.

- The backward compatibility of loading block/character device
  switch by LKM framework is broken. This is necessary to convert
  from block/character device major to device name in runtime and vice versa.

- The restriction to assign device major by LKM is completely removed.
  We don't need to reserve LKM entries for dynamic loading of device switch.

- In compile time, device major numbers list is packed into the kernel and
  the LKM framework will refer it to assign device major number dynamically.
2002-09-06 13:18:43 +00:00
jdolecek 7403e3d736 put back NetBSD RCS Id removed in rev 1.6 2002-09-05 19:23:11 +00:00
wrstuden e85eb3093d Enable memory for cards with 64-bit memory mappings in addition to
32-bit memory mappings. Makes Intel GigE card work in my Beige G3.

Patch from thorpej
2002-08-22 22:47:35 +00:00
aymeric c8bc51526f Remove the key repeating feature.
It is asking for trouble and is useless for the X server.
We can add it back later if need be.
2002-08-14 13:02:58 +00:00
aymeric bb022a80b7 add (commented out) option WSDISPLAY_COMPAT_RAWKBD 2002-08-13 15:03:30 +00:00
aymeric 9e10bd8738 akbd's now have a raw mode, and implement the WSKBDIO_SETMODE ioctl.
Adapted from OpenBSD.
2002-08-13 15:00:42 +00:00
manu 5bd5c7bca2 Guard a variable declaration by #if so that it is not declared if it is not
used.
2002-08-13 09:46:21 +00:00
chs c86bd63e8e for ofb_enable_cache, turn on the BAT_M bit as well to prevent
the framebuffer from getting scrambled on MP systems.
2002-08-07 05:46:13 +00:00
briggs 0b956d0b8b Implement pmc(9) -- An interface to hardware performance monitoring
counters.  These counters do not exist on all CPUs, but where they
do exist, can be used for counting events such as dcache misses that
would otherwise be difficult or impossible to instrument by code
inspection or hardware simulation.

pmc(9) is meant to be a general interface.  Initially, the Intel XScale
counters are the only ones supported.
2002-08-07 05:14:47 +00:00
chs d3c3fef89b add code from tsubai to handle the second CPU on openpic machines.
the second CPU on dual G4 boxes works now.
while I'm here, use mfmsr() and mtmsr() instead of inline asms.
2002-08-06 06:26:19 +00:00
chs ef0d8145a7 avoid races in mp_save_{fpu,vec}_proc() where the other CPU
dumps the state out from under us.
2002-08-06 06:16:04 +00:00
chs 301f1ebf31 move more inlines to cpu.h: mftb(), mftbl() and mfpvr().
(the mftb() in pmap.c only wanted the lower 32 bits, so that's now mftbl()).
2002-08-06 06:14:33 +00:00
chs 23ec03fb27 add a config for GENERIC + MP. 2002-07-28 07:40:13 +00:00
chs fccc379b30 restructure the FPU and AltiVEC code so that it works for MP. 2002-07-28 07:07:44 +00:00
chs f1953a9667 terminate the MP idle stack for the boot CPU. 2002-07-28 07:07:00 +00:00
chs b06c12694c clean up secondary CPU startup.
use atomic operators for IPIs.
restructure the FPU and AltiVEC code so that it works for MP.
2002-07-28 07:06:45 +00:00
chs 1fab9d5375 remove a spurious printf. 2002-07-28 07:00:58 +00:00
thorpej 3912e469dd Rename cdev_systrace_init() to cdev_clonemisc_init(), so it can
be properly used by any misc. cloning device.  While here, correct
a comment to indicate that "open" is the only entry point and that
everything else is handled with fileops.
2002-07-19 16:38:14 +00:00
bouyer cd3752a0a3 Wrap debug printf in #ifdef DEBUG/#endif 2002-07-18 13:31:58 +00:00
chs ef1115901f put the OF buffer page in the BSS rather than allocate it at runtime.
from PR 14497.
2002-07-14 20:56:12 +00:00
matt bbab86c27b Enable COMPAT_LINUX 2002-07-12 05:30:24 +00:00
matt 2df1a9cfb4 Add more host-bridges. 2002-07-09 23:51:15 +00:00
matt 4f983e2982 Common OFW code has been moved to powerpc/mpc6xx/ofw_subr.S. Now use it. 2002-07-09 19:21:03 +00:00
hamajima b99ebea79a comment out "options OFB_ENABLE_CACHE" again,
because this makes PowerMac 8500 + Millennium II broken.
OKed by tsubai.
2002-07-09 10:14:18 +00:00
matt 0d4f94281d Change OFB_ENABLE_CACHE to be enabled. 2002-07-07 19:40:05 +00:00
matt 1a8d29efcb Make the gem driver the default now, not the macppc specific gm. 2002-07-07 19:36:47 +00:00
matt 902fd38614 Update OFB_ENABLE_CACHE to search for a empty bat that does not
conflict the USER_SR or one of the kernel SRs.
2002-07-07 18:35:10 +00:00
matt 685778b53b Peform a rototill over the powerpc-based ports.
Move the trap/vector initialization for MPC6xx ports to mpc6xx_machdep.c
Also move softnet, install_extintr, mapiodev, kvtop.  Add common BAT
initialization code.

Add user Altivec support.

Fix calls to OF_call_method in macppc/macppc/machdep.c.

Use ci_fpuproc in cpu_info instead of separate fpuproc.

Add separate syscall.c and defined __HAVE_SYSCALL_INTERN.
2002-07-05 18:45:15 +00:00
abs eb73becae2 Ensure all INSTALL config files consistantly include PIPE_SOCKETPAIR,
MALLOC_NOINLINE, and VNODE_OP_NOINLINE. The exceptions are when they
include another config files that already defines the options, or if
they are for an embedded board, just define a few extra options, and
do not already define PIPE_SOCKETPAIR.
2002-07-05 13:40:10 +00:00
junyoung 3d826105dc alloc_attr -> allocattr
Approved by Matthias Drochner.
2002-07-04 14:37:10 +00:00
matt 76c24da31d Add kttcp device. 2002-06-29 19:04:45 +00:00
itojun 4aac356c0e fwnode* has idhi/idlo locator 2002-06-25 00:32:24 +00:00
itojun 92f9b53eea sync firewire scsi config to the latest reality 2002-06-25 00:29:20 +00:00
nathanw 4ce40595e2 Pass through the PCI configuration ioctls, like vga_pci.c does. 2002-06-24 21:08:37 +00:00
wrstuden 2eb3dc82d8 Fix recent bugs seen on Performa 4400 macppc's by
Makoto Fujiwara <makoto@ki.nu> and Manuel Bouyer <bouyer@netbsd.org>.
Help from Allen Briggs, Jason Thorpe, and Matt Thomas.

We need to call cpu_cache_probe() early in boot (machdep.c).
Add 603 info for completeness, and use NBPG not PAGESIZE, as the
latter relies on uvm being setup (cpu_subr.c).
Let uvm_page_recolor() be called before uvm has been set up; just
note the page coloring value (uvm_page.c).
2002-06-19 17:01:18 +00:00
itojun 4c1feea9d8 correct writedisklabel() on MBR-partitioned disk.
while here, correct labelsector/offset mismatch in writedisklabel,
when readdisklabel() have found the label at nonstandard location
(due to magic number search).  a lot of other ports have the same problem.
2002-06-19 03:10:56 +00:00
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