Commit Graph

177858 Commits

Author SHA1 Message Date
bouyer
e83cf7c074 Fix bus_addr_t/bus_size_t confusion 2009-02-13 22:39:37 +00:00
bouyer
1b21577543 Fix printf format after bus_size_t change 2009-02-13 22:39:10 +00:00
plunky
821f05b0d3 While we remap credentials we should ignore cred == FSCRED as well as
cred == NOCRED.

This fixes a page fault occurring when a union is mounted over a umap,
as FSCRED is passed by union filesystem.
2009-02-13 22:29:00 +00:00
jmmv
3baa49a10f Convert the threads libcrypto test to ATF and enable it. Drop the old one
in regress.
2009-02-13 22:01:48 +00:00
jmmv
44d668a632 Fix build; need to constify the return value of a function. 2009-02-13 22:01:05 +00:00
jmmv
0601c2c71b Remove threads from the list of subdirs. Commited by mistake. 2009-02-13 21:33:27 +00:00
bouyer
24584a19d8 Add commented out PCI pass-through support:
#xpci* at xenbus ?                      #Xen3 PCI front end driver
#pci* at xpci ?
2009-02-13 21:18:43 +00:00
bouyer
97f5912f84 Add kernel config file for i386PAE dom0 kernel. 2009-02-13 21:14:46 +00:00
bouyer
651c78e5dd Make sure PCI_COMMAND_MASTER_ENABLE is set in PCI_COMMAND_STATUS_REG. 2009-02-13 21:12:14 +00:00
bouyer
b48bdec72e make iwi_alloc_tx_ring() prototype match function declaration (shows up when
bus_addr_t != bus_size_t). Fix cast for 64bit paddr_t on i386.
2009-02-13 21:11:47 +00:00
he
a5e21717ca Another port which needs <arm/cpu.h> added as in include due to
the new kern_ssp.c.
2009-02-13 21:08:40 +00:00
bouyer
ad86c9a128 Work in progress on PCI front-end/back-end support
front-end:
- add a xpci* at xenbus? which provides pci busses from the dom0
  xpci provides support routines for PCI config space operations and
  enumeration in xpci_xenbus.c
- hypervisor.c: do dom0-style PCI attach only ifdef DOM0OPS
- pci_intr_machdep.c:  check line value only if DOM0OPS

back-end:
- add a pciback* at pci? device which takes precedences over all
  other PCI devices (match return 500) and matches all devices passed
  to pciback.hide option on boot command line.
  It exports the PCI device informations to files in /kern/xen/pci/
- hypervisor.c: create /kern/xen earlier so pciback can create its
  entries while PCI devices are probed
- xen_machdep.c: add handling for pciback.hide=

frontend is know working on Xen 3.1.x dom0 with ahc(4) and pciide(4)
devices. uhci(4) fail when trying to allocate a large contigous DMA
buffer.

backend is work in progress; support in xentools is not there yet.
2009-02-13 21:03:59 +00:00
jmmv
c2b88f9e94 Note conversion of libcrypto changes to ATF. Reusing last entry for this,
as they hold the same date.
2009-02-13 21:00:41 +00:00
jmmv
79bfeb3610 Remove libcrypto regress tests as they have been converted to ATF. The new
versions live in tests/crypto/libcrypto.

Note that the "threads" test is still left here because it was not converted
as part of the atfify GSoC 2008 project.  A quick attempt at building it
doesn't work, so I'll leave it for later.
2009-02-13 20:59:17 +00:00
jmmv
fd2c7cbdc1 Convert libcrypto tests to ATF. Original work done by Lukasz Strzygowski
in the GSoC 2008 atfify project.  Reorganization of files and build system
reworked by me.
2009-02-13 20:58:13 +00:00
bouyer
a72a7c9806 Fix printf format for 64bit paddr_t on i386 2009-02-13 20:51:19 +00:00
bouyer
07a0db581b Change bus_size_t from paddr_t to size_t. It doens't make sense to have
a 64bit bus_size_t on i386 as the address space is 32bits anyway.
With a 64bit bus_size_t we need a different bus_space.S for PAE and non-PAE.
2009-02-13 20:50:38 +00:00
jmmv
bc4d78a24c killpg is not obsolete, but atf-killpg was. My mistake.
Reported by wiz@, Nicolas Joly, and drochner@.
2009-02-13 20:42:41 +00:00
bouyer
40dab4ba52 Prepare for PCI frontend support in Xen3 domUs:
call x86_bus_space_init() and x86_bus_space_mallocok() if we have ISA or PCI
  devices configured; not only for non-Xen or dom0 Xen
On Xen, always call PHYSDEVOP_SET_IOPL on context switch
on amd64, also call PHYSDEVOP_SET_IOPL from x86_64_proc0_tss_ldt_init()
2009-02-13 20:42:24 +00:00
pgoyette
c46760325c Fix dmesg output:
Old:
piixpm0 at pci0 dev 20 function 0
piixpm0: ATI Technologies SB600/SB700/SB800 SMBus Controller (rev. 0x13)
piixpm0: interrupting at SMIpiixpm0: polling

New:
piixpm0 at pci0 dev 20 function 0
piixpm0: ATI Technologies SB600/SB700/SB800 SMBus Controller (rev. 0x13)
piixpm0: interrupting at SMI, polling

