Commit Graph

105227 Commits

Author SHA1 Message Date
manu
1ee1245718 Add support for two Darwin sysctl 2002-11-23 02:18:53 +00:00
lha
f882e535ec deal with the .s -> .S change for i386 2002-11-23 02:15:45 +00:00
lha
e5a0293cb5 Add fix a missing CPUVAR define (copied from mach_sigcode.S). Frank
promised to a better fix when he wakes up, this just to make it
compile again.
2002-11-23 02:05:51 +00:00
oster
d8bae03774 One less goto. 2002-11-23 01:59:59 +00:00
oster
a14698a359 Bye-bye to the completely unused reconCtrlPtr->priorityList. 2002-11-23 01:58:18 +00:00
thorpej
bc4956ce1c Fix the _init and _fini function prologues for ABICALLS. Make sure
the functions are aligned to a 32-bit boundary, otherwise some pretty
colorful lossage can result.
2002-11-23 01:44:13 +00:00
manu
0e734a6755 Libraries do not use relative addresses, they are absolute and should be
treated as such if we want the same mapping as in Darwin.

While we are there KNFify function names
2002-11-22 23:09:46 +00:00
ragge
0ccd7cbd86 It's a very bad habit to store file sizes in int's, so change it to off_t
instead. Obviously noone has tried to rcp files larger than 2GB.
2002-11-22 21:46:02 +00:00
fvdl
23fb62d8f1 Removed unused function. From kristerw. 2002-11-22 21:21:13 +00:00
oster
540f566858 rf_SelectMirrorDiskPartition() is only needed in a few cases. #if it
out in the rest.  Thanks to Krister!
2002-11-22 20:56:10 +00:00
fvdl
a1d9522721 Note restructures i386 interrupt code. 2002-11-22 20:00:21 +00:00
thorpej
6a34f16f1f Align to 2**3, not 2**5. This works around a bug in gas 2.11.2
which was uncovered by the new crti/crtn (bug is fixed in newer
versions of gas).
2002-11-22 17:25:46 +00:00
thorpej
6a088e4e31 Fix typo. 2002-11-22 16:47:20 +00:00
tsutsui
f64c3cad31 - Add -msoft-float and -ffreestanding to CFLAGS.
- Add -mno-abicalls to AFLAGS.
- Set WARNS?=1
2002-11-22 16:38:22 +00:00
jmc
1db8069fe5 First pass (checkpoint checkin) for firewire scsi code.
There are a number of issues here for anyone trying to use this today:

1. On my test drive the command engine on the drive seems to stall after the
   inquire is done. So the mode sense times out for a long time before
   aborting. This obviously needs to be tracked down and fixed.

   However it does do a proper inquire:

scsibus0 at sbpscsi0: 1 target, 1 lun per target
sd0 at scsibus0 target 0 lun 0: <Maxtor, 1394 storage, 60> disk fixed

2. This code is quite ugly in places as debug code was added to test things.
   Definitly needs cleanup/documention in places where it's using command
   structures. The structure for alloc'ing orbs, running them through the
   command engine and getting state back is mostly set but implementation needs
   an overhaul in places.

3. For testing I use the following config options:

fwohci* at cardbus? dev ? function ?    # IEEE1394 Controller
fw*     at fwbus?
options FW_DEBUG
options FWNODE_DEBUG
options P1212_DEBUG
options SBP2_DEBUG
options SBPSCSI_DEBUG
fwnode* at fwbus?
sbpscsi* at fwnode?
scsibus* at sbpscsi?
2002-11-22 16:28:54 +00:00
tsutsui
fdeaca44df Add some prototype declarations. 2002-11-22 16:27:07 +00:00
jmc
77b603bc96 Change structure/usage of interface provided callbacks. (read, write, reset)
Push these up to the ieee1394 softc level and make the naming scheme
consistant.
2002-11-22 16:20:17 +00:00
fvdl
af8aa9d5df Get this to compile again in the ioapic case. 2002-11-22 16:16:56 +00:00
thorpej
a46e31a46c Disable "obsolete" for now, since it has major problems with
SYS_INCLUDES=symlinks.
2002-11-22 15:51:42 +00:00
thorpej
470625bc1c Note that libtool needs to be rebuilt after updating to a
crti/crtn-using C run-time.
2002-11-22 15:48:33 +00:00
fvdl
ae4b76c8d3 New interrupt code. The basic idea behind it is to hide the differences
in interrupt controllers in struct pic, and try to keep as much
common code as possible. At the lowest (asm) level, this is done
with CPP macros.

