Commit Graph

41554 Commits

Author SHA1 Message Date
uwe
7bff50c8fd LINTSTUBs. 2006-01-22 05:14:02 +00:00
uwe
131f43967d pfckbd_input: make edge and mask unsigned ints to avoid lint warning
about obscure semantics change in ANSI C.  Saves one extu.w too.
Move edge assignment out of if conditional expression.
2006-01-21 23:16:57 +00:00
uwe
4c693ad431 Use C99 __func__ instead of gcc __FUNCTION__ to make lint happy. 2006-01-21 22:55:34 +00:00
uwe
722d3e38c8 CONSTCOND. 2006-01-21 22:10:59 +00:00
bouyer
891dda192c Update pciide at pnpbios to work with the last changes to wdc(4), especially
the deferral of drive probe.
Patch tested by James Haggerty, should fix kern/23192.
2006-01-21 18:37:40 +00:00
dsl
8d95ea8400 Remove COMPAT_10..COMPAT_16, KERNFS, attimer, pcppi and 'le at pci'
Re-instate st
KERNFS was there for dmesg! but the program is smaller
IIRC attimer and pcppi are only used for beeps
The pcn driver does a better job than le.
2006-01-21 10:38:04 +00:00
fvdl
4cc8486856 GDT data and code entries for 32bit mode should use VM_MAXUSER_ADDRESS32 2006-01-21 09:54:53 +00:00
uwe
530e77af35 Use foo &= ~(type)mask; instead of foo &= (type)~mask; to make lint happy.
While here, convert to uintN_t.
2006-01-21 04:57:07 +00:00
uwe
ffc34314e2 Add lint comments. Hide computed goto in cpu_reset() from lint.
Remove infinite loop from cpu_reset(), gcc accepts computed goto as
the sign that function never returns.
2006-01-21 04:26:56 +00:00
uwe
a1695713e9 Declare cpu_reset as __attribute__((__noreturn__)). 2006-01-21 04:24:12 +00:00
uwe
2f21a084a1 ANSI'fy. 2006-01-21 04:12:22 +00:00
uwe
d0928cda19 Lintable no-ops for LOCKDEBUG macros. 2006-01-21 03:57:48 +00:00
uwe
e4f6d0eca3 Hide RUN_P2 and RUN_P1 from lint.
Drop CONSTCOND as lint doesn't see that code now.
While here, tweak them a bit to use less casts.
2006-01-21 03:52:42 +00:00
uwe
c4888894b9 Use uint32_t. 2006-01-21 03:42:29 +00:00
uwe
92dfa6358c Tweak the way we compute displacement for bra/bsr.
Makes lint happy, makes code shorter too.
2006-01-21 02:09:06 +00:00
uwe
a5480590a9 "if (foo) return;" in one line is bad style. 2006-01-21 01:51:47 +00:00
uwe
f57593cc31 Use space in "static\tvoid". 2006-01-21 01:48:36 +00:00
uwe
696dfdc2f6 Use uint16_t instead of u_short for instructions.
There's no reason for buf argument to be unsigned char.
0x7f is not a printing character.
2006-01-21 01:45:34 +00:00
uwe
6167325eb6 Add NOTREACHED after calls to panic(). 2006-01-21 00:56:05 +00:00
uwe
de6525a736 There's no need to duplicate cpu type ifdef dance here. cputypes.h
already defines CPU_IS_SH[34] as constants for kernels that support
only single cpu type.
2006-01-21 00:46:36 +00:00
uwe
88d4d97511 Add CONSTCOND to make lint happy. 2006-01-21 00:40:36 +00:00
christos
3ffa241fcd Add a STRONG_ALIAS macro 2006-01-20 22:02:40 +00:00
bouyer
87d63b6c1c Remove files not needed in the kernel. 2006-01-20 18:17:59 +00:00
xtraeme
b768917ecd ktrace-lwp fallout. ok'ed by skrll. 2006-01-20 15:41:28 +00:00
uwe
08c90217fd Use NULL, not 0 for null pointer.
Fix #else/#endif trailing comment.
Use explicit "continue" for the body of the infinite loop.
2006-01-20 04:30:03 +00:00
uwe
9e88e2f24a Use uint32_t. Declare jump and boot functions noreturn. Move scratch
variable to outputs of the asm statement that tweaks sr, so that gcc
doesn't insist on it being initialized.  Move boot function template
closer to instantiation.  Misc prettification.
2006-01-20 03:55:55 +00:00
cube
a7a7ef8a54 ktrace-lwp fallout for SYSCALL_DEBUG. From Vasily Levchenko. 2006-01-20 00:10:33 +00:00
xtraeme
10aed9d2fa * Show Advanced Power Management extended features from CPUID.
* Split out the code that checks for CPUID 0x80000007 (powernow)
  into another function.
