Commit Graph

3653 Commits

Author SHA1 Message Date
christos
0fcf083702 Add loadfile.c (stolen from Jason's alpha/stand/common/loadfile.c)
loadfile.h contains macros that are supposed to be MD, but loadfile.c is now MI.
Fixes:
- a.out support
- pass information values via an array not global variables
- don't assume that you can access memory directly.
- remove MD parts
- remove some printfs.
XXX:  loadfile.c needs to be moved somewhere where other ports can use it.
XXX2: read() routines on the i386 don't appear to set errno on failure.
1999-01-28 20:18:31 +00:00
christos
408aa9a669 Bump number to 2.6 and say ELF works!
But, this is not selfhosting yet. I need to fix the installboot crap.
[i.e. you need the a.out tools to build it and install it].
1999-01-28 20:12:49 +00:00
christos
72ba98061e Add btinfo_symtab, to pass symbol table information.
Actually the current ddb_init interface sucks, since there is no
magic number for a.out and it applies heuristics. It would be nice
if the boot blocks passed more info.
1999-01-28 20:10:55 +00:00
christos
c46e7e7756 Use btinfo_symtab to find the symbol table if it is available. 1999-01-28 20:06:31 +00:00
christos
6922bd9c58 Add ELF bits. -N does not work, because ld does not compute the correct
memsz.
1999-01-28 20:04:54 +00:00
drochner
c6ca838916 defopt PCI_CONF_MODE 1999-01-28 12:43:13 +00:00
thorpej
af39050d19 Use MBR_MAGIC defintions in <sys/disklabel_mbr.h> 1999-01-27 21:20:18 +00:00
thorpej
f077362c41 Use the MI <sys/disklabel_mbr.h>, not our own machine-dependent
definitions.
1999-01-27 20:54:56 +00:00
christos
be52cd1738 Fix this properly, using gcc assembly syntax (thanks ws!) 1999-01-26 17:07:06 +00:00
christos
d102972c3a Add a missing _C_LABEL(). Now an ELF kernel builds (if one removes the
-z flag from the ld line, in the Makefile)
1999-01-26 14:28:05 +00:00
christos
12bbb63ed7 move the assembly functions to locore.s and make the variables used by
them non-static
1999-01-26 14:27:08 +00:00
christos
d95840263e add prototypes for the assembly functions that moved to locore.s 1999-01-26 14:25:02 +00:00
christos
0339b8e4dd ifdef __ELF__ the softintr inline since we cannot use _C_LABEL to produce
a name. XXX: Is there a better way?
1999-01-26 14:22:23 +00:00
christos
3bbb84a4a9 - move the npx assembly routines from npx.c here, so that we can use _C_LABEL
etc, to produce the correct names for elf and a.out
- correct a missing _C_LABEL problem.
1999-01-26 14:21:20 +00:00
cgd
c9d7f12836 kill accidental 'options MSGBUFSIZE...' that crept in to rev 1.89.
while a larger message buffer size might be a good idea (even as the
default), the existing definition here was way too large and was, in
fact, accidental!
1999-01-25 05:10:03 +00:00
mycroft
897a8a7f29 Mark [hn]to[nh][ls]() with __const__, so they are subject to CSE. 1999-01-24 12:55:01 +00:00
drochner
6fe2522d57 second round of mouse renaming: psm->pms 1999-01-23 16:10:47 +00:00
drochner
b384cb4978 update for mouse renaming
document wscons-compatible bus mice
1999-01-23 15:38:11 +00:00
drochner
c5b4780e5b update for mouse renaming 1999-01-23 15:35:21 +00:00
drochner
2589333219 the cdevsw entries are for the backwards compatible mice now 1999-01-23 15:13:28 +00:00
drochner
f7138b4416 busmice have wsmouse attribute now
add backwards compatible mice
update for pms->opms renaming
1999-01-23 15:09:55 +00:00
drochner
4120bf17c4 rename the autoconfiguration related symbols to opms* to avoid namespace
collisions with an mi wscons-capable pms driver
1999-01-23 15:07:10 +00:00
drochner
6ad1646ffb provide backwards-compatible busmouse drivers
(technically identical to lms.c/mms.c)
1999-01-23 15:05:39 +00:00
drochner
45ecb32709 make the busmice work with wscons 1999-01-23 15:03:50 +00:00
tron
cba7ce0e5c Add "ipip" network interfaces. 1999-01-22 22:47:16 +00:00
thorpej
6ead44025b Fixup some usage of _C_LABEL(). 1999-01-22 22:43:44 +00:00
mycroft
ec253b6315 Use __builtin_next_arg(). Fixed PR 6862. 1999-01-22 14:14:32 +00:00
sakamoto
7da2ee9edd Add vr driver. 1999-01-22 05:40:16 +00:00
christos
28b4668c17 Move prototypes to mi code; add MD constant for padding 1999-01-21 23:11:45 +00:00
christos
4384281c67 move the mi context setting code out of here. 1999-01-21 23:07:20 +00:00
christos
4e3e5d021d Avoid void * arithm in a debugging printf, and remove extraneous void *
casts.
1999-01-21 22:58:11 +00:00
mycroft
399318b456 Vanity config files. 1999-01-21 09:58:26 +00:00
mycroft
74a54bbbc8 wscons. 1999-01-21 02:54:08 +00:00
mycroft
1e9146db5d sync 1999-01-21 02:50:21 +00:00
mycroft
516af72df3 -ccd +vnd 1999-01-20 22:48:42 +00:00
mycroft
7ef318056c sync 1999-01-20 11:15:56 +00:00
thorpej
2fb041ce0a No need for <sys/mtio.h> 1999-01-19 18:18:41 +00:00
drochner
67589898ca Be more cautious about writing to the CMOS century byte. Update it only
if it contained a "19" before. There are machines (in particular PS/2
descendants) which have a checksum at this place.
Introduce a patchable kernel variable "rtc_update_century" to modify
the behaviour: 1="always update" (for testing and if one wants to set
the clock back) or -1="never touch".
1999-01-18 10:50:23 +00:00
he
30cc2d95cb Actually handle small boot blocks (<=15 blocks) correctly in the ffs case. 1999-01-17 18:16:16 +00:00
chuck
8bd992a5f6 remove non MNN code 1999-01-16 20:30:34 +00:00
he
4155434b1c Fix uninitialized `inode' variable in save_ffs(), fixing port-i386/6682. 1999-01-16 18:26:47 +00:00
tron
3601b98911 Add missing backslashes between continued lines. 1999-01-16 06:24:07 +00:00
bouyer
62a77e9dfe Oups, need byte_swap.h too. Pointed out by Robert V. Baron 1999-01-16 02:20:26 +00:00
thorpej
8922647c58 Some minor, mostly costmetic, changes to CPPFLAGS/CFLAGS. 1999-01-15 23:37:05 +00:00
bouyer
dc306354b0 Move the bswap functions from libutil to libc (this bups the
minor of libc and the major of libutil). For little-endian architectures
merge the bnswap() assembly versions with nto* and hton* using symbols
aliasing. Use symbol renaming for the bswap function in this case to avoid
namespace pollution.
Declare bswap* in machine/bswap.h, not machine/endian.h. For little-endian
machines, common code for inline macros go in machine/byte_swap.h
Sync libkern with libc.
Adjust #include in kernel sources for machine/bswap.h.
1999-01-15 13:31:15 +00:00
cgd
ba831d2c43 update for present reality 1999-01-14 04:44:23 +00:00
cgd
f3c3f37dc8 update for ed split 1999-01-14 04:26:46 +00:00
kleink
657d577aeb Pull in <errno.h> instead of <sys/errno.h> for declaration of errno. 1999-01-11 22:21:30 +00:00
christos
e0c19ac888 We cannot relocate our interpreter (yet). 1999-01-11 11:02:50 +00:00
christos
e293d1bc34 Add ELF crap. 1999-01-11 11:02:16 +00:00