The main structure is now struct intrsource, describing an established
interrupt line, of any kind (soft/hard local apic/legacy apic/IO apic).
For quick masking, there may be a maximum of 32 sources per CPU.
Sources can be assigned to any CPU in the MP case, though currently they
all go to the boot CPU.
2002-11-22 15:23:35 +00:00
fvdl
88fb7f6d27 Define a generic PIC structure, used by the interrupt code. 2002-11-22 15:07:58 +00:00
fvdl
99dccacc3c Interrupt defines that needed to be in a seperate file to avoid cyclic
includes.
2002-11-22 15:07:38 +00:00
fvdl
65d1332692 Asm macros for interrupt/trap entry/exit, used in multiple .S files. 2002-11-22 15:07:10 +00:00
fvdl
1db3b7489b New files for the changed interrupt code. i8259.c deals with some of
the old ('legacy') i8259 code, intr.c now contains the bulk of
the interrupt establish/disestablish code.
2002-11-22 15:05:23 +00:00
fvdl
0caa98d6b8 .s -> .S rename 2002-11-22 15:02:12 +00:00
fvdl
c403116289 .s -> .S rename. New files: vector.S and spl.S, they have been split
off from locore.s, plus parts of isa/vector.s and isa/icu.s
2002-11-22 15:01:15 +00:00
fvdl
71a8119df8 Renamed to .S 2002-11-22 14:57:32 +00:00
fvdl
518afbd262 Renamed to .S, locore.s was split up too. 2002-11-22 14:55:11 +00:00
fvdl
fe506424c6 Removed in the new intr world. 2002-11-22 14:53:05 +00:00
fvdl
e2b6067204 Removed, no longer needed. Defines were either dupilcates, or have been
moved to other files.
2002-11-22 14:43:32 +00:00
fvdl
45cffa1bd6 These files have been given a proper .S extension, they will come back
to life as such.
2002-11-22 14:39:26 +00:00
fvdl
e4703e808c The ioapic interrupt code has been folded together with the i8259
interrupt code.
2002-11-22 14:30:28 +00:00
simonb
7a17e24ac5 Remove pc532-only hacks to access wildly different interrupt accounting
now that interrupts are tracked with evcnt(9) on this port.
2002-11-22 13:30:34 +00:00
simonb
fe72c084d6 Switch to using evcnt(9) to track interrupt counts. 2002-11-22 13:26:39 +00:00
simonb
11823a584d Only warn on double-word displacements for displacements less
than -0x20000000, not -0x1f000000.  Quells the endless stream
of
	ld: Double word displacement -535682276, out of range
style warnings that have annoyed my once too often.
2002-11-22 12:40:20 +00:00
wiz
0b10ce5dfc regen 2002-11-22 12:23:26 +00:00
wiz
e78e668887 Fix typo (responsiness -> responsiveness). 2002-11-22 12:20:58 +00:00
wiz
34fa57de10 Use correct macro. 2002-11-22 12:15:27 +00:00
thorpej
95681d5fa6 Note some recent toolchain changes. 2002-11-22 06:46:45 +00:00
thorpej
6dba3a7439 Split crtbegin/crtend into crti/crtbegin/crtend/crtn. NetBSD-specific
things like the .note.netbsd.ident section are provided by crti/crtn.
crti/crtn also provide the _init() and _fini() routines.

crtbegin/crtend now only provide support for ctors/dtors.  This paves
the way to using the "crtstuff" provided with GCC (when we upgrade to
GCC 3.3), which provides, among other things, much better C++/Java
exception handling.
2002-11-22 06:44:56 +00:00
junyoung
2cc0cde8f5 Now _rtld_relocate_objects() returns with error as soon as any of
subsequent calls in it fails.

Spotted by wiz and enami.
2002-11-22 04:39:37 +00:00
manu
f528c56f39 Check for excessive recursive Mach-O loading 2002-11-21 22:30:32 +00:00
manu
ae6b5562b1 Remove a debug message that has been committed by mistake. 2002-11-21 22:01:45 +00:00
manu
af59b63bbd We now have the exact stack initial stack layout of Darwin:
macho_hdr, argc, *argv, NULL, *envp, NULL, progname, NULL,
*progname, **argv, **envp

Where progname is a pointer to the program name as given in the first
argument to execve(), and macho_hdr a pointer to the Mach-O header at
the beginning of the executable file.
2002-11-21 19:53:40 +00:00
junyoung
b5ffe4c33c Simplify code a bit. 2002-11-21 19:09:56 +00:00
wiz
b863b83c82 Add missing word. 2002-11-21 18:12:15 +00:00
thorpej
ecce995e37 Note the ARM ELF "softvfp" object marking change, and the resulting
(somewhat minor) flag-day.
2002-11-21 18:05:59 +00:00
thorpej
9022b5f984 In ASM_SPEC:
* If -mhard-float is passed to the compiler, pass -mfpa10 to the assembler.
* If -msoft-float is passed to the compiler, pass -mfpu=softvfp to the
  assembler.
* If neither -mhard-float nor -msoft-float are passed to the compiler,
  pass -mfpu=softvfp to the assembler.

These changes properly mark objects as using soft-VFP, as is the default
code generation for NetBSD ARM ELF.
2002-11-21 17:57:35 +00:00
oster
9768cda12b Fix up locking on a call to rf_update_component_labels().
Noticed by Manuel.  Thanks Manuel!
2002-11-21 15:37:55 +00:00