* Cleaned up the code a bit.

More to come...

cpu0: AMD PowerNow! Technology.
cpu0: AMD features: TS FID VID
cpu0: available frequencies (Mhz): 798 864 931 997 1064 1197
cpu0: current frequency (Mhz): 1197

The frequency values are not correct (yet).

Thanks to Rhialto for testing and provide feedback.
2006-01-19 23:28:12 +00:00
he
061762c234 Wrap the definition of cg14_set_rcons_luts() in an #ifdef RASTERCONSOLE,
to allow the INSTALL kernel to build, as it's unused there.
2006-01-19 15:09:57 +00:00
yamt
a76cc9d9c4 - mmrw, mmmmap: reject accesses to unknown pa if securelevel > 0.
- mmmmap: remove physmem check.  it was wrong and superseded by the above.
- mmmmap: remove suser() check.  there's no point to limit the operation
  to root here, given that the almost same thing can be done by
  normal read and write.
2006-01-19 13:34:11 +00:00
he
1f8841dea3 Make this compile again by ensuring that we don't cast away the volatile
qualifier.
2006-01-19 09:32:37 +00:00
uwe
f60eb26259 Prune CPPDEF_LIST from unnecessary defines. 2006-01-18 01:08:57 +00:00
uwe
bcd9f83758 We no longer use printf from libsa, so we don't need to provide putchar.
Don't include <stand.h> that we thus no longer need.
Include <winbase.h> instead on <windows.h> - it's enough for what we use.
2006-01-18 01:06:37 +00:00
uwe
160de00800 Include <malloc.h>. Spell "unsigned int" in full. 2006-01-18 01:05:02 +00:00
uwe
2467db8264 Prune stuff from libsa that we don't need. 2006-01-18 01:04:04 +00:00
uwe
d9f3e59eb8 zlib doesn't care about __daddr_t.
Nothing cares about __signed.
Move common/dist/zlib up in the list of include dirs.
2006-01-18 00:11:27 +00:00
uwe
2565c191eb Remove duplicate CPPDEF_LIST. 2006-01-17 23:39:53 +00:00
chs
3db49f0e25 add fault-protection in sbc_pdma_in() like in all the other PDMA functions.
fixes PR 9679.
2006-01-17 16:41:29 +00:00
christos
d07104a9ce PR/32552: Antonio Bravo: cgfourteen 24-bit support
Original code from der Mouse, posted to the mailing lists by Jakob Menzi.
2006-01-17 04:22:08 +00:00
uwe
589b108660 Nuke libsa and libkern defines from here. 2006-01-17 03:32:10 +00:00
uwe
c498580cc6 Adapt to new zlib. Get rid of proxy zlib.h, we supply proper "-I".
Implement zcalloc/zfree in terms of WinCE functions.
2006-01-17 03:12:29 +00:00
uwe
b674645e95 New zlib doesn't use bzero, so we don't need this hack any more. 2006-01-17 03:09:04 +00:00
uwe
75ad327e11 New zlib is smart enough to not include <errno.h> under WinCE, so this
empty fake one is no longer necessary (old zlib could also do without
one if supplied -DNO_ERRNO_H).
2006-01-17 03:07:19 +00:00
uwe
0d1e222eff Hide plutid_dump() under #ifdef PLATID_TEST. Saves space in the
kernel and avoids printf dependency for hpcboot.
While here, constify its first argument.
2006-01-17 02:50:59 +00:00
uwe
4f6e1f3b52 Adjust to new zlib location. 2006-01-17 02:40:55 +00:00
christos
a39411c0d7 PR/32550: Michael Eriksson: No agp(4) support for i915 integrated graphics 2006-01-16 22:59:36 +00:00
bouyer
bf1a4d2af5 properly use ata_channel->ch_ndrive:
- initialize it properly in the bus front-ends (all 2, exept in wdc_pcmcia.c
  for the "Sandisk CompactFlash Card" where it's set to 1)
- remplace hardcoded '2' by ata_channel->ch_ndrive in MI IDE drivers.

From Christos Zoulas in kern/32501.
2006-01-16 20:30:18 +00:00
he
b1bcd0ffae The new zlib uses HEAP_SIZE, so instead use BOARD_HEAP_SIZE as the
symbol to use here.  Also adapt to the new zlib with the changed name
for the header file.
2006-01-16 19:34:53 +00:00
is
b3e5abb9e1 pmap_is_referenced - copied from pmap_clear_reference, reviewd by ragge@ 2006-01-16 14:45:49 +00:00
he
8b18b188e0 Adapt to use of $S/../common/dist/zlib. 2006-01-16 13:05:11 +00:00