Cosmetic change only, no functional changes intended.
2009-02-13 19:19:52 +00:00
macallan
50f7b2a157 Don't bother drawing a cursor until wsdisplay attaches. This works around
the deadlock I've seen with the previous version.
While there do some KNF policing.
2009-02-13 17:50:36 +00:00
uebayasi
a6f7a3d986 Disable debug. 2009-02-13 16:16:26 +00:00
uebayasi
a6533b8fed Comment out CFLAGS+=-g. 2009-02-13 16:02:05 +00:00
cegger
23c2bff805 apply fix from upstream:
pciif: Fix typo in constant definition.


xen-unstable changeset: 19190
xen-3.3-testing changeset: 18580
2009-02-13 10:35:48 +00:00
he
2b6c605f60 Allow kern_ssp.c to build. That file includes <sys/intr.h> without
first including <sys/cpu.h>, so include <arm/cpu.h> here so that
curcpl() and set_curcpl() are declared before they are used.
2009-02-13 08:37:52 +00:00
jmmv
09739dd88f Note the conversion of several util tests to ATF as part of the
GSoC 2008 atfify project.
2009-02-13 05:25:47 +00:00
jmmv
08439bc7e5 Remove tests that have been atfified as part of the GSoC 2008 atfify project. 2009-02-13 05:21:24 +00:00
jmmv
408c8f0410 Create the directories required for the new tests in the util directory. 2009-02-13 05:20:47 +00:00
jmmv
5274fd4fe5 Sync the tests list after adding several new util tests. 2009-02-13 05:20:26 +00:00
jmmv
fbaeb3b2ac Add the util tests developed as part of the atfify GSoC 2008 project.
Initial done work by Lukasz Strzygowsky and reorganization of files done
by me.
2009-02-13 05:19:51 +00:00
lukem
79362ba3ea avoid lint's whining on i386 2009-02-13 04:01:46 +00:00
abs
82eae5f5e8 avoid long/unsigned long printf warning on some platforms 2009-02-13 01:38:32 +00:00
lukem
bd0ca7dff7 WARNS=4 2009-02-13 01:37:35 +00:00
lukem
9abbf3c336 fix -Wsign-compare issues 2009-02-13 01:37:23 +00:00
lukem
998789a8d9 this code isn't -Wsign-compare friendly -- drop the WARNS to 3. 2009-02-13 01:27:43 +00:00
abs
0c7bdeb6b8 Use u_int counter to count from 0 to u_int: for (u = 0; u < digits; u++) 2009-02-13 00:46:25 +00:00
lukem
dbe6409d6e -Wsign-compare for WARNS>=4 2009-02-12 22:56:26 +00:00
lukem
c0d472c616 Enable -Wsign-compare for WARNS=4 (and above).
Test compiled on i386 and amd64; there may be some stragglers
on other platforms.

Note: -Wall has this by default in gcc4, and we explicitly disable it at
WARNS=1 (i.e., -Wall -Wno-sign-compare).  A goal is to reduce the WARNS level
where this feature is enabled, so we can eventually remove -Wno-sign-compare.
2009-02-12 22:49:05 +00:00
bouyer
2a8972c890 Remove dead code 2009-02-12 20:57:45 +00:00
christos
942a145f69 PR/40603: Christoph Badura: unprivileged users can add and delete interface
link addresses. Fixed by centralizing the test as suggested. Will pull up
to 5.0 once submitter tests the fix.
2009-02-12 19:05:36 +00:00
christos
160a37667a Unbreak ssp kernels. The issue here that when the ssp_init() call was deferred,
it caused the return from the enclosing function to break, as well as the
ssp return on i386. To fix both issues, split configure in two pieces
the one before calling ssp_init and the one after, and move the ssp_init()
call back in main. Put ssp_init() in its own file, and compile this new file
with -fno-stack-protector. Tested on amd64.
XXX: If we want to have ssp kernels working on 5.0, this change needs to
be pulled up.
2009-02-12 18:24:18 +00:00
uebayasi
30399256d4 Enable assertions only when _DIAGNOSTICS is defined, as other libc parts do. 2009-02-12 16:24:59 +00:00
uebayasi
d4222bb04e Fix build for tests/syscall; pointed out by Geoff Wing. 2009-02-12 16:14:32 +00:00
cegger
17fa4af4f6 Make Dom0/DomU boot with root-on-nfs when 'bootdev' parameter is missing or wrong.
In this case, we get prompted for the root device.
Make sure that nfs_bootstatic_callback is initialized or we will miss the nfsroot bootparameter,
causing a boot failure even when root device is correct.
2009-02-12 15:40:15 +00:00
nonaka
50b0e1a573 Processing that installed the card first was moved from pxapcic_attach_common()
to the head of pxapcic_event_thread().
As a result, the problem that built-in CF card is not detected is solved.
This problem occurred because of the fix of kern/40531.
2009-02-12 15:37:12 +00:00
pooka
143addadfb Use p_nlwpid to store the next lwpid location. 2009-02-12 14:46:58 +00:00
sketch
fc16547f5e More fixes for existing portability stuff. 2009-02-12 13:39:49 +00:00
cegger
1ff2d41bea pretty print atphy's supported medias in dmesg. 2009-02-12 13:38:49 +00:00
lukem
342bcd3c5c Drop to WARNS?=3 as src/sys doesn't compile with -Wsign-compare yet 2009-02-12 13:23:17 +00:00
lukem
e77a187288 Back to WARNS=3 until the kernel source is -Wsign-compare friendly. 2009-02-12 13:20:17 +00:00