Commit Graph

29 Commits

Author SHA1 Message Date
xtraeme 4c6e4fcf9b Sync with est.c, est_init does not take any argument now. Just use
curcpu().
2007-03-18 07:28:37 +00:00
xtraeme 5ec1f7a202 Change k8_powernow_init to accept a struct cpu_info * as argument,
so that in the informative messages it prints the correct cpu
and not curcpu().

This fixes the first part of PR kern/35676.
2007-03-18 04:41:03 +00:00
cube 11b4b910d2 Make pn_family static. 2006-10-04 21:47:56 +00:00
cube 818a5cb153 Re-arrange probing to match the new way. I apologise for forgetting about
the LKM.

While there, rename 'rval' as 'pn_family', and make it a global variable.
The k[78]_powernow_destroy() functions have never been called because of
that...
2006-10-04 21:47:29 +00:00
xtraeme ca450bca52 Update powernow module with POWERNOW_K7 and POWERNOW_K8 support.
Works fine on amd64 cpus running in 32-bit mode.

Tested by Joel Carnat.
2006-08-27 10:10:55 +00:00
xtraeme 423aebde2b - Add k7_powernow_destroy() prototype into cpu.h.
- Call k7_powernow_destroy() unloading the module.
2006-08-08 21:04:29 +00:00
xtraeme e7d2347699 * Sync powernow_k7.c driver with OpenBSD, it seems to work much
better finding PST tables.
* Use functions defined in powernow_common.c to detect if the
  CPU can run powernow.
* Update the LKM with current code.
2006-08-06 16:05:07 +00:00
xtraeme 294582997b Fix "hard reboot" problem reported by Rhialto weeks ago on current-users@.
The problem was that pnowk7_init() was called too early in the boot
process, at this point the required calls were not available.

Thanks to Rhialto for testing and cube/christos for comments.
2006-02-03 02:37:57 +00:00
xtraeme d347a5866b Move the code that checks for a powernow capable cpu to pnowk7_init(),
so that the kernel and the lkm can use it without having it in two
files... plus minor fixes (idea from Rhialto).
2006-01-15 04:12:09 +00:00
xtraeme 8173ef37e7 AMD PowerNow LKM contributed by Olaf 'Rhialto' Seibert. 2006-01-11 00:18:28 +00:00
christos 95e1ffb156 merge ktrace-lwp. 2005-12-11 12:16:03 +00:00
perry 477853c351 nuke trailing whitespace 2005-02-26 22:58:54 +00:00
matt 4ff8ae6cfa Enhance the scripts to not use trampolines for symbols which are internal
to the module.
2004-01-16 00:35:48 +00:00
scw 7f80949f0d Use the same trick as powerpc to resolve the 24-bit pc-relative
branch limitation.
2003-11-04 14:50:27 +00:00
jdolecek f7394f424e switch over to DISPATCH(), it calls the 'load' entry point in right
order now
2003-09-06 13:34:56 +00:00
jdolecek f67c969fe0 ANSIfy 2003-09-06 13:20:41 +00:00
matt 275eeea6c9 The __wrap_* symbols need to become local symbols. If you have module
x which is dependent y but they both have __wrap_foo, if the __wrap_foo
is not localized, you will get linker truncation messages.
2003-04-23 18:34:20 +00:00
matt f7418ccd14 Add helper awk scripts for generating trampolines for PowerPC LKMs. 2003-02-19 19:04:27 +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
fredb c26310d581 whitespace cleanup 2002-02-05 15:28:03 +00:00
fredb 31543d3f23 Add an explicit transformation for iwm.s -> iwm.o, patterned after the
kernel's ${NORMAL_S}. In particular, we need the ${CPPFLAGS} from
<bsd.kmod.mk> to support non-self-hosted builds. (Changing iwm.s to iwm.S
would also work.)
2002-02-05 15:26:52 +00:00
lukem f5e6ca8797 add RCSIDs 2001-11-12 23:22:57 +00:00
scottr 1a3484fe3c This should have been committed in the previous round, but was
left behind.  Fixes PR 7310.
1999-04-03 08:28:50 +00:00
scottr 5364339415 If'n you change the name of the .o file, you really ought
to change the entry point, too.
1999-03-31 20:45:06 +00:00
scottr e3efa6ea27 Cleanups from Hauke. 1999-03-27 07:09:30 +00:00
scottr 2822cc5fb0 RCS ID police (missed this earlier) 1999-03-27 05:48:53 +00:00
scottr 7f04a59417 Build in ${MACHINE} if it exists. 1999-03-26 22:31:19 +00:00
scottr fa41088394 Build iwm 1999-03-26 22:27:59 +00:00
scottr 0a9f099457 IWM floppy disk driver module written by Hauke Fath 1999-03-26 22:25:40 +00:00