10 |
11 | Use this form to get onto the low-volume announcements-only
12 | mailing list for the Mach 4 project.
13 |
14 |
15 | Be sure to give your full, mailable, "From" address since
16 | the Web doesn't know who you are.
17 | If you don't receive a subscription acknowledgment after a few days,
18 | try sending a normal E-mail message to mach4-announce-request@schirf.cs.utah.edu.
19 |
20 |
21 |
10 |
11 | Be sure to give your full, mailable, "From" address since
12 | the Web doesn't know who you are.
13 | If you don't receive a subscription acknowledgment after a few days,
14 | try sending a normal E-mail message to mach4-users-request@cs.utah.edu.
15 |
16 |
17 |
24 |
25 |
26 |
27 | spo@cs.utah.edu
28 | Last modified Thu Sep 22 1994
29 |
30 |
31 |
--------------------------------------------------------------------------------
/i386/aclocal.m4:
--------------------------------------------------------------------------------
1 | dnl
2 |
--------------------------------------------------------------------------------
/i386/boot/boot.h:
--------------------------------------------------------------------------------
1 | #ifndef _boot_h_
2 | #define _boot_h_
3 |
4 | #include
5 |
6 | extern void *boot_kern_image;
7 | extern struct multiboot_header boot_kern_hdr;
8 |
9 | extern struct multiboot_info *boot_info;
10 |
11 | /* malloc-related helper functions for boot code to use. */
12 | void malloc_reserve(vm_offset_t rstart, vm_offset_t rend);
13 | void *mustmalloc(vm_size_t size);
14 | void *mustcalloc(vm_size_t size);
15 |
16 | #endif _boot_h_
17 |
--------------------------------------------------------------------------------
/i386/boot/bsd/Makefile.in:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 1994 The University of Utah and
3 | # the Computer Systems Laboratory (CSL). All rights reserved.
4 | #
5 | # Permission to use, copy, modify and distribute this software and its
6 | # documentation is hereby granted, provided that both the copyright
7 | # notice and this permission notice appear in all copies of the
8 | # software, derivative works or modified versions, and any portions
9 | # thereof, and that both notices appear in supporting documentation.
10 | #
11 | # THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS
12 | # IS" CONDITION. THE UNIVERSITY OF UTAH AND CSL DISCLAIM ANY LIABILITY OF
13 | # ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
14 | #
15 | # CSL requests users of this software to return to csl-dist@cs.utah.edu any
16 | # improvements that they make and grant CSL redistribution rights.
17 | #
18 | # Author: Bryan Ford, University of Utah CSL
19 | #
20 |
21 | #### Start of configuration section ####
22 |
23 | GSRCDIR = @top_gsrcdir@
24 | MSRCDIR = @top_srcdir@
25 | OBJDIR = @top_objdir@
26 |
27 | prefix = @prefix@
28 | exec_prefix = @exec_prefix@
29 |
30 | include $(OBJDIR)/Makeconf
31 |
32 | ##### End of configuration section #####
33 |
34 | include $(MSRCDIR)/boot/bsd/Makerules
35 |
--------------------------------------------------------------------------------
/i386/boot/bsd/boottype.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 1995 The University of Utah and
3 | * the Computer Systems Laboratory at the University of Utah (CSL).
4 | * All rights reserved.
5 | *
6 | * Permission to use, copy, modify and distribute this software is hereby
7 | * granted provided that (1) source code retains these copyright, permission,
8 | * and disclaimer notices, and (2) redistributions including binaries
9 | * reproduce the notices in supporting documentation, and (3) all advertising
10 | * materials mentioning features or use of this software display the following
11 | * acknowledgement: ``This product includes software developed by the
12 | * Computer Systems Laboratory at the University of Utah.''
13 | *
14 | * THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS
15 | * IS" CONDITION. THE UNIVERSITY OF UTAH AND CSL DISCLAIM ANY LIABILITY OF
16 | * ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
17 | *
18 | * CSL requests users of this software to return to csl-dist@cs.utah.edu any
19 | * improvements that they make and grant CSL redistribution rights.
20 | *
21 | * Author: Bryan Ford, University of Utah CSL
22 | */
23 |
24 | #define BOOTTYPE_MACH 0
25 | #define BOOTTYPE_OLDBSD 1
26 | #define BOOTTYPE_NEWBSD 2
27 |
28 |
--------------------------------------------------------------------------------
/i386/boot/do_boot.S:
--------------------------------------------------------------------------------
1 |
2 | #include
3 |
4 | .text
5 |
6 | ENTRY(do_boot)
7 | movw %dx,%ds
8 | movw %dx,%es
9 | movw %dx,%fs
10 | movw %dx,%gs
11 | movw %dx,%ss
12 |
13 | rep
14 | movsb
15 |
16 | jmp *%eax
17 | ENTRY(do_boot_end)
18 |
19 |
--------------------------------------------------------------------------------
/i386/boot/linux/Makefile.in:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 1994 The University of Utah and
3 | # the Computer Systems Laboratory (CSL). All rights reserved.
4 | #
5 | # Permission to use, copy, modify and distribute this software and its
6 | # documentation is hereby granted, provided that both the copyright
7 | # notice and this permission notice appear in all copies of the
8 | # software, derivative works or modified versions, and any portions
9 | # thereof, and that both notices appear in supporting documentation.
10 | #
11 | # THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS
12 | # IS" CONDITION. THE UNIVERSITY OF UTAH AND CSL DISCLAIM ANY LIABILITY OF
13 | # ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
14 | #
15 | # CSL requests users of this software to return to csl-dist@cs.utah.edu any
16 | # improvements that they make and grant CSL redistribution rights.
17 | #
18 | # Author: Bryan Ford, University of Utah CSL
19 | #
20 |
21 |
22 | #### Start of configuration section ####
23 |
24 | GSRCDIR = @top_gsrcdir@
25 | MSRCDIR = @top_srcdir@
26 | OBJDIR = @top_objdir@
27 |
28 | prefix = @prefix@
29 | exec_prefix = @exec_prefix@
30 |
31 | include $(OBJDIR)/Makeconf
32 |
33 | ##### End of configuration section #####
34 |
35 | include $(MSRCDIR)/boot/linux/Makerules
36 |
37 |
--------------------------------------------------------------------------------
/i386/boot/linux/README:
--------------------------------------------------------------------------------
1 | Most of the files in this directory are derived from Linux code, and are
2 | therefore copyrighted under the GNU General Public License (GPL) unlike the
3 | rest of Mach. See the file COPYING for distribution details.
4 |
5 | In short, any Mach boot images built with the 'mklinuximage' script will
6 | contain code from this directory, and therefore the ENTIRE resulting Mach
7 | boot image will fall under the GPL. Other types of boot images (such as
8 | the BSD-style boot images generated by the 'mkbsdimage' script) do not
9 | contain GPL code and therefore will not cause the resulting boot image to
10 | fall under the GPL unless other GPL is used elsewhere.
11 |
12 | Some of the files in this directory are taken verbatim from the Linux
13 | kernel source distribution. These files are listed in the
14 | Update-from-Linux shell script, and should be kept in sync with and
15 | unmodified from the standard Linux distribution if at all possible. If any
16 | modifications are needed, maybe they could be integrated into the standard
17 | Linux distribution instead of making the Mach versions diverge. In any
18 | case be sure and keep the Update-from-Linux script up-to-date.
19 |
20 | Bryan Ford
21 |
--------------------------------------------------------------------------------
/i386/boot/linux/autoconf.h:
--------------------------------------------------------------------------------
1 | /* Dummy stub file */
2 |
--------------------------------------------------------------------------------
/i386/boot/linux/crypt.h:
--------------------------------------------------------------------------------
1 | /* crypt.h (dummy version) -- do not perform encryption
2 | * Hardly worth copyrighting :-)
3 | */
4 |
5 | #ifdef CRYPT
6 | # undef CRYPT /* dummy version */
7 | #endif
8 |
9 | #define RAND_HEAD_LEN 12 /* length of encryption random header */
10 |
11 | #define zencode
12 | #define zdecode
13 |
--------------------------------------------------------------------------------
/i386/boot/linux/i16_bootsect.S:
--------------------------------------------------------------------------------
1 |
2 | #include
3 |
4 | #define SETUPSECS 4 /* nr of setup-sectors */
5 | #define SYSSIZE DEF_SYSSIZE
6 |
7 | /* ROOT_DEV & SWAP_DEV are now written by "build". */
8 | #define ROOT_DEV 0
9 | #define SWAP_DEV 0
10 | #ifndef SVGA_MODE
11 | #define SVGA_MODE ASK_VGA
12 | #endif
13 | #ifndef RAMDISK
14 | #define RAMDISK 0
15 | #endif
16 | #ifndef CONFIG_ROOT_RDONLY
17 | #define CONFIG_ROOT_RDONLY 0
18 | #endif
19 |
20 | .text
21 | .code16
22 | .globl _start
23 | _start:
24 | /* XXX at least we could print a message... */
25 | jmp _start
26 |
27 |
28 | .org 497
29 | setup_sects:
30 | .byte SETUPSECS
31 | root_flags:
32 | .word CONFIG_ROOT_RDONLY
33 | syssize:
34 | .word SYSSIZE
35 | swap_dev:
36 | .word SWAP_DEV
37 | ram_size:
38 | .word RAMDISK
39 | vid_mode:
40 | .word SVGA_MODE
41 | root_dev:
42 | .word ROOT_DEV
43 | boot_flag:
44 | .word 0xAA55
45 |
--------------------------------------------------------------------------------
/i386/boot/linux/segment.h:
--------------------------------------------------------------------------------
1 | #ifndef _LINUX_SEGMENT_H
2 | #define _LINUX_SEGMENT_H
3 |
4 | #define KERNEL_CS 0x10
5 | #define KERNEL_DS 0x18
6 |
7 | #define USER_CS 0x23
8 | #define USER_DS 0x2B
9 |
10 | #endif
11 |
--------------------------------------------------------------------------------
/i386/configstart:
--------------------------------------------------------------------------------
1 | dnl
2 | dnl Copyright (c) 1994 The University of Utah and
3 | dnl the Center for Software Science (CSS). All rights reserved.
4 | dnl
5 | dnl Permission to use, copy, modify and distribute this software and its
6 | dnl documentation is hereby granted, provided that both the copyright
7 | dnl notice and this permission notice appear in all copies of the
8 | dnl software, derivative works or modified versions, and any portions
9 | dnl thereof, and that both notices appear in supporting documentation.
10 | dnl
11 | dnl THE UNIVERSITY OF UTAH AND CSS ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS
12 | dnl IS" CONDITION. THE UNIVERSITY OF UTAH AND CSS DISCLAIM ANY LIABILITY OF
13 | dnl ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
14 | dnl
15 | dnl CSS requests users of this software to return to css-dist@cs.utah.edu any
16 | dnl improvements that they make and grant CSS redistribution rights.
17 | dnl
18 | dnl Author: Bryan Ford, University of Utah CSS
19 | dnl
20 | AC_INIT(kernel/i386/locore.S)
21 |
--------------------------------------------------------------------------------
/i386/include/Makefile.in:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 1994 The University of Utah and
3 | # the Computer Systems Laboratory (CSL). All rights reserved.
4 | #
5 | # Permission to use, copy, modify and distribute this software and its
6 | # documentation is hereby granted, provided that both the copyright
7 | # notice and this permission notice appear in all copies of the
8 | # software, derivative works or modified versions, and any portions
9 | # thereof, and that both notices appear in supporting documentation.
10 | #
11 | # THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS
12 | # IS" CONDITION. THE UNIVERSITY OF UTAH AND CSL DISCLAIM ANY LIABILITY OF
13 | # ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
14 | #
15 | # CSL requests users of this software to return to csl-dist@cs.utah.edu any
16 | # improvements that they make and grant CSL redistribution rights.
17 | #
18 | # Author: Bryan Ford, University of Utah CSL
19 | #
20 |
21 |
22 | #### Start of configuration section ####
23 |
24 | GSRCDIR = @top_gsrcdir@
25 | MSRCDIR = @top_srcdir@
26 | OBJDIR = @top_objdir@
27 |
28 | prefix = @prefix@
29 | exec_prefix = @exec_prefix@
30 |
31 | include $(OBJDIR)/Makeconf
32 |
33 | ##### End of configuration section #####
34 |
35 | include $(MSRCDIR)/include/Makerules
36 |
37 |
--------------------------------------------------------------------------------
/i386/include/mach/machine/boolean.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Mach Operating System
3 | * Copyright (c) 1991,1990,1989 Carnegie Mellon University
4 | * All Rights Reserved.
5 | *
6 | * Permission to use, copy, modify and distribute this software and its
7 | * documentation is hereby granted, provided that both the copyright
8 | * notice and this permission notice appear in all copies of the
9 | * software, derivative works or modified versions, and any portions
10 | * thereof, and that both notices appear in supporting documentation.
11 | *
12 | * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
13 | * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
14 | * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
15 | *
16 | * Carnegie Mellon requests users of this software to return to
17 | *
18 | * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
19 | * School of Computer Science
20 | * Carnegie Mellon University
21 | * Pittsburgh PA 15213-3890
22 | *
23 | * any improvements or extensions that they make and grant Carnegie Mellon
24 | * the rights to redistribute these changes.
25 | */
26 | /*
27 | * File: boolean.h
28 | *
29 | * Boolean type, for I386.
30 | */
31 |
32 | #ifndef _MACH_I386_BOOLEAN_H_
33 | #define _MACH_I386_BOOLEAN_H_
34 |
35 | typedef int boolean_t;
36 |
37 | #endif /* _MACH_I386_BOOLEAN_H_ */
38 |
--------------------------------------------------------------------------------
/i386/include/mach/machine/code16.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 1994 The University of Utah and
3 | * the Center for Software Science (CSS). All rights reserved.
4 | *
5 | * Permission to use, copy, modify and distribute this software and its
6 | * documentation is hereby granted, provided that both the copyright
7 | * notice and this permission notice appear in all copies of the
8 | * software, derivative works or modified versions, and any portions
9 | * thereof, and that both notices appear in supporting documentation.
10 | *
11 | * THE UNIVERSITY OF UTAH AND CSS ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS
12 | * IS" CONDITION. THE UNIVERSITY OF UTAH AND CSS DISCLAIM ANY LIABILITY OF
13 | * ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
14 | *
15 | * CSS requests users of this software to return to css-dist@cs.utah.edu any
16 | * improvements that they make and grant CSS redistribution rights.
17 | *
18 | * Author: Bryan Ford, University of Utah CSS
19 | */
20 | #ifndef _MACH_I386_CODE16_H_
21 | #define _MACH_I386_CODE16_H_
22 |
23 | /* Switch GAS into 16-bit mode. */
24 | #define CODE16 asm(".code16");
25 |
26 | /* Switch back to 32-bit mode. */
27 | #define CODE32 asm(".code32");
28 |
29 | #endif _MACH_I386_CODE16_H_
30 |
--------------------------------------------------------------------------------
/i386/include/mach/machine/far_ptr.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 1994 The University of Utah and
3 | * the Center for Software Science (CSS). All rights reserved.
4 | *
5 | * Permission to use, copy, modify and distribute this software and its
6 | * documentation is hereby granted, provided that both the copyright
7 | * notice and this permission notice appear in all copies of the
8 | * software, derivative works or modified versions, and any portions
9 | * thereof, and that both notices appear in supporting documentation.
10 | *
11 | * THE UNIVERSITY OF UTAH AND CSS ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS
12 | * IS" CONDITION. THE UNIVERSITY OF UTAH AND CSS DISCLAIM ANY LIABILITY OF
13 | * ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
14 | *
15 | * CSS requests users of this software to return to css-dist@cs.utah.edu any
16 | * improvements that they make and grant CSS redistribution rights.
17 | *
18 | * Author: Bryan Ford, University of Utah CSS
19 | */
20 | #ifndef _MACH_I386_FAR_PTR_H_
21 | #define _MACH_I386_FAR_PTR_H_
22 |
23 | struct far_pointer_16
24 | {
25 | unsigned short ofs;
26 | unsigned short seg;
27 | };
28 |
29 | struct far_pointer_32
30 | {
31 | unsigned long ofs;
32 | unsigned short seg;
33 | };
34 |
35 | #endif /* _MACH_I386_FAR_PTR_H_ */
36 |
--------------------------------------------------------------------------------
/i386/include/mach/machine/rpc.h:
--------------------------------------------------------------------------------
1 |
2 | struct rpc_csig_action
3 | {
4 | };
5 |
6 | struct rpc_csig_entry
7 | {
8 | };
9 |
10 |
--------------------------------------------------------------------------------
/i386/include/mach/machine/time_stamp.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Mach Operating System
3 | * Copyright (c) 1991,1990,1989 Carnegie Mellon University
4 | * All Rights Reserved.
5 | *
6 | * Permission to use, copy, modify and distribute this software and its
7 | * documentation is hereby granted, provided that both the copyright
8 | * notice and this permission notice appear in all copies of the
9 | * software, derivative works or modified versions, and any portions
10 | * thereof, and that both notices appear in supporting documentation.
11 | *
12 | * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
13 | * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
14 | * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
15 | *
16 | * Carnegie Mellon requests users of this software to return to
17 | *
18 | * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
19 | * School of Computer Science
20 | * Carnegie Mellon University
21 | * Pittsburgh PA 15213-3890
22 | *
23 | * any improvements or extensions that they make and grant Carnegie Mellon
24 | * the rights to redistribute these changes.
25 | */
26 | /*
27 | * The I386 timestamp implementation uses the default, so we don't
28 | * need to do anything here.
29 | */
30 |
--------------------------------------------------------------------------------
/i386/kernel/bogus/aha.h:
--------------------------------------------------------------------------------
1 | #define NAHA 1
2 |
--------------------------------------------------------------------------------
/i386/kernel/bogus/asc.h:
--------------------------------------------------------------------------------
1 | #define NASC 0
2 |
--------------------------------------------------------------------------------
/i386/kernel/bogus/at3c501.h:
--------------------------------------------------------------------------------
1 | #define NAT3C501 1
2 |
--------------------------------------------------------------------------------
/i386/kernel/bogus/blit.h:
--------------------------------------------------------------------------------
1 | #define NBLIT 0
2 |
--------------------------------------------------------------------------------
/i386/kernel/bogus/com.h:
--------------------------------------------------------------------------------
1 | #define NCOM 4
2 |
--------------------------------------------------------------------------------
/i386/kernel/bogus/de6c.h:
--------------------------------------------------------------------------------
1 | #define NDE6C 1
2 |
--------------------------------------------------------------------------------
/i386/kernel/bogus/eaha.h:
--------------------------------------------------------------------------------
1 | #define NEAHA 1
2 |
--------------------------------------------------------------------------------
/i386/kernel/bogus/evc.h:
--------------------------------------------------------------------------------
1 | #define NEVC 0
2 |
--------------------------------------------------------------------------------
/i386/kernel/bogus/fd.h:
--------------------------------------------------------------------------------
1 | #define NFD 4/*2*/
2 |
--------------------------------------------------------------------------------
/i386/kernel/bogus/fpe.h:
--------------------------------------------------------------------------------
1 | #define FPE 1
2 |
--------------------------------------------------------------------------------
/i386/kernel/bogus/hd.h:
--------------------------------------------------------------------------------
1 | #define NHD 4
2 |
--------------------------------------------------------------------------------
/i386/kernel/bogus/hpp.h:
--------------------------------------------------------------------------------
1 | #define NHPP 1
2 |
--------------------------------------------------------------------------------
/i386/kernel/bogus/lpr.h:
--------------------------------------------------------------------------------
1 | #define NLPR 1
2 |
--------------------------------------------------------------------------------
/i386/kernel/bogus/mach_machine_routines.h:
--------------------------------------------------------------------------------
1 | #define MACH_MACHINE_ROUTINES 1
2 |
--------------------------------------------------------------------------------
/i386/kernel/bogus/ne.h:
--------------------------------------------------------------------------------
1 | #define NNE 2
2 |
--------------------------------------------------------------------------------
/i386/kernel/bogus/ns8390.h:
--------------------------------------------------------------------------------
1 | #define NNS8390 1
2 |
--------------------------------------------------------------------------------
/i386/kernel/bogus/nscsi.h:
--------------------------------------------------------------------------------
1 | #define NSCSI 4
2 |
--------------------------------------------------------------------------------
/i386/kernel/bogus/par.h:
--------------------------------------------------------------------------------
1 | #define NPAR 0
2 |
--------------------------------------------------------------------------------
/i386/kernel/bogus/pc586.h:
--------------------------------------------------------------------------------
1 | #define NPC586 1
2 |
--------------------------------------------------------------------------------
/i386/kernel/bogus/platforms.h:
--------------------------------------------------------------------------------
1 | #define AT386 1
2 |
--------------------------------------------------------------------------------
/i386/kernel/bogus/rc.h:
--------------------------------------------------------------------------------
1 | /*
2 | * This controls whether or not we use a serial line for the console
3 | * (ie, remote console).
4 | */
5 |
6 | /*
7 | * Values for RCLINE:
8 | * -1 = disable
9 | * 0 = port 0x3f8/irq 4 (DOS COM1)
10 | * 1 = port 0x2f8/irq 3 (DOS COM2)
11 | * 2 = port 0x3e8/irq 5 (DOS COM3)
12 | * 3 = port 0x2e8/irq 9 (DOS COM4)
13 | */
14 |
15 | #define RCLINE -1 /* com port for console */
16 | #define RCADDR 0x3f8 /* where it is */
17 |
--------------------------------------------------------------------------------
/i386/kernel/bogus/sbic.h:
--------------------------------------------------------------------------------
1 | #define NSBIC 0
2 |
--------------------------------------------------------------------------------
/i386/kernel/bogus/sci.h:
--------------------------------------------------------------------------------
1 | #define NSCI 0
2 |
--------------------------------------------------------------------------------
/i386/kernel/bogus/sii.h:
--------------------------------------------------------------------------------
1 | #define NSII 0
2 |
--------------------------------------------------------------------------------
/i386/kernel/bogus/siop.h:
--------------------------------------------------------------------------------
1 | #define NSIOP 0
2 |
--------------------------------------------------------------------------------
/i386/kernel/bogus/ul.h:
--------------------------------------------------------------------------------
1 | #define NUL 0
2 |
--------------------------------------------------------------------------------
/i386/kernel/bogus/wd.h:
--------------------------------------------------------------------------------
1 | #define NWD 0
2 |
--------------------------------------------------------------------------------
/i386/kernel/bogus/wt.h:
--------------------------------------------------------------------------------
1 | #define NWT 0
2 |
--------------------------------------------------------------------------------
/i386/kernel/dos/dos_buf.c:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 1995-1994 The University of Utah and
3 | * the Computer Systems Laboratory at the University of Utah (CSL).
4 | * All rights reserved.
5 | *
6 | * Permission to use, copy, modify and distribute this software is hereby
7 | * granted provided that (1) source code retains these copyright, permission,
8 | * and disclaimer notices, and (2) redistributions including binaries
9 | * reproduce the notices in supporting documentation, and (3) all advertising
10 | * materials mentioning features or use of this software display the following
11 | * acknowledgement: ``This product includes software developed by the
12 | * Computer Systems Laboratory at the University of Utah.''
13 | *
14 | * THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS
15 | * IS" CONDITION. THE UNIVERSITY OF UTAH AND CSL DISCLAIM ANY LIABILITY OF
16 | * ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
17 | *
18 | * CSL requests users of this software to return to csl-dist@cs.utah.edu any
19 | * improvements that they make and grant CSL redistribution rights.
20 | *
21 | * Author: Bryan Ford, University of Utah CSL
22 | */
23 |
24 | #include "dos_io.h"
25 |
26 | #ifndef DOS_BUF_DYNAMIC
27 | char dos_buf[DOS_BUF_SIZE];
28 | #endif
29 |
30 |
--------------------------------------------------------------------------------
/i386/kernel/dos/i16/phys_mem_sources.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 1995-1994 The University of Utah and
3 | * the Computer Systems Laboratory at the University of Utah (CSL).
4 | * All rights reserved.
5 | *
6 | * Permission to use, copy, modify and distribute this software is hereby
7 | * granted provided that (1) source code retains these copyright, permission,
8 | * and disclaimer notices, and (2) redistributions including binaries
9 | * reproduce the notices in supporting documentation, and (3) all advertising
10 | * materials mentioning features or use of this software display the following
11 | * acknowledgement: ``This product includes software developed by the
12 | * Computer Systems Laboratory at the University of Utah.''
13 | *
14 | * THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS
15 | * IS" CONDITION. THE UNIVERSITY OF UTAH AND CSL DISCLAIM ANY LIABILITY OF
16 | * ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
17 | *
18 | * CSL requests users of this software to return to csl-dist@cs.utah.edu any
19 | * improvements that they make and grant CSL redistribution rights.
20 | *
21 | * Author: Bryan Ford, University of Utah CSL
22 | */
23 |
24 | pms(dos_mem)
25 | pms(xms_mem)
26 | /*pms(vcpi_mem) XXX */
27 |
28 | #include_next "phys_mem_sources.h"
29 |
--------------------------------------------------------------------------------
/i386/kernel/i386/ktss.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 1994 The University of Utah and
3 | * the Computer Systems Laboratory at the University of Utah (CSL).
4 | * All rights reserved.
5 | *
6 | * Permission to use, copy, modify and distribute this software is hereby
7 | * granted provided that (1) source code retains these copyright, permission,
8 | * and disclaimer notices, and (2) redistributions including binaries
9 | * reproduce the notices in supporting documentation, and (3) all advertising
10 | * materials mentioning features or use of this software display the following
11 | * acknowledgement: ``This product includes software developed by the
12 | * Computer Systems Laboratory at the University of Utah.''
13 | *
14 | * THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS
15 | * IS" CONDITION. THE UNIVERSITY OF UTAH AND CSL DISCLAIM ANY LIABILITY OF
16 | * ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
17 | *
18 | * CSL requests users of this software to return to csl-dist@cs.utah.edu any
19 | * improvements that they make and grant CSL redistribution rights.
20 | *
21 | * Author: Bryan Ford, University of Utah CSL
22 | */
23 | #ifndef _I386_KTSS_
24 | #define _I386_KTSS_
25 |
26 | #include "tss.h"
27 |
28 | extern struct i386_tss ktss;
29 |
30 | #endif _I386_KTSS_
31 |
--------------------------------------------------------------------------------
/i386/kernel/i386/mach_i386.srv:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 1994 The University of Utah and
3 | * the Computer Systems Laboratory at the University of Utah (CSL).
4 | * All rights reserved.
5 | *
6 | * Permission to use, copy, modify and distribute this software is hereby
7 | * granted provided that (1) source code retains these copyright, permission,
8 | * and disclaimer notices, and (2) redistributions including binaries
9 | * reproduce the notices in supporting documentation, and (3) all advertising
10 | * materials mentioning features or use of this software display the following
11 | * acknowledgement: ``This product includes software developed by the
12 | * Computer Systems Laboratory at the University of Utah.''
13 | *
14 | * THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS
15 | * IS" CONDITION. THE UNIVERSITY OF UTAH AND CSL DISCLAIM ANY LIABILITY OF
16 | * ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
17 | *
18 | * CSL requests users of this software to return to csl-dist@cs.utah.edu any
19 | * improvements that they make and grant CSL redistribution rights.
20 | *
21 | * Author: Bryan Ford, University of Utah CSL
22 | */
23 | /* This is a server presentation file. */
24 |
25 | #define KERNEL_SERVER 1
26 |
27 | #include
28 |
--------------------------------------------------------------------------------
/i386/kernel/i386/mach_param.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Mach Operating System
3 | * Copyright (c) 1991,1990 Carnegie Mellon University
4 | * All Rights Reserved.
5 | *
6 | * Permission to use, copy, modify and distribute this software and its
7 | * documentation is hereby granted, provided that both the copyright
8 | * notice and this permission notice appear in all copies of the
9 | * software, derivative works or modified versions, and any portions
10 | * thereof, and that both notices appear in supporting documentation.
11 | *
12 | * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
13 | * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
14 | * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
15 | *
16 | * Carnegie Mellon requests users of this software to return to
17 | *
18 | * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
19 | * School of Computer Science
20 | * Carnegie Mellon University
21 | * Pittsburgh PA 15213-3890
22 | *
23 | * any improvements or extensions that they make and grant Carnegie Mellon
24 | * the rights to redistribute these changes.
25 | */
26 | /*
27 | * Machine-dependent parameters for i386.
28 | */
29 |
30 | #define HZ (100)
31 | /* clock tick each 10 ms. */
32 |
--------------------------------------------------------------------------------
/i386/kernel/i386/machspl.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Mach Operating System
3 | * Copyright (c) 1991,1990 Carnegie Mellon University
4 | * All Rights Reserved.
5 | *
6 | * Permission to use, copy, modify and distribute this software and its
7 | * documentation is hereby granted, provided that both the copyright
8 | * notice and this permission notice appear in all copies of the
9 | * software, derivative works or modified versions, and any portions
10 | * thereof, and that both notices appear in supporting documentation.
11 | *
12 | * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
13 | * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
14 | * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
15 | *
16 | * Carnegie Mellon requests users of this software to return to
17 | *
18 | * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
19 | * School of Computer Science
20 | * Carnegie Mellon University
21 | * Pittsburgh PA 15213-3890
22 | *
23 | * any improvements or extensions that they make and grant Carnegie Mellon
24 | * the rights to redistribute these changes.
25 | */
26 |
27 | /* XXX replaced by... */
28 | #include
29 |
30 |
--------------------------------------------------------------------------------
/i386/kernel/i386/pmap.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Mach Operating System
3 | * Copyright (c) 1991,1990 Carnegie Mellon University
4 | * All Rights Reserved.
5 | *
6 | * Permission to use, copy, modify and distribute this software and its
7 | * documentation is hereby granted, provided that both the copyright
8 | * notice and this permission notice appear in all copies of the
9 | * software, derivative works or modified versions, and any portions
10 | * thereof, and that both notices appear in supporting documentation.
11 | *
12 | * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
13 | * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
14 | * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
15 | *
16 | * Carnegie Mellon requests users of this software to return to
17 | *
18 | * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
19 | * School of Computer Science
20 | * Carnegie Mellon University
21 | * Pittsburgh PA 15213-3890
22 | *
23 | * any improvements or extensions that they make and grant Carnegie Mellon
24 | * the rights to redistribute these changes.
25 | */
26 | /*
27 | * Now using shared pmap module for i386 and i860.
28 | */
29 |
30 | #include
31 |
--------------------------------------------------------------------------------
/i386/kernel/i386/seg.c:
--------------------------------------------------------------------------------
1 |
2 | #define MACH_INLINE
3 | #include "seg.h"
4 | #include "tss.h"
5 |
6 |
--------------------------------------------------------------------------------
/i386/kernel/i386/time_stamp.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Mach Operating System
3 | * Copyright (c) 1991,1990 Carnegie Mellon University
4 | * All Rights Reserved.
5 | *
6 | * Permission to use, copy, modify and distribute this software and its
7 | * documentation is hereby granted, provided that both the copyright
8 | * notice and this permission notice appear in all copies of the
9 | * software, derivative works or modified versions, and any portions
10 | * thereof, and that both notices appear in supporting documentation.
11 | *
12 | * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
13 | * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
14 | * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
15 | *
16 | * Carnegie Mellon requests users of this software to return to
17 | *
18 | * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
19 | * School of Computer Science
20 | * Carnegie Mellon University
21 | * Pittsburgh PA 15213-3890
22 | *
23 | * any improvements or extensions that they make and grant Carnegie Mellon
24 | * the rights to redistribute these changes.
25 | */
26 | /*
27 | * The i386 timestamp implementation uses the default, so we don't
28 | * need to do anything here.
29 | */
30 |
31 |
--------------------------------------------------------------------------------
/i386/kernel/i386/trap.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Mach Operating System
3 | * Copyright (c) 1991,1990 Carnegie Mellon University
4 | * All Rights Reserved.
5 | *
6 | * Permission to use, copy, modify and distribute this software and its
7 | * documentation is hereby granted, provided that both the copyright
8 | * notice and this permission notice appear in all copies of the
9 | * software, derivative works or modified versions, and any portions
10 | * thereof, and that both notices appear in supporting documentation.
11 | *
12 | * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
13 | * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
14 | * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
15 | *
16 | * Carnegie Mellon requests users of this software to return to
17 | *
18 | * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
19 | * School of Computer Science
20 | * Carnegie Mellon University
21 | * Pittsburgh PA 15213-3890
22 | *
23 | * any improvements or extensions that they make and grant Carnegie Mellon
24 | * the rights to redistribute these changes.
25 | */
26 |
27 | #ifndef _I386_TRAP_H_
28 | #define _I386_TRAP_H_
29 |
30 | #include
31 |
32 | #ifndef ASSEMBLER
33 |
34 | char *trap_name(unsigned int trapnum);
35 |
36 | #endif !ASSEMBLER
37 |
38 | #endif _I386_TRAP_H_
39 |
--------------------------------------------------------------------------------
/i386/kernel/i386/vm_tuning.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Mach Operating System
3 | * Copyright (c) 1991,1990 Carnegie Mellon University
4 | * All Rights Reserved.
5 | *
6 | * Permission to use, copy, modify and distribute this software and its
7 | * documentation is hereby granted, provided that both the copyright
8 | * notice and this permission notice appear in all copies of the
9 | * software, derivative works or modified versions, and any portions
10 | * thereof, and that both notices appear in supporting documentation.
11 | *
12 | * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
13 | * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
14 | * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
15 | *
16 | * Carnegie Mellon requests users of this software to return to
17 | *
18 | * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
19 | * School of Computer Science
20 | * Carnegie Mellon University
21 | * Pittsburgh PA 15213-3890
22 | *
23 | * any improvements or extensions that they make and grant Carnegie Mellon
24 | * the rights to redistribute these changes.
25 | */
26 | /*
27 | * File: i386/vm_tuning.h
28 | *
29 | * VM tuning parameters for the i386 (without reference bits).
30 | */
31 |
32 | #ifndef _I386_VM_TUNING_H_
33 | #define _I386_VM_TUNING_H_
34 |
35 | #endif _I386_VM_TUNING_H_
36 |
--------------------------------------------------------------------------------
/i386/kernel/i386/xpr.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Mach Operating System
3 | * Copyright (c) 1991,1990,1989 Carnegie Mellon University
4 | * All Rights Reserved.
5 | *
6 | * Permission to use, copy, modify and distribute this software and its
7 | * documentation is hereby granted, provided that both the copyright
8 | * notice and this permission notice appear in all copies of the
9 | * software, derivative works or modified versions, and any portions
10 | * thereof, and that both notices appear in supporting documentation.
11 | *
12 | * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
13 | * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
14 | * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
15 | *
16 | * Carnegie Mellon requests users of this software to return to
17 | *
18 | * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
19 | * School of Computer Science
20 | * Carnegie Mellon University
21 | * Pittsburgh PA 15213-3890
22 | *
23 | * any improvements or extensions that they make and grant Carnegie Mellon
24 | * the rights to redistribute these changes.
25 | */
26 | /*
27 | * File: xpr.h
28 | *
29 | * Machine dependent module for the XPR tracing facility.
30 | */
31 |
32 | #define XPR_TIMESTAMP (0)
33 |
--------------------------------------------------------------------------------
/i386/kernel/i386/zalloc.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 1996-1994 The University of Utah and
3 | * the Computer Systems Laboratory (CSL). All rights reserved.
4 | *
5 | * Permission to use, copy, modify and distribute this software is hereby
6 | * granted provided that (1) source code retains these copyright, permission,
7 | * and disclaimer notices, and (2) redistributions including binaries
8 | * reproduce the notices in supporting documentation, and (3) all advertising
9 | * materials mentioning features or use of this software display the following
10 | * acknowledgement: ``This product includes software developed by the
11 | * Computer Systems Laboratory at the University of Utah.''
12 | *
13 | * THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS
14 | * IS" CONDITION. THE UNIVERSITY OF UTAH AND CSL DISCLAIM ANY LIABILITY OF
15 | * ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
16 | *
17 | * CSL requests users of this software to return to csl-dist@cs.utah.edu any
18 | * improvements that they make and grant CSL redistribution rights.
19 | *
20 | * Utah $Hdr: zalloc.h 1.4 94/12/16$
21 | * Author: Bryan Ford
22 | */
23 |
24 | #ifndef _I386_ZALLOC_H_
25 | #define _I386_ZALLOC_H_
26 |
27 | #include
28 |
29 | #endif /* _I386_ZALLOC_H_ */
30 |
--------------------------------------------------------------------------------
/i386/kernel/i386at/boothdr.S.orig:
--------------------------------------------------------------------------------
1 |
2 | #include
3 |
4 | #include "i386asm.h"
5 |
6 | .text
7 |
8 | /* We should never be entered this way. */
9 | .globl start,_start
10 | start:
11 | _start:
12 | jmp boot_entry
13 |
14 | /* MultiBoot header - see multiboot.h. */
15 | P2ALIGN(2)
16 | boot_hdr:
17 | .long 0x1BADB002 /* magic */
18 | #ifdef ELF
19 | .long 0x00000002 /* flags */
20 | #else /* a.out kludge */
21 | .long 0x00010002 /* flags */
22 | .long boot_hdr /* header_addr */
23 | .long _start /* load_addr */
24 | .long _edata /* load_end_addr */
25 | .long _end /* bss_end_addr */
26 | .long boot_entry /* entry */
27 | #endif
28 |
29 | boot_entry:
30 |
31 | /* Switch to our own interrupt stack. */
32 | movl $_intstack+INTSTACK_SIZE,%esp
33 |
34 | /* Reset EFLAGS to a known state. */
35 | pushl $0
36 | popf
37 |
38 | /* Clear uninitialized data. */
39 | lea _edata,%edi
40 | lea _end,%ecx
41 | subl %edi,%ecx
42 | xorl %eax,%eax
43 | rep
44 | stosb
45 |
46 | /* Push the boot_info pointer to be the second argument. */
47 | pushl %ebx
48 |
49 | /* Jump into C code. */
50 | call EXT(c_boot_entry)
51 |
52 | .comm _intstack,INTSTACK_SIZE
53 |
54 |
--------------------------------------------------------------------------------
/i386/kernel/i386at/gpl/linux/include/asm/param.h:
--------------------------------------------------------------------------------
1 | #ifndef _ASMi386_PARAM_H
2 | #define _ASMi386_PARAM_H
3 |
4 | #ifndef HZ
5 | #define HZ 100
6 | #endif
7 |
8 | #define EXEC_PAGESIZE 4096
9 |
10 | #ifndef NGROUPS
11 | #define NGROUPS 32
12 | #endif
13 |
14 | #ifndef NOGROUP
15 | #define NOGROUP (-1)
16 | #endif
17 |
18 | #define MAXHOSTNAMELEN 64 /* max length of hostname */
19 |
20 | #endif
21 |
--------------------------------------------------------------------------------
/i386/kernel/i386at/gpl/linux/include/asm/ptrace.h:
--------------------------------------------------------------------------------
1 | #ifndef _I386_PTRACE_H
2 | #define _I386_PTRACE_H
3 |
4 | #define EBX 0
5 | #define ECX 1
6 | #define EDX 2
7 | #define ESI 3
8 | #define EDI 4
9 | #define EBP 5
10 | #define EAX 6
11 | #define DS 7
12 | #define ES 8
13 | #define FS 9
14 | #define GS 10
15 | #define ORIG_EAX 11
16 | #define EIP 12
17 | #define CS 13
18 | #define EFL 14
19 | #define UESP 15
20 | #define SS 16
21 |
22 |
23 | /* this struct defines the way the registers are stored on the
24 | stack during a system call. */
25 |
26 | struct pt_regs {
27 | long ebx;
28 | long ecx;
29 | long edx;
30 | long esi;
31 | long edi;
32 | long ebp;
33 | long eax;
34 | unsigned short ds, __dsu;
35 | unsigned short es, __esu;
36 | unsigned short fs, __fsu;
37 | unsigned short gs, __gsu;
38 | long orig_eax;
39 | long eip;
40 | unsigned short cs, __csu;
41 | long eflags;
42 | long esp;
43 | unsigned short ss, __ssu;
44 | };
45 |
46 | #ifdef __KERNEL__
47 | #define user_mode(regs) ((VM_MASK & (regs)->eflags) || (3 & (regs)->cs))
48 | #define instruction_pointer(regs) ((regs)->eip)
49 | extern void show_regs(struct pt_regs *);
50 | #endif
51 |
52 | #endif
53 |
--------------------------------------------------------------------------------
/i386/kernel/i386at/gpl/linux/include/asm/resource.h:
--------------------------------------------------------------------------------
1 | #ifndef _I386_RESOURCE_H
2 | #define _I386_RESOURCE_H
3 |
4 | /*
5 | * Resource limits
6 | */
7 |
8 | #define RLIMIT_CPU 0 /* CPU time in ms */
9 | #define RLIMIT_FSIZE 1 /* Maximum filesize */
10 | #define RLIMIT_DATA 2 /* max data size */
11 | #define RLIMIT_STACK 3 /* max stack size */
12 | #define RLIMIT_CORE 4 /* max core file size */
13 | #define RLIMIT_RSS 5 /* max resident set size */
14 | #define RLIMIT_NPROC 6 /* max number of processes */
15 | #define RLIMIT_NOFILE 7 /* max number of open files */
16 | #define RLIMIT_MEMLOCK 8 /* max locked-in-memory address space */
17 |
18 | #define RLIM_NLIMITS 9
19 |
20 | #ifdef __KERNEL__
21 |
22 | #define INIT_RLIMITS \
23 | { \
24 | { LONG_MAX, LONG_MAX }, \
25 | { LONG_MAX, LONG_MAX }, \
26 | { LONG_MAX, LONG_MAX }, \
27 | { _STK_LIM, _STK_LIM }, \
28 | { 0, LONG_MAX }, \
29 | { LONG_MAX, LONG_MAX }, \
30 | { MAX_TASKS_PER_USER, MAX_TASKS_PER_USER }, \
31 | { NR_OPEN, NR_OPEN }, \
32 | { LONG_MAX, LONG_MAX }, \
33 | }
34 |
35 | #endif /* __KERNEL__ */
36 |
37 | #endif
38 |
--------------------------------------------------------------------------------
/i386/kernel/i386at/gpl/linux/include/asm/sigcontext.h:
--------------------------------------------------------------------------------
1 | #ifndef _ASMi386_SIGCONTEXT_H
2 | #define _ASMi386_SIGCONTEXT_H
3 |
4 | struct sigcontext_struct {
5 | unsigned short gs, __gsh;
6 | unsigned short fs, __fsh;
7 | unsigned short es, __esh;
8 | unsigned short ds, __dsh;
9 | unsigned long edi;
10 | unsigned long esi;
11 | unsigned long ebp;
12 | unsigned long esp;
13 | unsigned long ebx;
14 | unsigned long edx;
15 | unsigned long ecx;
16 | unsigned long eax;
17 | unsigned long trapno;
18 | unsigned long err;
19 | unsigned long eip;
20 | unsigned short cs, __csh;
21 | unsigned long eflags;
22 | unsigned long esp_at_signal;
23 | unsigned short ss, __ssh;
24 | unsigned long i387;
25 | unsigned long oldmask;
26 | unsigned long cr2;
27 | };
28 |
29 | #endif
30 |
--------------------------------------------------------------------------------
/i386/kernel/i386at/gpl/linux/include/asm/socket.h:
--------------------------------------------------------------------------------
1 | #ifndef _ASM_SOCKET_H
2 | #define _ASM_SOCKET_H
3 |
4 | /* Socket-level I/O control calls. */
5 | #define FIOSETOWN 0x8901
6 | #define SIOCSPGRP 0x8902
7 | #define FIOGETOWN 0x8903
8 | #define SIOCGPGRP 0x8904
9 | #define SIOCATMARK 0x8905
10 | #define SIOCGSTAMP 0x8906 /* Get stamp */
11 |
12 | /* For setsockoptions(2) */
13 | #define SOL_SOCKET 1
14 |
15 | #define SO_DEBUG 1
16 | #define SO_REUSEADDR 2
17 | #define SO_TYPE 3
18 | #define SO_ERROR 4
19 | #define SO_DONTROUTE 5
20 | #define SO_BROADCAST 6
21 | #define SO_SNDBUF 7
22 | #define SO_RCVBUF 8
23 | #define SO_KEEPALIVE 9
24 | #define SO_OOBINLINE 10
25 | #define SO_NO_CHECK 11
26 | #define SO_PRIORITY 12
27 | #define SO_LINGER 13
28 | #define SO_BSDCOMPAT 14
29 | /* To add :#define SO_REUSEPORT 15 */
30 |
31 | #endif /* _ASM_SOCKET_H */
32 |
--------------------------------------------------------------------------------
/i386/kernel/i386at/gpl/linux/include/asm/stat.h:
--------------------------------------------------------------------------------
1 | #ifndef _I386_STAT_H
2 | #define _I386_STAT_H
3 |
4 | struct old_stat {
5 | unsigned short st_dev;
6 | unsigned short st_ino;
7 | unsigned short st_mode;
8 | unsigned short st_nlink;
9 | unsigned short st_uid;
10 | unsigned short st_gid;
11 | unsigned short st_rdev;
12 | unsigned long st_size;
13 | unsigned long st_atime;
14 | unsigned long st_mtime;
15 | unsigned long st_ctime;
16 | };
17 |
18 | struct new_stat {
19 | unsigned short st_dev;
20 | unsigned short __pad1;
21 | unsigned long st_ino;
22 | unsigned short st_mode;
23 | unsigned short st_nlink;
24 | unsigned short st_uid;
25 | unsigned short st_gid;
26 | unsigned short st_rdev;
27 | unsigned short __pad2;
28 | unsigned long st_size;
29 | unsigned long st_blksize;
30 | unsigned long st_blocks;
31 | unsigned long st_atime;
32 | unsigned long __unused1;
33 | unsigned long st_mtime;
34 | unsigned long __unused2;
35 | unsigned long st_ctime;
36 | unsigned long __unused3;
37 | unsigned long __unused4;
38 | unsigned long __unused5;
39 | };
40 |
41 | #endif
42 |
--------------------------------------------------------------------------------
/i386/kernel/i386at/gpl/linux/include/asm/statfs.h:
--------------------------------------------------------------------------------
1 | #ifndef _I386_STATFS_H
2 | #define _I386_STATFS_H
3 |
4 | typedef struct {
5 | long val[2];
6 | } fsid_t;
7 |
8 | struct statfs {
9 | long f_type;
10 | long f_bsize;
11 | long f_blocks;
12 | long f_bfree;
13 | long f_bavail;
14 | long f_files;
15 | long f_ffree;
16 | fsid_t f_fsid;
17 | long f_namelen;
18 | long f_spare[6];
19 | };
20 |
21 | #endif
22 |
--------------------------------------------------------------------------------
/i386/kernel/i386at/gpl/linux/include/linux/config.h:
--------------------------------------------------------------------------------
1 | #ifndef _LINUX_CONFIG_H
2 | #define _LINUX_CONFIG_H
3 |
4 | #include
5 |
6 | /*
7 | * Defines for what uname() should return
8 | */
9 | #ifndef UTS_SYSNAME
10 | #define UTS_SYSNAME "Linux"
11 | #endif
12 |
13 | #ifndef UTS_MACHINE
14 | #define UTS_MACHINE "unknown"
15 | #endif
16 |
17 | #ifndef UTS_NODENAME
18 | #define UTS_NODENAME "(none)" /* set by sethostname() */
19 | #endif
20 |
21 | #ifndef UTS_DOMAINNAME
22 | #define UTS_DOMAINNAME "(none)" /* set by setdomainname() */
23 | #endif
24 |
25 | /*
26 | * The definitions for UTS_RELEASE and UTS_VERSION are now defined
27 | * in linux/version.h, and should only be used by linux/version.c
28 | */
29 |
30 | /* Don't touch these, unless you really know what your doing. */
31 | #define DEF_INITSEG 0x9000
32 | #define DEF_SYSSEG 0x1000
33 | #define DEF_SETUPSEG 0x9020
34 | #define DEF_SYSSIZE 0x7F00
35 |
36 | /* internal svga startup constants */
37 | #define NORMAL_VGA 0xffff /* 80x25 mode */
38 | #define EXTENDED_VGA 0xfffe /* 80x50 mode */
39 | #define ASK_VGA 0xfffd /* ask for it at bootup */
40 |
41 | #endif
42 |
--------------------------------------------------------------------------------
/i386/kernel/i386at/gpl/linux/include/linux/delay.h:
--------------------------------------------------------------------------------
1 | #ifndef _LINUX_DELAY_H
2 | #define _LINUX_DELAY_H
3 |
4 | /*
5 | * Copyright (C) 1993 Linus Torvalds
6 | *
7 | * Delay routines, using a pre-computed "loops_per_second" value.
8 | */
9 |
10 | extern unsigned long loops_per_sec;
11 |
12 | #include
13 |
14 | #endif /* defined(_LINUX_DELAY_H) */
15 |
--------------------------------------------------------------------------------
/i386/kernel/i386at/gpl/linux/include/linux/errno.h:
--------------------------------------------------------------------------------
1 | #ifndef _LINUX_ERRNO_H
2 | #define _LINUX_ERRNO_H
3 |
4 | #include
5 |
6 | #ifdef __KERNEL__
7 |
8 | /* Should never be seen by user programs */
9 | #define ERESTARTSYS 512
10 | #define ERESTARTNOINTR 513
11 | #define ERESTARTNOHAND 514 /* restart if no handler.. */
12 | #define ENOIOCTLCMD 515 /* No ioctl command */
13 |
14 | #endif
15 |
16 | #endif
17 |
--------------------------------------------------------------------------------
/i386/kernel/i386at/gpl/linux/include/linux/fcntl.h:
--------------------------------------------------------------------------------
1 | #ifndef _LINUX_FCNTL_H
2 | #define _LINUX_FCNTL_H
3 |
4 | #include
5 |
6 | #endif
7 |
--------------------------------------------------------------------------------
/i386/kernel/i386at/gpl/linux/include/linux/head.h:
--------------------------------------------------------------------------------
1 | #ifndef _LINUX_HEAD_H
2 | #define _LINUX_HEAD_H
3 |
4 | typedef struct desc_struct {
5 | unsigned long a,b;
6 | } desc_table[256];
7 |
8 | extern desc_table idt,gdt;
9 |
10 | #define GDT_NUL 0
11 | #define GDT_CODE 1
12 | #define GDT_DATA 2
13 | #define GDT_TMP 3
14 |
15 | #define LDT_NUL 0
16 | #define LDT_CODE 1
17 | #define LDT_DATA 2
18 |
19 | #endif
20 |
--------------------------------------------------------------------------------
/i386/kernel/i386at/gpl/linux/include/linux/ioctl.h:
--------------------------------------------------------------------------------
1 | #ifndef _LINUX_IOCTL_H
2 | #define _LINUX_IOCTL_H
3 |
4 | #include
5 |
6 | #endif /* _LINUX_IOCTL_H */
7 |
8 |
--------------------------------------------------------------------------------
/i386/kernel/i386at/gpl/linux/include/linux/ioport.h:
--------------------------------------------------------------------------------
1 | /*
2 | * portio.h Definitions of routines for detecting, reserving and
3 | * allocating system resources.
4 | *
5 | * Version: 0.01 8/30/93
6 | *
7 | * Author: Donald Becker (becker@super.org)
8 | */
9 |
10 | #ifndef _LINUX_PORTIO_H
11 | #define _LINUX_PORTIO_H
12 |
13 | #define HAVE_PORTRESERVE
14 | /*
15 | * Call check_region() before probing for your hardware.
16 | * Once you have found you hardware, register it with request_region().
17 | * If you unload the driver, use release_region to free ports.
18 | */
19 | extern void reserve_setup(char *str, int *ints);
20 | extern int check_region(unsigned int from, unsigned int extent);
21 | extern void request_region(unsigned int from, unsigned int extent,const char *name);
22 | extern void release_region(unsigned int from, unsigned int extent);
23 | extern int get_ioport_list(char *);
24 |
25 |
26 | #define HAVE_AUTOIRQ
27 | extern void *irq2dev_map[16]; /* Use only if you own the IRQ. */
28 | extern int autoirq_setup(int waittime);
29 | extern int autoirq_report(int waittime);
30 |
31 | #endif /* _LINUX_PORTIO_H */
32 |
--------------------------------------------------------------------------------
/i386/kernel/i386at/gpl/linux/include/linux/kernel_stat.h:
--------------------------------------------------------------------------------
1 | #ifndef _LINUX_KERNEL_STAT_H
2 | #define _LINUX_KERNEL_STAT_H
3 |
4 | #include
5 |
6 | /*
7 | * 'kernel_stat.h' contains the definitions needed for doing
8 | * some kernel statistics (cpu usage, context switches ...),
9 | * used by rstatd/perfmeter
10 | */
11 |
12 | #define DK_NDRIVE 4
13 |
14 | struct kernel_stat {
15 | unsigned int cpu_user, cpu_nice, cpu_system;
16 | unsigned int dk_drive[DK_NDRIVE];
17 | unsigned int dk_drive_rio[DK_NDRIVE];
18 | unsigned int dk_drive_wio[DK_NDRIVE];
19 | unsigned int dk_drive_rblk[DK_NDRIVE];
20 | unsigned int dk_drive_wblk[DK_NDRIVE];
21 | unsigned int pgpgin, pgpgout;
22 | unsigned int pswpin, pswpout;
23 | unsigned int interrupts[NR_IRQS];
24 | unsigned int ipackets, opackets;
25 | unsigned int ierrors, oerrors;
26 | unsigned int collisions;
27 | unsigned int context_swtch;
28 | };
29 |
30 | extern struct kernel_stat kstat;
31 |
32 | #endif /* _LINUX_KERNEL_STAT_H */
33 |
--------------------------------------------------------------------------------
/i386/kernel/i386at/gpl/linux/include/linux/limits.h:
--------------------------------------------------------------------------------
1 | #ifndef _LINUX_LIMITS_H
2 | #define _LINUX_LIMITS_H
3 |
4 | #define NR_OPEN 256
5 |
6 | #define NGROUPS_MAX 32 /* supplemental group IDs are available */
7 | #define ARG_MAX 131072 /* # bytes of args + environ for exec() */
8 | #define CHILD_MAX 999 /* no limit :-) */
9 | #define OPEN_MAX 256 /* # open files a process may have */
10 | #define LINK_MAX 127 /* # links a file may have */
11 | #define MAX_CANON 255 /* size of the canonical input queue */
12 | #define MAX_INPUT 255 /* size of the type-ahead buffer */
13 | #define NAME_MAX 255 /* # chars in a file name */
14 | #define PATH_MAX 1024 /* # chars in a path name */
15 | #define PIPE_BUF 4096 /* # bytes in atomic write to a pipe */
16 |
17 | #endif
18 |
--------------------------------------------------------------------------------
/i386/kernel/i386at/gpl/linux/include/linux/malloc.h:
--------------------------------------------------------------------------------
1 | #ifndef _LINUX_MALLOC_H
2 | #define _LINUX_MALLOC_H
3 |
4 | #include
5 |
6 | #ifndef MACH_INCLUDE
7 | #define kmalloc linux_kmalloc
8 | #define kfree linux_kfree
9 | #endif
10 |
11 | void *linux_kmalloc(unsigned int size, int priority);
12 | void linux_kfree(void * obj);
13 |
14 | #define kfree_s(a,b) linux_kfree(a)
15 |
16 | #endif /* _LINUX_MALLOC_H */
17 |
--------------------------------------------------------------------------------
/i386/kernel/i386at/gpl/linux/include/linux/math_emu.h:
--------------------------------------------------------------------------------
1 | #ifndef _LINUX_MATH_EMU_H
2 | #define _LINUX_MATH_EMU_H
3 |
4 | struct fpu_reg {
5 | char sign;
6 | char tag;
7 | long exp;
8 | unsigned sigl;
9 | unsigned sigh;
10 | };
11 |
12 |
13 | /* This structure matches the layout of the data saved to the stack
14 | following a device-not-present interrupt, part of it saved
15 | automatically by the 80386/80486.
16 | */
17 | struct info {
18 | long ___orig_eip;
19 | long ___ret_from_system_call;
20 | long ___ebx;
21 | long ___ecx;
22 | long ___edx;
23 | long ___esi;
24 | long ___edi;
25 | long ___ebp;
26 | long ___eax;
27 | long ___ds;
28 | long ___es;
29 | long ___fs;
30 | long ___gs;
31 | long ___orig_eax;
32 | long ___eip;
33 | long ___cs;
34 | long ___eflags;
35 | long ___esp;
36 | long ___ss;
37 | long ___vm86_es; /* This and the following only in vm86 mode */
38 | long ___vm86_ds;
39 | long ___vm86_fs;
40 | long ___vm86_gs;
41 | };
42 |
43 | #endif
44 |
--------------------------------------------------------------------------------
/i386/kernel/i386at/gpl/linux/include/linux/minix_fs_sb.h:
--------------------------------------------------------------------------------
1 | #ifndef _MINIX_FS_SB
2 | #define _MINIX_FS_SB
3 |
4 | /*
5 | * minix super-block data in memory
6 | */
7 | struct minix_sb_info {
8 | unsigned long s_ninodes;
9 | unsigned long s_nzones;
10 | unsigned long s_imap_blocks;
11 | unsigned long s_zmap_blocks;
12 | unsigned long s_firstdatazone;
13 | unsigned long s_log_zone_size;
14 | unsigned long s_max_size;
15 | struct buffer_head * s_imap[8];
16 | struct buffer_head * s_zmap[64];
17 | unsigned long s_dirsize;
18 | unsigned long s_namelen;
19 | struct buffer_head * s_sbh;
20 | struct minix_super_block * s_ms;
21 | unsigned short s_mount_state;
22 | unsigned short s_version;
23 | };
24 |
25 | #endif
26 |
--------------------------------------------------------------------------------
/i386/kernel/i386at/gpl/linux/include/linux/mount.h:
--------------------------------------------------------------------------------
1 | /*
2 | *
3 | * Definitions for mount interface. This describes the in the kernel build
4 | * linkedlist with mounted filesystems.
5 | *
6 | * Author: Marco van Wieringen
7 | *
8 | * Version: $Id: mount.h,v 1.1 1996/03/25 20:23:30 goel Exp $
9 | *
10 | */
11 | #ifndef _LINUX_MOUNT_H
12 | #define _LINUX_MOUNT_H
13 |
14 | struct vfsmount
15 | {
16 | kdev_t mnt_dev; /* Device this applies to */
17 | char *mnt_devname; /* Name of device e.g. /dev/dsk/hda1 */
18 | char *mnt_dirname; /* Name of directory mounted on */
19 | unsigned int mnt_flags; /* Flags of this device */
20 | struct semaphore mnt_sem; /* lock device while I/O in progress */
21 | struct super_block *mnt_sb; /* pointer to superblock */
22 | struct file *mnt_quotas[MAXQUOTAS]; /* fp's to quotafiles */
23 | time_t mnt_iexp[MAXQUOTAS]; /* expiretime for inodes */
24 | time_t mnt_bexp[MAXQUOTAS]; /* expiretime for blocks */
25 | struct vfsmount *mnt_next; /* pointer to next in linkedlist */
26 | };
27 |
28 | struct vfsmount *lookup_vfsmnt(kdev_t dev);
29 |
30 | #endif /* _LINUX_MOUNT_H */
31 |
--------------------------------------------------------------------------------
/i386/kernel/i386at/gpl/linux/include/linux/param.h:
--------------------------------------------------------------------------------
1 | #ifndef _LINUX_PARAM_H
2 | #define _LINUX_PARAM_H
3 |
4 | #include
5 |
6 | #endif
7 |
--------------------------------------------------------------------------------
/i386/kernel/i386at/gpl/linux/include/linux/ptrace.h:
--------------------------------------------------------------------------------
1 | #ifndef _LINUX_PTRACE_H
2 | #define _LINUX_PTRACE_H
3 | /* ptrace.h */
4 | /* structs and defines to help the user use the ptrace system call. */
5 |
6 | /* has the defines to get at the registers. */
7 |
8 | #define PTRACE_TRACEME 0
9 | #define PTRACE_PEEKTEXT 1
10 | #define PTRACE_PEEKDATA 2
11 | #define PTRACE_PEEKUSR 3
12 | #define PTRACE_POKETEXT 4
13 | #define PTRACE_POKEDATA 5
14 | #define PTRACE_POKEUSR 6
15 | #define PTRACE_CONT 7
16 | #define PTRACE_KILL 8
17 | #define PTRACE_SINGLESTEP 9
18 |
19 | #define PTRACE_ATTACH 0x10
20 | #define PTRACE_DETACH 0x11
21 |
22 | #define PTRACE_SYSCALL 24
23 |
24 | #include
25 |
26 | #endif
27 |
--------------------------------------------------------------------------------
/i386/kernel/i386at/gpl/linux/include/linux/scsicam.h:
--------------------------------------------------------------------------------
1 | /*
2 | * scsicam.h - SCSI CAM support functions, use for HDIO_GETGEO, etc.
3 | *
4 | * Copyright 1993, 1994 Drew Eckhardt
5 | * Visionary Computing
6 | * (Unix and Linux consulting and custom programming)
7 | * drew@Colorado.EDU
8 | * +1 (303) 786-7975
9 | *
10 | * For more information, please consult the SCSI-CAM draft.
11 | */
12 |
13 | #ifndef SCSICAM_H
14 | #define SCSICAM_H
15 | #include
16 | extern int scsicam_bios_param (Disk *disk, kdev_t dev, int *ip);
17 | #endif /* def SCSICAM_H */
18 |
--------------------------------------------------------------------------------
/i386/kernel/i386at/gpl/linux/include/linux/signal.h:
--------------------------------------------------------------------------------
1 | #ifndef _LINUX_SIGNAL_H
2 | #define _LINUX_SIGNAL_H
3 |
4 | #include
5 |
6 | #endif
7 |
--------------------------------------------------------------------------------
/i386/kernel/i386at/gpl/linux/include/linux/stddef.h:
--------------------------------------------------------------------------------
1 | #ifndef _LINUX_STDDEF_H
2 | #define _LINUX_STDDEF_H
3 |
4 | #ifndef _SIZE_T
5 | #define _SIZE_T
6 | typedef unsigned int size_t;
7 | #endif
8 |
9 | #undef NULL
10 | #define NULL ((void *)0)
11 |
12 | #undef offsetof
13 | #define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER)
14 |
15 | #endif
16 |
--------------------------------------------------------------------------------
/i386/kernel/i386at/gpl/linux/include/linux/tasks.h:
--------------------------------------------------------------------------------
1 | #ifndef _LINUX_TASKS_H
2 | #define _LINUX_TASKS_H
3 |
4 | /*
5 | * This is the maximum nr of tasks - change it if you need to
6 | */
7 |
8 | #ifdef __SMP__
9 | #define NR_CPUS 32 /* Max processors that can be running in SMP */
10 | #else
11 | #define NR_CPUS 1
12 | #endif
13 |
14 | #define NR_TASKS 512
15 |
16 | #define MAX_TASKS_PER_USER (NR_TASKS/2)
17 | #define MIN_TASKS_LEFT_FOR_ROOT 4
18 |
19 | #endif
20 |
--------------------------------------------------------------------------------
/i386/kernel/i386at/gpl/linux/include/linux/termios.h:
--------------------------------------------------------------------------------
1 | #ifndef _LINUX_TERMIOS_H
2 | #define _LINUX_TERMIOS_H
3 |
4 | #include
5 | #include
6 |
7 | #endif
8 |
--------------------------------------------------------------------------------
/i386/kernel/i386at/gpl/linux/include/linux/time.h:
--------------------------------------------------------------------------------
1 | #ifndef _LINUX_TIME_H
2 | #define _LINUX_TIME_H
3 |
4 | struct timespec {
5 | long tv_sec; /* seconds */
6 | long tv_nsec; /* nanoseconds */
7 | };
8 |
9 | struct timeval {
10 | int tv_sec; /* seconds */
11 | int tv_usec; /* microseconds */
12 | };
13 |
14 | struct timezone {
15 | int tz_minuteswest; /* minutes west of Greenwich */
16 | int tz_dsttime; /* type of dst correction */
17 | };
18 |
19 | #define NFDBITS __NFDBITS
20 |
21 | #ifdef __KERNEL__
22 | void do_gettimeofday(struct timeval *tv);
23 | void do_settimeofday(struct timeval *tv);
24 | #endif
25 |
26 | #define FD_SETSIZE __FD_SETSIZE
27 | #define FD_SET(fd,fdsetp) __FD_SET(fd,fdsetp)
28 | #define FD_CLR(fd,fdsetp) __FD_CLR(fd,fdsetp)
29 | #define FD_ISSET(fd,fdsetp) __FD_ISSET(fd,fdsetp)
30 | #define FD_ZERO(fdsetp) __FD_ZERO(fdsetp)
31 |
32 | /*
33 | * Names of the interval timers, and structure
34 | * defining a timer setting.
35 | */
36 | #define ITIMER_REAL 0
37 | #define ITIMER_VIRTUAL 1
38 | #define ITIMER_PROF 2
39 |
40 | struct itimerspec {
41 | struct timespec it_interval; /* timer period */
42 | struct timespec it_value; /* timer expiration */
43 | };
44 |
45 | struct itimerval {
46 | struct timeval it_interval; /* timer interval */
47 | struct timeval it_value; /* current value */
48 | };
49 |
50 | #endif
51 |
--------------------------------------------------------------------------------
/i386/kernel/i386at/gpl/linux/include/linux/uio.h:
--------------------------------------------------------------------------------
1 | #ifndef __LINUX_UIO_H
2 | #define __LINUX_UIO_H
3 |
4 | /*
5 | * Berkeley style UIO structures - Alan Cox 1994.
6 | *
7 | * This program is free software; you can redistribute it and/or
8 | * modify it under the terms of the GNU General Public License
9 | * as published by the Free Software Foundation; either version
10 | * 2 of the License, or (at your option) any later version.
11 | */
12 |
13 |
14 | /* A word of warning: Our uio structure will clash with the C library one (which is now obsolete). Remove the C
15 | library one from sys/uio.h */
16 |
17 | struct iovec
18 | {
19 | void *iov_base; /* BSD uses caddr_t (same thing in effect) */
20 | int iov_len;
21 | };
22 |
23 | #define MAX_IOVEC 8 /* Maximum iovec's in one operation */
24 |
25 | #endif
26 |
--------------------------------------------------------------------------------
/i386/kernel/i386at/gpl/linux/include/linux/unistd.h:
--------------------------------------------------------------------------------
1 | #ifndef _LINUX_UNISTD_H_
2 | #define _LINUX_UNISTD_H_
3 |
4 | extern int errno;
5 |
6 | /*
7 | * Include machine specific syscallX macros
8 | */
9 | #include
10 |
11 | #endif /* _LINUX_UNISTD_H_ */
12 |
--------------------------------------------------------------------------------
/i386/kernel/i386at/gpl/linux/include/linux/utsname.h:
--------------------------------------------------------------------------------
1 | #ifndef _LINUX_UTSNAME_H
2 | #define _LINUX_UTSNAME_H
3 |
4 | #define __OLD_UTS_LEN 8
5 |
6 | struct oldold_utsname {
7 | char sysname[9];
8 | char nodename[9];
9 | char release[9];
10 | char version[9];
11 | char machine[9];
12 | };
13 |
14 | #define __NEW_UTS_LEN 64
15 |
16 | struct old_utsname {
17 | char sysname[65];
18 | char nodename[65];
19 | char release[65];
20 | char version[65];
21 | char machine[65];
22 | };
23 |
24 | struct new_utsname {
25 | char sysname[65];
26 | char nodename[65];
27 | char release[65];
28 | char version[65];
29 | char machine[65];
30 | char domainname[65];
31 | };
32 |
33 | extern struct new_utsname system_utsname;
34 |
35 | #endif
36 |
--------------------------------------------------------------------------------
/i386/kernel/i386at/gpl/linux/include/linux/version.h:
--------------------------------------------------------------------------------
1 | #define UTS_RELEASE "1.3.68"
2 | #define UTS_VERSION "#1 Thu Feb 29 16:37:10 MST 1996"
3 | #define LINUX_COMPILE_TIME "09:03:52"
4 | #define LINUX_COMPILE_BY "goel"
5 | #define LINUX_COMPILE_HOST "stamp.cs.utah.edu"
6 | #define LINUX_COMPILE_DOMAIN "cs.utah.edu"
7 | #define LINUX_COMPILER "gcc version 2.7.2"
8 | #define LINUX_VERSION_CODE (65536 + 4 * 256)
9 |
--------------------------------------------------------------------------------
/i386/kernel/i386at/gpl/linux/include/linux/vfs.h:
--------------------------------------------------------------------------------
1 | #ifndef _LINUX_VFS_H
2 | #define _LINUX_VFS_H
3 |
4 | #include
5 |
6 | #endif
7 |
--------------------------------------------------------------------------------
/i386/kernel/i386at/gpl/linux/include/linux/wait.h:
--------------------------------------------------------------------------------
1 | #ifndef _LINUX_WAIT_H
2 | #define _LINUX_WAIT_H
3 |
4 | #define WNOHANG 0x00000001
5 | #define WUNTRACED 0x00000002
6 |
7 | #define __WCLONE 0x80000000
8 |
9 | #ifdef __KERNEL__
10 |
11 | struct wait_queue {
12 | struct task_struct * task;
13 | struct wait_queue * next;
14 | };
15 |
16 | struct semaphore {
17 | int count;
18 | struct wait_queue * wait;
19 | };
20 |
21 | #define MUTEX ((struct semaphore) { 1, NULL })
22 | #define MUTEX_LOCKED ((struct semaphore) { 0, NULL })
23 |
24 | struct select_table_entry {
25 | struct wait_queue wait;
26 | struct wait_queue ** wait_address;
27 | };
28 |
29 | typedef struct select_table_struct {
30 | int nr;
31 | struct select_table_entry * entry;
32 | } select_table;
33 |
34 | #define __MAX_SELECT_TABLE_ENTRIES (4096 / sizeof (struct select_table_entry))
35 |
36 | #endif /* __KERNEL__ */
37 |
38 | #endif
39 |
--------------------------------------------------------------------------------
/i386/kernel/i386at/gpl/linux/include/net/af_unix.h:
--------------------------------------------------------------------------------
1 | extern void unix_proto_init(struct net_proto *pro);
2 |
3 | typedef struct sock unix_socket;
4 |
5 |
--------------------------------------------------------------------------------
/i386/kernel/i386at/gpl/linux/include/net/arp.h:
--------------------------------------------------------------------------------
1 | /* linux/net/inet/arp.h */
2 | #ifndef _ARP_H
3 | #define _ARP_H
4 |
5 | extern void arp_init(void);
6 | extern int arp_rcv(struct sk_buff *skb, struct device *dev,
7 | struct packet_type *pt);
8 | extern int arp_query(unsigned char *haddr, u32 paddr, struct device *dev);
9 | extern int arp_find(unsigned char *haddr, u32 paddr,
10 | struct device *dev, u32 saddr, struct sk_buff *skb);
11 | extern int arp_ioctl(unsigned int cmd, void *arg);
12 | extern void arp_send(int type, int ptype, u32 dest_ip,
13 | struct device *dev, u32 src_ip,
14 | unsigned char *dest_hw, unsigned char *src_hw, unsigned char *th);
15 | extern int arp_bind_cache(struct hh_cache ** hhp, struct device *dev, unsigned short type, __u32 daddr);
16 | extern int arp_update_cache(struct hh_cache * hh);
17 | #endif /* _ARP_H */
18 |
--------------------------------------------------------------------------------
/i386/kernel/i386at/gpl/linux/include/net/atalkcall.h:
--------------------------------------------------------------------------------
1 | /* Separate to keep compilation of protocols.c simpler */
2 | extern void atalk_proto_init(struct net_proto *pro);
3 |
--------------------------------------------------------------------------------
/i386/kernel/i386at/gpl/linux/include/net/ax25call.h:
--------------------------------------------------------------------------------
1 | /* Seperate to keep compilation of protocols.c simpler */
2 | extern void ax25_proto_init(struct net_proto *pro);
3 |
--------------------------------------------------------------------------------
/i386/kernel/i386at/gpl/linux/include/net/checksum.h:
--------------------------------------------------------------------------------
1 | /*
2 | * INET An implementation of the TCP/IP protocol suite for the LINUX
3 | * operating system. INET is implemented using the BSD Socket
4 | * interface as the means of communication with the user level.
5 | *
6 | * Checksumming functions for IP, TCP, UDP and so on
7 | *
8 | * Authors: Jorge Cwik,
9 | * Arnt Gulbrandsen,
10 | * Borrows very liberally from tcp.c and ip.c, see those
11 | * files for more names.
12 | *
13 | * This program is free software; you can redistribute it and/or
14 | * modify it under the terms of the GNU General Public License
15 | * as published by the Free Software Foundation; either version
16 | * 2 of the License, or (at your option) any later version.
17 | */
18 | #ifndef _CHECKSUM_H
19 | #define _CHECKSUM_H
20 |
21 | #include
22 | #include
23 | #include
24 |
25 | #endif
26 |
--------------------------------------------------------------------------------
/i386/kernel/i386at/gpl/linux/include/net/datalink.h:
--------------------------------------------------------------------------------
1 | #ifndef _NET_INET_DATALINK_H_
2 | #define _NET_INET_DATALINK_H_
3 |
4 | struct datalink_proto {
5 | unsigned short type_len;
6 | unsigned char type[8];
7 | const char *string_name;
8 | unsigned short header_length;
9 | int (*rcvfunc)(struct sk_buff *, struct device *,
10 | struct packet_type *);
11 | void (*datalink_header)(struct datalink_proto *, struct sk_buff *,
12 | unsigned char *);
13 | struct datalink_proto *next;
14 | };
15 |
16 | #endif
17 |
--------------------------------------------------------------------------------
/i386/kernel/i386at/gpl/linux/include/net/ip_alias.h:
--------------------------------------------------------------------------------
1 | /*
2 | * IP_ALIAS (AF_INET) aliasing definitions.
3 | *
4 | *
5 | * Version: @(#)ip_alias.h 0.43 12/20/95
6 | *
7 | * Author: Juan Jose Ciarlante,
8 | *
9 | *
10 | * This program is free software; you can redistribute it and/or
11 | * modify it under the terms of the GNU General Public License
12 | * as published by the Free Software Foundation; either version
13 | * 2 of the License, or (at your option) any later version.
14 | *
15 | */
16 |
17 | #ifndef _IP_ALIAS_H
18 | #define _IP_ALIAS_H
19 |
20 | extern int ip_alias_init(void);
21 | extern int ip_alias_done(void);
22 |
23 | #endif /* _IP_ALIAS_H */
24 |
--------------------------------------------------------------------------------
/i386/kernel/i386at/gpl/linux/include/net/ip_forward.h:
--------------------------------------------------------------------------------
1 | #ifndef __NET_IP_FORWARD_H
2 | #define __NET_IP_FORWARD_H
3 |
4 | #define IPFWD_FRAGMENT 1
5 | #define IPFWD_LASTFRAG 2
6 | #define IPFWD_MASQUERADED 4
7 | #define IPFWD_MULTICASTING 8
8 | #define IPFWD_MULTITUNNEL 16
9 |
10 | #endif
11 |
--------------------------------------------------------------------------------
/i386/kernel/i386at/gpl/linux/include/net/ipip.h:
--------------------------------------------------------------------------------
1 | extern int ipip_rcv(struct sk_buff *skb, struct device *dev, struct options *opt,
2 | __u32 daddr, unsigned short len, __u32 saddr,
3 | int redo, struct inet_protocol *protocol);
4 |
5 |
--------------------------------------------------------------------------------
/i386/kernel/i386at/gpl/linux/include/net/ipxcall.h:
--------------------------------------------------------------------------------
1 | /* Separate to keep compilation of protocols.c simpler */
2 | extern void ipx_proto_init(struct net_proto *pro);
3 |
--------------------------------------------------------------------------------
/i386/kernel/i386at/gpl/linux/include/net/netlink.h:
--------------------------------------------------------------------------------
1 | #ifndef __NET_NETLINK_H
2 | #define __NET_NETLINK_H
3 |
4 | #define NET_MAJOR 36 /* Major 18 is reserved for networking */
5 | #define MAX_LINKS 4 /* 18,0 for route updates, 18,1 for SKIP, 18,2 debug tap 18,3 PPP reserved */
6 | #define MAX_QBYTES 32768 /* Maximum bytes in the queue */
7 |
8 | #include
9 |
10 | extern int netlink_attach(int unit, int (*function)(struct sk_buff *skb));
11 | extern int netlink_donothing(struct sk_buff *skb);
12 | extern void netlink_detach(int unit);
13 | extern int netlink_post(int unit, struct sk_buff *skb);
14 | extern int init_netlink(void);
15 |
16 | #define NETLINK_ROUTE 0 /* Routing/device hook */
17 | #define NETLINK_SKIP 1 /* Reserved for ENskip */
18 | #define NETLINK_USERSOCK 2 /* Reserved for user mode socket protocols */
19 | #define NETLINK_FIREWALL 3 /* Firewalling hook */
20 |
21 | #ifdef CONFIG_RTNETLINK
22 | extern void ip_netlink_msg(unsigned long, __u32, __u32, __u32, short, short, char *);
23 | #else
24 | #define ip_netlink_msg(a,b,c,d,e,f,g)
25 | #endif
26 | #endif
27 |
--------------------------------------------------------------------------------
/i386/kernel/i386at/gpl/linux/include/net/nrcall.h:
--------------------------------------------------------------------------------
1 | /* Seperate to keep compilation of protocols.c simpler */
2 | extern void nr_proto_init(struct net_proto *pro);
3 |
--------------------------------------------------------------------------------
/i386/kernel/i386at/gpl/linux/include/net/p8022.h:
--------------------------------------------------------------------------------
1 | struct datalink_proto *register_8022_client(unsigned char type, int (*rcvfunc)(struct sk_buff *, struct device *, struct packet_type *));
2 |
3 |
--------------------------------------------------------------------------------
/i386/kernel/i386at/gpl/linux/include/net/p8022call.h:
--------------------------------------------------------------------------------
1 | /* Separate to keep compilation of Space.c simpler */
2 | extern void p8022_proto_init(struct net_proto *);
3 |
--------------------------------------------------------------------------------
/i386/kernel/i386at/gpl/linux/include/net/psnap.h:
--------------------------------------------------------------------------------
1 | struct datalink_proto *register_snap_client(unsigned char *desc, int (*rcvfunc)(struct sk_buff *, struct device *, struct packet_type *));
2 |
3 |
--------------------------------------------------------------------------------
/i386/kernel/i386at/gpl/linux/include/net/psnapcall.h:
--------------------------------------------------------------------------------
1 | /* Separate to keep compilation of Space.c simpler */
2 | extern void snap_proto_init(struct net_proto *);
3 |
--------------------------------------------------------------------------------
/i386/kernel/i386at/gpl/linux/include/net/rarp.h:
--------------------------------------------------------------------------------
1 | /* linux/net/inet/rarp.h */
2 | #ifndef _RARP_H
3 | #define _RARP_H
4 |
5 | extern int rarp_ioctl(unsigned int cmd, void *arg);
6 | extern int rarp_get_info(char *buffer,
7 | char **start,
8 | off_t offset,
9 | int length,
10 | int dummy);
11 | #endif /* _RARP_H */
12 |
13 |
--------------------------------------------------------------------------------
/i386/kernel/i386at/gpl/linux/include/net/raw.h:
--------------------------------------------------------------------------------
1 | /*
2 | * INET An implementation of the TCP/IP protocol suite for the LINUX
3 | * operating system. INET is implemented using the BSD Socket
4 | * interface as the means of communication with the user level.
5 | *
6 | * Definitions for the RAW-IP module.
7 | *
8 | * Version: @(#)raw.h 1.0.2 05/07/93
9 | *
10 | * Author: Fred N. van Kempen,
11 | *
12 | * This program is free software; you can redistribute it and/or
13 | * modify it under the terms of the GNU General Public License
14 | * as published by the Free Software Foundation; either version
15 | * 2 of the License, or (at your option) any later version.
16 | */
17 | #ifndef _RAW_H
18 | #define _RAW_H
19 |
20 |
21 | extern struct proto raw_prot;
22 |
23 |
24 | extern void raw_err(int type, int code, unsigned char *header, __u32 daddr,
25 | __u32 saddr, struct inet_protocol *protocol);
26 | extern int raw_recvfrom(struct sock *sk, unsigned char *to,
27 | int len, int noblock, unsigned flags,
28 | struct sockaddr_in *sin, int *addr_len);
29 | extern int raw_read(struct sock *sk, unsigned char *buff,
30 | int len, int noblock, unsigned flags);
31 | extern int raw_rcv(struct sock *, struct sk_buff *, struct device *,
32 | __u32, __u32);
33 |
34 | #endif /* _RAW_H */
35 |
--------------------------------------------------------------------------------
/i386/kernel/i386at/gpl/linux/include/net/slhc.h:
--------------------------------------------------------------------------------
1 | #ifndef __NET_SLHC_H
2 | #define __NET_SLHC_H
3 |
4 | extern void slhc_install(void);
5 |
6 | #endif
7 |
--------------------------------------------------------------------------------
/i386/kernel/i386at/gpl/linux/linux_emul.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Defintions for Linux driver emulation.
3 | *
4 | * Copyright (C) 1996 The University of Utah and the Computer Systems
5 | * Laboratory at the University of Utah (CSL)
6 | *
7 | * This program is free software; you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License as published by
9 | * the Free Software Foundation; either version 2, or (at your option)
10 | * any later version.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU General Public License
18 | * along with this program; if not, write to the Free Software
19 | * Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
20 | *
21 | * Author: Shantanu Goel, University of Utah CSL
22 | */
23 |
24 | #include
25 |
26 | extern int linux_auto_config;
27 | extern int linux_intr_pri;
28 |
29 | int linux_to_mach_error (int);
30 | void *alloc_contig_mem (unsigned, unsigned, unsigned, vm_page_t *);
31 | void free_contig_mem (vm_page_t);
32 | void collect_buffer_pages (void);
33 |
--------------------------------------------------------------------------------
/i386/kernel/i386at/gpl/linux/net/iow.h:
--------------------------------------------------------------------------------
1 | #ifndef _ASM_IOW_H
2 | #define _ASM_IOW_H
3 |
4 | /* no longer used */
5 |
6 | #endif
7 |
--------------------------------------------------------------------------------
/i386/kernel/i386at/gpl/linux/scsi/constants.h:
--------------------------------------------------------------------------------
1 | #ifndef _CONSTANTS_H
2 | #define _CONSTANTS_H
3 | extern int print_msg(unsigned char *);
4 | extern void print_status(int);
5 | extern void print_Scsi_Cmnd (Scsi_Cmnd *);
6 | #endif /* def _CONSTANTS_H */
7 |
--------------------------------------------------------------------------------
/i386/kernel/i386at/gpl/linux/scsi/qlogic.h:
--------------------------------------------------------------------------------
1 | #ifndef _QLOGIC_H
2 | #define _QLOGIC_H
3 |
4 | int qlogic_detect(Scsi_Host_Template * );
5 | const char * qlogic_info(struct Scsi_Host *);
6 | int qlogic_command(Scsi_Cmnd *);
7 | int qlogic_queuecommand(Scsi_Cmnd *, void (* done)(Scsi_Cmnd *));
8 | int qlogic_abort(Scsi_Cmnd *);
9 | int qlogic_reset(Scsi_Cmnd *);
10 | int qlogic_biosparam(Disk *, kdev_t, int[]);
11 |
12 | #ifndef NULL
13 | #define NULL (0)
14 | #endif
15 |
16 | #define QLOGIC { \
17 | NULL, \
18 | NULL, \
19 | NULL, \
20 | NULL, \
21 | NULL, \
22 | qlogic_detect, \
23 | NULL, \
24 | qlogic_info, \
25 | qlogic_command, \
26 | qlogic_queuecommand, \
27 | qlogic_abort, \
28 | qlogic_reset, \
29 | NULL, \
30 | qlogic_biosparam, \
31 | 0, \
32 | -1, \
33 | SG_ALL, \
34 | 1, \
35 | 0, \
36 | 0, \
37 | DISABLE_CLUSTERING \
38 | }
39 |
40 | #endif /* _QLOGIC_H */
41 |
--------------------------------------------------------------------------------
/i386/kernel/i386at/gpl/linux/scsi/scsi_debug.h:
--------------------------------------------------------------------------------
1 | #ifndef _SCSI_DEBUG_H
2 |
3 | #include
4 | #include
5 |
6 | int scsi_debug_detect(Scsi_Host_Template *);
7 | int scsi_debug_command(Scsi_Cmnd *);
8 | int scsi_debug_queuecommand(Scsi_Cmnd *, void (*done)(Scsi_Cmnd *));
9 | int scsi_debug_abort(Scsi_Cmnd *);
10 | int scsi_debug_biosparam(Disk *, kdev_t, int[]);
11 | int scsi_debug_reset(Scsi_Cmnd *);
12 | int scsi_debug_proc_info(char *, char **, off_t, int, int, int);
13 |
14 | #ifndef NULL
15 | #define NULL 0
16 | #endif
17 |
18 |
19 | #define SCSI_DEBUG_MAILBOXES 8
20 |
21 | #define SCSI_DEBUG {NULL, NULL, NULL, scsi_debug_proc_info, \
22 | "SCSI DEBUG", scsi_debug_detect, NULL, \
23 | NULL, scsi_debug_command, \
24 | scsi_debug_queuecommand, \
25 | scsi_debug_abort, \
26 | scsi_debug_reset, \
27 | NULL, \
28 | scsi_debug_biosparam, \
29 | SCSI_DEBUG_MAILBOXES, 7, SG_ALL, 1, 0, 1, ENABLE_CLUSTERING}
30 | #endif
31 |
--------------------------------------------------------------------------------
/i386/kernel/i386at/gpl/linux/scsi/scsi_ioctl.h:
--------------------------------------------------------------------------------
1 | #ifndef _SCSI_IOCTL_H
2 | #define _SCSI_IOCTL_H
3 |
4 | #define SCSI_IOCTL_SEND_COMMAND 1
5 | #define SCSI_IOCTL_TEST_UNIT_READY 2
6 | #define SCSI_IOCTL_BENCHMARK_COMMAND 3
7 | #define SCSI_IOCTL_SYNC 4 /* Request synchronous parameters */
8 | /* The door lock/unlock constants are compatible with Sun constants for
9 | the cdrom */
10 | #define SCSI_IOCTL_DOORLOCK 0x5380 /* lock the eject mechanism */
11 | #define SCSI_IOCTL_DOORUNLOCK 0x5381 /* unlock the mechanism */
12 |
13 | #define SCSI_REMOVAL_PREVENT 1
14 | #define SCSI_REMOVAL_ALLOW 0
15 |
16 | extern int scsi_ioctl (Scsi_Device *dev, int cmd, void *arg);
17 | extern int kernel_scsi_ioctl (Scsi_Device *dev, int cmd, void *arg);
18 |
19 | #endif
20 |
21 |
22 |
--------------------------------------------------------------------------------
/i386/kernel/i386at/lprreg.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Mach Operating System
3 | * Copyright (c) 1991,1990 Carnegie Mellon University
4 | * All Rights Reserved.
5 | *
6 | * Permission to use, copy, modify and distribute this software and its
7 | * documentation is hereby granted, provided that both the copyright
8 | * notice and this permission notice appear in all copies of the
9 | * software, derivative works or modified versions, and any portions
10 | * thereof, and that both notices appear in supporting documentation.
11 | *
12 | * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
13 | * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
14 | * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
15 | *
16 | * Carnegie Mellon requests users of this software to return to
17 | *
18 | * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
19 | * School of Computer Science
20 | * Carnegie Mellon University
21 | * Pittsburgh PA 15213-3890
22 | *
23 | * any improvements or extensions that they make and grant Carnegie Mellon
24 | * the rights to redistribute these changes.
25 | */
26 | /*
27 | * Parallel port printer driver v1.0
28 | * All rights reserved.
29 | */
30 |
31 | #define DATA(addr) (addr + 0)
32 | #define STATUS(addr) (addr + 1)
33 | #define INTR_ENAB(addr) (addr + 2)
34 |
--------------------------------------------------------------------------------
/i386/kernel/i386at/phys_mem_grab_page.c:
--------------------------------------------------------------------------------
1 | /*XXX bogus kludge */
2 |
--------------------------------------------------------------------------------
/i386/kernel/imps/cpus.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 1994 The University of Utah and
3 | * the Computer Systems Laboratory at the University of Utah (CSL).
4 | * All rights reserved.
5 | *
6 | * Permission to use, copy, modify and distribute this software is hereby
7 | * granted provided that (1) source code retains these copyright, permission,
8 | * and disclaimer notices, and (2) redistributions including binaries
9 | * reproduce the notices in supporting documentation, and (3) all advertising
10 | * materials mentioning features or use of this software display the following
11 | * acknowledgement: ``This product includes software developed by the
12 | * Computer Systems Laboratory at the University of Utah.''
13 | *
14 | * THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS
15 | * IS" CONDITION. THE UNIVERSITY OF UTAH AND CSL DISCLAIM ANY LIABILITY OF
16 | * ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
17 | *
18 | * CSL requests users of this software to return to csl-dist@cs.utah.edu any
19 | * improvements that they make and grant CSL redistribution rights.
20 | *
21 | * Author: Bryan Ford, University of Utah CSL
22 | */
23 | #define NCPUS 2 /* XXX make it unlimited */
24 | #define MULTIPROCESSOR 1
25 |
--------------------------------------------------------------------------------
/i386/kernel/imps/impsasm.sym:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 1994 The University of Utah and
3 | * the Computer Systems Laboratory at the University of Utah (CSL).
4 | * All rights reserved.
5 | *
6 | * Permission to use, copy, modify and distribute this software is hereby
7 | * granted provided that (1) source code retains these copyright, permission,
8 | * and disclaimer notices, and (2) redistributions including binaries
9 | * reproduce the notices in supporting documentation, and (3) all advertising
10 | * materials mentioning features or use of this software display the following
11 | * acknowledgement: ``This product includes software developed by the
12 | * Computer Systems Laboratory at the University of Utah.''
13 | *
14 | * THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS
15 | * IS" CONDITION. THE UNIVERSITY OF UTAH AND CSL DISCLAIM ANY LIABILITY OF
16 | * ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
17 | *
18 | * CSL requests users of this software to return to csl-dist@cs.utah.edu any
19 | * improvements that they make and grant CSL redistribution rights.
20 | *
21 | * Author: Bryan Ford, University of Utah CSL
22 | */
23 |
24 | #include "apic.h"
25 |
26 | expr APIC_LOCAL_VA
27 |
28 | offset ApicLocalUnit apic_local unit_id
29 |
30 |
--------------------------------------------------------------------------------
/i386/kernel/pc/Makerules:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 1994 The University of Utah and
3 | # the Center for Software Science (CSS). All rights reserved.
4 | #
5 | # Permission to use, copy, modify and distribute this software and its
6 | # documentation is hereby granted, provided that both the copyright
7 | # notice and this permission notice appear in all copies of the
8 | # software, derivative works or modified versions, and any portions
9 | # thereof, and that both notices appear in supporting documentation.
10 | #
11 | # THE UNIVERSITY OF UTAH AND CSS ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS
12 | # IS" CONDITION. THE UNIVERSITY OF UTAH AND CSS DISCLAIM ANY LIABILITY OF
13 | # ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
14 | #
15 | # CSS requests users of this software to return to css-dist@cs.utah.edu any
16 | # improvements that they make and grant CSS redistribution rights.
17 | #
18 | # Author: Bryan Ford, University of Utah CSS
19 | #
20 | ifndef _mach4_i386_kernel_pc_makerules_
21 | _mach4_i386_kernel_pc_makerules = yes
22 |
23 |
24 | CLEAN_FILES += pc_asm.h
25 | i16_real_int.o: pc_asm.h
26 |
27 | include $(MSRCDIR)/kernel/util/Makerules
28 |
29 |
30 | endif
31 |
--------------------------------------------------------------------------------
/i386/kernel/pc/NOTES:
--------------------------------------------------------------------------------
1 |
2 |
3 | i16_raw.c:
4 | Provides a default implementation
5 | of real/pmode switching code.
6 | Assumes that, as far as it's concerned,
7 | low linear address always map to physical addresses.
8 | (The low linear mappings can be changed,
9 | but must be changed back before switching back to real mode.)
10 |
11 | Provides:
12 | i16_raw_switch_to_pmode()
13 | i16_raw_switch_to_real_mode()
14 |
15 | i16_raw_start()
16 | Called in real mode.
17 | Initializes the pmode switching system,
18 | switches to pmode for the first time,
19 | and calls the 32-bit function raw_start().
20 |
21 | Depends on:
22 |
23 | paging.h:
24 | raw_paging_enable()
25 | raw_paging_disable()
26 | raw_paging_init()
27 |
28 | a20.h:
29 | i16_enable_a20()
30 | i16_disable_a20()
31 |
32 | real.h:
33 | real_cs
34 |
35 |
--------------------------------------------------------------------------------
/i386/kernel/pc/exit.c:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 1995-1994 The University of Utah and
3 | * the Computer Systems Laboratory at the University of Utah (CSL).
4 | * All rights reserved.
5 | *
6 | * Permission to use, copy, modify and distribute this software is hereby
7 | * granted provided that (1) source code retains these copyright, permission,
8 | * and disclaimer notices, and (2) redistributions including binaries
9 | * reproduce the notices in supporting documentation, and (3) all advertising
10 | * materials mentioning features or use of this software display the following
11 | * acknowledgement: ``This product includes software developed by the
12 | * Computer Systems Laboratory at the University of Utah.''
13 | *
14 | * THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS
15 | * IS" CONDITION. THE UNIVERSITY OF UTAH AND CSL DISCLAIM ANY LIABILITY OF
16 | * ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
17 | *
18 | * CSL requests users of this software to return to csl-dist@cs.utah.edu any
19 | * improvements that they make and grant CSL redistribution rights.
20 | *
21 | * Author: Bryan Ford, University of Utah CSL
22 | */
23 |
24 | #include "real.h"
25 |
26 | void _exit(int rc)
27 | {
28 | about_to_die(rc);
29 |
30 | (*real_exit)(rc);
31 | }
32 |
33 |
--------------------------------------------------------------------------------
/i386/kernel/pc/i16/i16_raw_test_a20.S:
--------------------------------------------------------------------------------
1 |
2 | #include
3 |
4 | .text
5 | .code16
6 |
7 | /*
8 | * Test the A20 address line; return true if it is enabled.
9 | */
10 | ENTRY(i16_raw_test_a20)
11 | xorw %ax,%ax
12 | movw %ax,%fs
13 | notw %ax
14 | movw %ax,%gs
15 |
16 | /* See if the values in already in the corresponding locations
17 | are the same. */
18 | movw %fs:0,%ax
19 | cmpw %gs:16,%ax
20 | jnz 1f
21 |
22 | /* Yes; try changing one and see if they're still the same. */
23 | movw %ax,%dx
24 | notw %ax
25 | movw %ax,%fs:0
26 | cmpw %gs:16,%ax
27 | movw %dx,%fs:0
28 | jnz 1f
29 |
30 | xorl %eax,%eax
31 | ret
32 | 1:
33 | movl $1,%eax
34 | ret
35 |
36 |
--------------------------------------------------------------------------------
/i386/kernel/pc/i16/phys_mem_sources.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 1995-1994 The University of Utah and
3 | * the Computer Systems Laboratory at the University of Utah (CSL).
4 | * All rights reserved.
5 | *
6 | * Permission to use, copy, modify and distribute this software is hereby
7 | * granted provided that (1) source code retains these copyright, permission,
8 | * and disclaimer notices, and (2) redistributions including binaries
9 | * reproduce the notices in supporting documentation, and (3) all advertising
10 | * materials mentioning features or use of this software display the following
11 | * acknowledgement: ``This product includes software developed by the
12 | * Computer Systems Laboratory at the University of Utah.''
13 | *
14 | * THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS
15 | * IS" CONDITION. THE UNIVERSITY OF UTAH AND CSL DISCLAIM ANY LIABILITY OF
16 | * ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
17 | *
18 | * CSL requests users of this software to return to csl-dist@cs.utah.edu any
19 | * improvements that they make and grant CSL redistribution rights.
20 | *
21 | * Author: Bryan Ford, University of Utah CSL
22 | */
23 |
24 | pms(ext_mem)
25 |
26 |
--------------------------------------------------------------------------------
/i386/kernel/pc/rv86/config.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 1995 The University of Utah and
3 | * the Computer Systems Laboratory at the University of Utah (CSL).
4 | * All rights reserved.
5 | *
6 | * Permission to use, copy, modify and distribute this software is hereby
7 | * granted provided that (1) source code retains these copyright, permission,
8 | * and disclaimer notices, and (2) redistributions including binaries
9 | * reproduce the notices in supporting documentation, and (3) all advertising
10 | * materials mentioning features or use of this software display the following
11 | * acknowledgement: ``This product includes software developed by the
12 | * Computer Systems Laboratory at the University of Utah.''
13 | *
14 | * THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS
15 | * IS" CONDITION. THE UNIVERSITY OF UTAH AND CSL DISCLAIM ANY LIABILITY OF
16 | * ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
17 | *
18 | * CSL requests users of this software to return to csl-dist@cs.utah.edu any
19 | * improvements that they make and grant CSL redistribution rights.
20 | *
21 | * Author: Bryan Ford, University of Utah CSL
22 | */
23 |
24 | #include_next "config.h"
25 |
26 | #ifndef ENABLE_REAL_TSS
27 | #define ENABLE_REAL_TSS
28 | #endif
29 |
30 |
--------------------------------------------------------------------------------
/i386/kernel/util/NOTES:
--------------------------------------------------------------------------------
1 |
2 | raw_switch:
3 |
4 | Provides the code to switch between real and protected mode.
5 | Switches between the environments "completely":
6 | e.g. when switching to protected mode,
7 | all the normal protected-mode state for that environment is set up.
8 |
9 | raw_pmode:
10 |
11 | i16_raw_enter_pmode()
12 | Enters protoected mode from real mode.
13 | Does not initialize IDT or TSS or anything else;
14 | just gets the system into protected mode
15 | with a simple temporary GDT.
16 | Returns with interrupts turned off
17 | (and they'd better stay off until there's a valid pmode IDT!)
18 |
19 | i16_raw_leave_pmode()
20 | Assumes paging is turned off.
21 | Returns with interrupts turned off;
22 | they can probably be turned back on at any time.
23 |
24 | Depends on:
25 | i16_die()
26 | A20 enable/disable code (e.g. raw_a20).
27 | gdt.h: KERNEL_16_CS, KERNEL_16_DS
28 |
29 |
30 |
31 | vm_param.h:
32 |
33 | Must export kvtolin(), lintokv()
34 |
35 |
36 |
--------------------------------------------------------------------------------
/i386/kernel/util/cpu_subs.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 1995-1994 The University of Utah and
3 | * the Computer Systems Laboratory at the University of Utah (CSL).
4 | * All rights reserved.
5 | *
6 | * Permission to use, copy, modify and distribute this software is hereby
7 | * granted provided that (1) source code retains these copyright, permission,
8 | * and disclaimer notices, and (2) redistributions including binaries
9 | * reproduce the notices in supporting documentation, and (3) all advertising
10 | * materials mentioning features or use of this software display the following
11 | * acknowledgement: ``This product includes software developed by the
12 | * Computer Systems Laboratory at the University of Utah.''
13 | *
14 | * THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS
15 | * IS" CONDITION. THE UNIVERSITY OF UTAH AND CSL DISCLAIM ANY LIABILITY OF
16 | * ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
17 | *
18 | * CSL requests users of this software to return to csl-dist@cs.utah.edu any
19 | * improvements that they make and grant CSL redistribution rights.
20 | *
21 | * Author: Bryan Ford, University of Utah CSL
22 | */
23 |
24 | cpu_sub(tables)
25 |
26 | #include_next "cpu_subs.h"
27 |
--------------------------------------------------------------------------------
/i386/kernel/util/crtn.S:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 1995 The University of Utah and
3 | * the Computer Systems Laboratory at the University of Utah (CSL).
4 | * All rights reserved.
5 | *
6 | * Permission to use, copy, modify and distribute this software is hereby
7 | * granted provided that (1) source code retains these copyright, permission,
8 | * and disclaimer notices, and (2) redistributions including binaries
9 | * reproduce the notices in supporting documentation, and (3) all advertising
10 | * materials mentioning features or use of this software display the following
11 | * acknowledgement: ``This product includes software developed by the
12 | * Computer Systems Laboratory at the University of Utah.''
13 | *
14 | * THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS
15 | * IS" CONDITION. THE UNIVERSITY OF UTAH AND CSL DISCLAIM ANY LIABILITY OF
16 | * ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
17 | *
18 | * CSL requests users of this software to return to csl-dist@cs.utah.edu any
19 | * improvements that they make and grant CSL redistribution rights.
20 | *
21 | * Author: Bryan Ford, University of Utah CSL
22 | */
23 |
24 | #ifdef __ELF__
25 |
26 | #include
27 |
28 |
29 | .section .anno,"aw",@progbits
30 | .globl __ANNO_END__
31 | __ANNO_END__:
32 |
33 | #endif /* __ELF__ */
34 |
--------------------------------------------------------------------------------
/i386/kernel/util/crtn.S.orig:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 1995 The University of Utah and
3 | * the Computer Systems Laboratory at the University of Utah (CSL).
4 | * All rights reserved.
5 | *
6 | * Permission to use, copy, modify and distribute this software is hereby
7 | * granted provided that (1) source code retains these copyright, permission,
8 | * and disclaimer notices, and (2) redistributions including binaries
9 | * reproduce the notices in supporting documentation, and (3) all advertising
10 | * materials mentioning features or use of this software display the following
11 | * acknowledgement: ``This product includes software developed by the
12 | * Computer Systems Laboratory at the University of Utah.''
13 | *
14 | * THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS
15 | * IS" CONDITION. THE UNIVERSITY OF UTAH AND CSL DISCLAIM ANY LIABILITY OF
16 | * ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
17 | *
18 | * CSL requests users of this software to return to csl-dist@cs.utah.edu any
19 | * improvements that they make and grant CSL redistribution rights.
20 | *
21 | * Author: Bryan Ford, University of Utah CSL
22 | */
23 |
24 | #ifdef ELF
25 |
26 | #include
27 |
28 |
29 | .section .anno,"aw",@progbits
30 | .globl __ANNO_END__
31 | __ANNO_END__:
32 |
33 | #endif ELF
34 |
--------------------------------------------------------------------------------
/i386/kernel/util/i16/i16_die.c:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 1995-1994 The University of Utah and
3 | * the Computer Systems Laboratory at the University of Utah (CSL).
4 | * All rights reserved.
5 | *
6 | * Permission to use, copy, modify and distribute this software is hereby
7 | * granted provided that (1) source code retains these copyright, permission,
8 | * and disclaimer notices, and (2) redistributions including binaries
9 | * reproduce the notices in supporting documentation, and (3) all advertising
10 | * materials mentioning features or use of this software display the following
11 | * acknowledgement: ``This product includes software developed by the
12 | * Computer Systems Laboratory at the University of Utah.''
13 | *
14 | * THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS
15 | * IS" CONDITION. THE UNIVERSITY OF UTAH AND CSL DISCLAIM ANY LIABILITY OF
16 | * ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
17 | *
18 | * CSL requests users of this software to return to csl-dist@cs.utah.edu any
19 | * improvements that they make and grant CSL redistribution rights.
20 | *
21 | * Author: Bryan Ford, University of Utah CSL
22 | */
23 |
24 | #include
25 |
26 | CODE16
27 |
28 | void i16_die(char *mes)
29 | {
30 | if (mes)
31 | i16_puts(mes);
32 |
33 | i16_exit(mes != 0);
34 | }
35 |
--------------------------------------------------------------------------------
/i386/kernel/util/i386_asm.sym:
--------------------------------------------------------------------------------
1 | /*
2 | * MOSS - DOS extender built from the Mach 4 source tree
3 | * Copyright (C) 1995-1994 Sleepless Software
4 | *
5 | * This program is free software; you can redistribute it and/or modify
6 | * it under the terms of the GNU General Public License as published by
7 | * the Free Software Foundation; either version 2 of the License, or
8 | * (at your option) any later version.
9 | *
10 | * This program is distributed in the hope that it will be useful,
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 | * GNU General Public License for more details.
14 | *
15 | * You should have received a copy of the GNU General Public License
16 | * along with this program; if not, write to the Free Software
17 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18 | *
19 | * Author: Bryan Ford
20 | */
21 |
22 | #include
23 |
24 | #include "gdt.h"
25 |
26 | offset i386_tss tss esp0
27 | offset i386_tss tss ss
28 | size i386_tss tss
29 |
30 | expr KERNEL_CS
31 | expr KERNEL_DS
32 | expr KERNEL_16_CS
33 | expr KERNEL_16_DS
34 | expr LINEAR_CS
35 | expr LINEAR_DS
36 |
37 |
--------------------------------------------------------------------------------
/i386/kernel/util/trap_dump_die.c:
--------------------------------------------------------------------------------
1 |
2 | #include "trap.h"
3 |
4 | void trap_dump_die(struct trap_state *st)
5 | {
6 | about_to_die(1);
7 |
8 | trap_dump(st);
9 |
10 | die("terminated due to trap\n");
11 | }
12 |
13 |
--------------------------------------------------------------------------------
/i386/kernel/util/trap_handler.S:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 1995-1994 The University of Utah and
3 | * the Computer Systems Laboratory at the University of Utah (CSL).
4 | * All rights reserved.
5 | *
6 | * Permission to use, copy, modify and distribute this software is hereby
7 | * granted provided that (1) source code retains these copyright, permission,
8 | * and disclaimer notices, and (2) redistributions including binaries
9 | * reproduce the notices in supporting documentation, and (3) all advertising
10 | * materials mentioning features or use of this software display the following
11 | * acknowledgement: ``This product includes software developed by the
12 | * Computer Systems Laboratory at the University of Utah.''
13 | *
14 | * THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS
15 | * IS" CONDITION. THE UNIVERSITY OF UTAH AND CSL DISCLAIM ANY LIABILITY OF
16 | * ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
17 | *
18 | * CSL requests users of this software to return to csl-dist@cs.utah.edu any
19 | * improvements that they make and grant CSL redistribution rights.
20 | *
21 | * Author: Bryan Ford, University of Utah CSL
22 | */
23 |
24 | #include
25 |
26 | #include "trap.h"
27 |
28 | .text
29 |
30 | ENTRY(trap_handler)
31 | UNEXPECTED_TRAP
32 |
33 |
--------------------------------------------------------------------------------
/i386/kernel/util/tss.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 1995-1994 The University of Utah and
3 | * the Computer Systems Laboratory at the University of Utah (CSL).
4 | * All rights reserved.
5 | *
6 | * Permission to use, copy, modify and distribute this software is hereby
7 | * granted provided that (1) source code retains these copyright, permission,
8 | * and disclaimer notices, and (2) redistributions including binaries
9 | * reproduce the notices in supporting documentation, and (3) all advertising
10 | * materials mentioning features or use of this software display the following
11 | * acknowledgement: ``This product includes software developed by the
12 | * Computer Systems Laboratory at the University of Utah.''
13 | *
14 | * THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS
15 | * IS" CONDITION. THE UNIVERSITY OF UTAH AND CSL DISCLAIM ANY LIABILITY OF
16 | * ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
17 | *
18 | * CSL requests users of this software to return to csl-dist@cs.utah.edu any
19 | * improvements that they make and grant CSL redistribution rights.
20 | *
21 | * Author: Bryan Ford, University of Utah CSL
22 | */
23 | #ifndef _I386_KTSS_
24 | #define _I386_KTSS_
25 |
26 | #include
27 |
28 | extern struct i386_tss ktss;
29 |
30 | #endif _I386_KTSS_
31 |
--------------------------------------------------------------------------------
/i386/libmach/Makefile.in:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 1994 The University of Utah and
3 | # the Computer Systems Laboratory (CSL). All rights reserved.
4 | #
5 | # Permission to use, copy, modify and distribute this software and its
6 | # documentation is hereby granted, provided that both the copyright
7 | # notice and this permission notice appear in all copies of the
8 | # software, derivative works or modified versions, and any portions
9 | # thereof, and that both notices appear in supporting documentation.
10 | #
11 | # THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS
12 | # IS" CONDITION. THE UNIVERSITY OF UTAH AND CSL DISCLAIM ANY LIABILITY OF
13 | # ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
14 | #
15 | # CSL requests users of this software to return to csl-dist@cs.utah.edu any
16 | # improvements that they make and grant CSL redistribution rights.
17 | #
18 | # Author: Bryan Ford, University of Utah CSL
19 | #
20 |
21 | #### Start of configuration section ####
22 |
23 | GSRCDIR = @top_gsrcdir@
24 | MSRCDIR = @top_srcdir@
25 | OBJDIR = @top_objdir@
26 |
27 | prefix = @prefix@
28 | exec_prefix = @exec_prefix@
29 |
30 | include $(OBJDIR)/Makeconf
31 |
32 | ##### End of configuration section #####
33 |
34 | include $(MSRCDIR)/libmach/Makerules
35 |
36 |
--------------------------------------------------------------------------------
/i386/libmach/c/Makefile.in:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 1995-1994 The University of Utah and
3 | # the Computer Systems Laboratory (CSL). All rights reserved.
4 | #
5 | # Permission to use, copy, modify and distribute this software and its
6 | # documentation is hereby granted, provided that both the copyright
7 | # notice and this permission notice appear in all copies of the
8 | # software, derivative works or modified versions, and any portions
9 | # thereof, and that both notices appear in supporting documentation.
10 | #
11 | # THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS
12 | # IS" CONDITION. THE UNIVERSITY OF UTAH AND CSL DISCLAIM ANY LIABILITY OF
13 | # ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
14 | #
15 | # CSL requests users of this software to return to csl-dist@cs.utah.edu any
16 | # improvements that they make and grant CSL redistribution rights.
17 | #
18 | # Author: Bryan Ford, University of Utah CSL
19 | #
20 | #### Start of configuration section ####
21 |
22 | GSRCDIR = @top_gsrcdir@
23 | MSRCDIR = @top_srcdir@
24 | OBJDIR = @top_objdir@
25 |
26 | prefix = @prefix@
27 | exec_prefix = @exec_prefix@
28 |
29 | include $(OBJDIR)/Makeconf
30 |
31 | ##### End of configuration section #####
32 |
33 | include $(MSRCDIR)/libmach/c/Makerules
34 |
35 |
--------------------------------------------------------------------------------
/i386/libmach/c/Makerules:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 1995-1994 The University of Utah and
3 | # the Computer Systems Laboratory (CSL). All rights reserved.
4 | #
5 | # Permission to use, copy, modify and distribute this software and its
6 | # documentation is hereby granted, provided that both the copyright
7 | # notice and this permission notice appear in all copies of the
8 | # software, derivative works or modified versions, and any portions
9 | # thereof, and that both notices appear in supporting documentation.
10 | #
11 | # THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS
12 | # IS" CONDITION. THE UNIVERSITY OF UTAH AND CSL DISCLAIM ANY LIABILITY OF
13 | # ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
14 | #
15 | # CSL requests users of this software to return to csl-dist@cs.utah.edu any
16 | # improvements that they make and grant CSL redistribution rights.
17 | #
18 | # Author: Bryan Ford, University of Utah CSL
19 | #
20 | ifndef _mach4_i386_libmach_c_makerules_
21 | _mach4_i386_libmach_c_makerules_ = yes
22 |
23 | SRCDIRS += $(MSRCDIR)/libmach/c
24 |
25 | TARGET := libmach_c.a
26 |
27 | include $(MSRCDIR)/Makerules
28 | include $(GSRCDIR)/libmach/c/Makerules
29 |
30 | endif
31 |
--------------------------------------------------------------------------------
/i386/libmach/c/proc_reg.c:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 1995-1994 The University of Utah and
3 | * the Computer Systems Laboratory at the University of Utah (CSL).
4 | * All rights reserved.
5 | *
6 | * Permission to use, copy, modify and distribute this software is hereby
7 | * granted provided that (1) source code retains these copyright, permission,
8 | * and disclaimer notices, and (2) redistributions including binaries
9 | * reproduce the notices in supporting documentation, and (3) all advertising
10 | * materials mentioning features or use of this software display the following
11 | * acknowledgement: ``This product includes software developed by the
12 | * Computer Systems Laboratory at the University of Utah.''
13 | *
14 | * THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS
15 | * IS" CONDITION. THE UNIVERSITY OF UTAH AND CSL DISCLAIM ANY LIABILITY OF
16 | * ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
17 | *
18 | * CSL requests users of this software to return to csl-dist@cs.utah.edu any
19 | * improvements that they make and grant CSL redistribution rights.
20 | *
21 | * Author: Bryan Ford, University of Utah CSL
22 | */
23 |
24 | #define MACH_INLINE
25 | #include
26 |
27 |
--------------------------------------------------------------------------------
/i386/libmach/exec/Makefile.in:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 1994 The University of Utah and
3 | # the Computer Systems Laboratory (CSL). All rights reserved.
4 | #
5 | # Permission to use, copy, modify and distribute this software and its
6 | # documentation is hereby granted, provided that both the copyright
7 | # notice and this permission notice appear in all copies of the
8 | # software, derivative works or modified versions, and any portions
9 | # thereof, and that both notices appear in supporting documentation.
10 | #
11 | # THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS
12 | # IS" CONDITION. THE UNIVERSITY OF UTAH AND CSL DISCLAIM ANY LIABILITY OF
13 | # ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
14 | #
15 | # CSL requests users of this software to return to csl-dist@cs.utah.edu any
16 | # improvements that they make and grant CSL redistribution rights.
17 | #
18 | # Author: Bryan Ford, University of Utah CSL
19 | #
20 |
21 | #### Start of configuration section ####
22 |
23 | GSRCDIR = @top_gsrcdir@
24 | MSRCDIR = @top_srcdir@
25 | OBJDIR = @top_objdir@
26 |
27 | prefix = @prefix@
28 | exec_prefix = @exec_prefix@
29 |
30 | include $(OBJDIR)/Makeconf
31 |
32 | ##### End of configuration section #####
33 |
34 | include $(MSRCDIR)/libmach/exec/Makerules
35 |
36 |
--------------------------------------------------------------------------------
/i386/libmach/exec/Makerules:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 1994 The University of Utah and
3 | # the Computer Systems Laboratory (CSL). All rights reserved.
4 | #
5 | # Permission to use, copy, modify and distribute this software and its
6 | # documentation is hereby granted, provided that both the copyright
7 | # notice and this permission notice appear in all copies of the
8 | # software, derivative works or modified versions, and any portions
9 | # thereof, and that both notices appear in supporting documentation.
10 | #
11 | # THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS
12 | # IS" CONDITION. THE UNIVERSITY OF UTAH AND CSL DISCLAIM ANY LIABILITY OF
13 | # ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
14 | #
15 | # CSL requests users of this software to return to csl-dist@cs.utah.edu any
16 | # improvements that they make and grant CSL redistribution rights.
17 | #
18 | # Author: Bryan Ford, University of Utah CSL
19 | #
20 |
21 | SRCDIRS += $(MSRCDIR)/libmach/exec
22 |
23 | include $(MSRCDIR)/Makerules
24 | include $(GSRCDIR)/libmach/exec/Makerules
25 |
26 |
--------------------------------------------------------------------------------
/i386/libmach/exec/objfmts.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 1995 The University of Utah and
3 | * the Computer Systems Laboratory at the University of Utah (CSL).
4 | * All rights reserved.
5 | *
6 | * Permission to use, copy, modify and distribute this software is hereby
7 | * granted provided that (1) source code retains these copyright, permission,
8 | * and disclaimer notices, and (2) redistributions including binaries
9 | * reproduce the notices in supporting documentation, and (3) all advertising
10 | * materials mentioning features or use of this software display the following
11 | * acknowledgement: ``This product includes software developed by the
12 | * Computer Systems Laboratory at the University of Utah.''
13 | *
14 | * THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS
15 | * IS" CONDITION. THE UNIVERSITY OF UTAH AND CSL DISCLAIM ANY LIABILITY OF
16 | * ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
17 | *
18 | * CSL requests users of this software to return to csl-dist@cs.utah.edu any
19 | * improvements that they make and grant CSL redistribution rights.
20 | *
21 | * Author: Bryan Ford, University of Utah CSL
22 | */
23 |
24 | objfmt(aout)
25 |
26 | #include_next "objfmts.h"
27 |
28 |
--------------------------------------------------------------------------------
/i386/libmach/mach_i386.pres:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 1994 The University of Utah and
3 | * the Computer Systems Laboratory at the University of Utah (CSL).
4 | * All rights reserved.
5 | *
6 | * Permission to use, copy, modify and distribute this software is hereby
7 | * granted provided that (1) source code retains these copyright, permission,
8 | * and disclaimer notices, and (2) redistributions including binaries
9 | * reproduce the notices in supporting documentation, and (3) all advertising
10 | * materials mentioning features or use of this software display the following
11 | * acknowledgement: ``This product includes software developed by the
12 | * Computer Systems Laboratory at the University of Utah.''
13 | *
14 | * THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS
15 | * IS" CONDITION. THE UNIVERSITY OF UTAH AND CSL DISCLAIM ANY LIABILITY OF
16 | * ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
17 | *
18 | * CSL requests users of this software to return to csl-dist@cs.utah.edu any
19 | * improvements that they make and grant CSL redistribution rights.
20 | *
21 | * Author: Bryan Ford, University of Utah CSL
22 | */
23 | #include
24 |
--------------------------------------------------------------------------------
/i386/libmach/syscall_sw.S:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 1994 The University of Utah and
3 | * the Computer Systems Laboratory at the University of Utah (CSL).
4 | * All rights reserved.
5 | *
6 | * Permission to use, copy, modify and distribute this software is hereby
7 | * granted provided that (1) source code retains these copyright, permission,
8 | * and disclaimer notices, and (2) redistributions including binaries
9 | * reproduce the notices in supporting documentation, and (3) all advertising
10 | * materials mentioning features or use of this software display the following
11 | * acknowledgement: ``This product includes software developed by the
12 | * Computer Systems Laboratory at the University of Utah.''
13 | *
14 | * THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS
15 | * IS" CONDITION. THE UNIVERSITY OF UTAH AND CSL DISCLAIM ANY LIABILITY OF
16 | * ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
17 | *
18 | * CSL requests users of this software to return to csl-dist@cs.utah.edu any
19 | * improvements that they make and grant CSL redistribution rights.
20 | *
21 | * Author: Bryan Ford, University of Utah CSL
22 | */
23 |
24 | #include
25 |
26 |
--------------------------------------------------------------------------------
/include/mach/inline.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 1994 The University of Utah and
3 | * the Center for Software Science (CSS). All rights reserved.
4 | *
5 | * Permission to use, copy, modify and distribute this software and its
6 | * documentation is hereby granted, provided that both the copyright
7 | * notice and this permission notice appear in all copies of the
8 | * software, derivative works or modified versions, and any portions
9 | * thereof, and that both notices appear in supporting documentation.
10 | *
11 | * THE UNIVERSITY OF UTAH AND CSS ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS
12 | * IS" CONDITION. THE UNIVERSITY OF UTAH AND CSS DISCLAIM ANY LIABILITY OF
13 | * ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
14 | *
15 | * CSS requests users of this software to return to css-dist@cs.utah.edu any
16 | * improvements that they make and grant CSS redistribution rights.
17 | *
18 | * Author: Bryan Ford, University of Utah CSS
19 | */
20 | #ifndef _MACH_INLINE_H_
21 | #define _MACH_INLINE_H_
22 |
23 | #ifndef MACH_INLINE
24 | #define MACH_INLINE extern __inline
25 | #endif
26 |
27 | #endif /* _MACH_INLINE_H_ */
28 |
--------------------------------------------------------------------------------
/include/mach/macro_help.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Mach Operating System
3 | * Copyright (c) 1988 Carnegie-Mellon University
4 | * All rights reserved. The CMU software License Agreement specifies
5 | * the terms and conditions for use and redistribution.
6 | */
7 |
8 | #ifndef _MACRO_HELP_H_
9 | #define _MACRO_HELP_H_ 1
10 |
11 | #define MACRO_BEGIN do {
12 | #define MACRO_END } while (0)
13 |
14 | #define MACRO_RETURN if (1) return
15 |
16 | #endif /* _MACRO_HELP_H_ */
17 |
18 |
19 |
--------------------------------------------------------------------------------
/include/mach/rpc.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 1993,1994 The University of Utah and
3 | * the Computer Systems Laboratory (CSL). All rights reserved.
4 | *
5 | * Permission to use, copy, modify and distribute this software and its
6 | * documentation is hereby granted, provided that both the copyright
7 | * notice and this permission notice appear in all copies of the
8 | * software, derivative works or modified versions, and any portions
9 | * thereof, and that both notices appear in supporting documentation.
10 | *
11 | * THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS
12 | * IS" CONDITION. THE UNIVERSITY OF UTAH AND CSL DISCLAIM ANY LIABILITY OF
13 | * ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
14 | *
15 | * CSL requests users of this software to return to csl-dist@cs.utah.edu any
16 | * improvements that they make and grant CSL redistribution rights.
17 | */
18 |
19 | #ifndef MACH_RPC_H
20 | #define MACH_RPC_H
21 |
22 | #include
23 | #include
24 | #include
25 |
26 | /*
27 | * Description of a port passed up by the leaky-register RPC path
28 | * when it needs to perform translation.
29 | */
30 | struct rpc_port_desc {
31 | mach_port_t name;
32 | mach_msg_type_name_t msgt_name;
33 | };
34 |
35 | #endif /* MACH_RPC_H */
36 |
--------------------------------------------------------------------------------
/include/mach/sa/a.out.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 1994 The University of Utah and
3 | * the Computer Systems Laboratory at the University of Utah (CSL).
4 | * All rights reserved.
5 | *
6 | * Permission to use, copy, modify and distribute this software is hereby
7 | * granted provided that (1) source code retains these copyright, permission,
8 | * and disclaimer notices, and (2) redistributions including binaries
9 | * reproduce the notices in supporting documentation, and (3) all advertising
10 | * materials mentioning features or use of this software display the following
11 | * acknowledgement: ``This product includes software developed by the
12 | * Computer Systems Laboratory at the University of Utah.''
13 | *
14 | * THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS
15 | * IS" CONDITION. THE UNIVERSITY OF UTAH AND CSL DISCLAIM ANY LIABILITY OF
16 | * ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
17 | *
18 | * CSL requests users of this software to return to csl-dist@cs.utah.edu any
19 | * improvements that they make and grant CSL redistribution rights.
20 | *
21 | * Author: Bryan Ford, University of Utah CSL
22 | */
23 | #ifndef _MACH_SA_A_OUT_H_
24 | #define _MACH_SA_A_OUT_H_
25 |
26 | #include
27 |
28 | #endif _MACH_SA_A_OUT_H_
29 |
--------------------------------------------------------------------------------
/include/mach/sa/alloca.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 1994 The University of Utah and
3 | * the Computer Systems Laboratory (CSL). All rights reserved.
4 | *
5 | * Permission to use, copy, modify and distribute this software and its
6 | * documentation is hereby granted, provided that both the copyright
7 | * notice and this permission notice appear in all copies of the
8 | * software, derivative works or modified versions, and any portions
9 | * thereof, and that both notices appear in supporting documentation.
10 | *
11 | * THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS
12 | * IS" CONDITION. THE UNIVERSITY OF UTAH AND CSL DISCLAIM ANY LIABILITY OF
13 | * ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
14 | *
15 | * CSL requests users of this software to return to csl-dist@cs.utah.edu any
16 | * improvements that they make and grant CSL redistribution rights.
17 | *
18 | * Author: Bryan Ford, University of Utah CSL
19 | */
20 | #ifndef _MACH_ALLOCA_H_
21 | #define _MACH_ALLOCA_H_
22 |
23 | #define alloca(size) __builtin_alloca(size)
24 |
25 | #endif _MACH_ALLOCA_H_
26 |
--------------------------------------------------------------------------------
/include/mach/sa/fcntl.h:
--------------------------------------------------------------------------------
1 | #ifndef _MACH_SA_FCNTL_H_
2 | #define _MACH_SA_FCNTL_H_
3 |
4 | #include
5 |
6 | #define O_ACCMODE 0x0003
7 | #define O_RDONLY 0x0000
8 | #define O_WRONLY 0x0001
9 | #define O_RDWR 0x0002
10 |
11 | #define O_CREAT 0x0010
12 | #define O_TRUNC 0x0020
13 | #define O_APPEND 0x0040
14 | #define O_EXCL 0x0080
15 |
16 | __BEGIN_DECLS
17 |
18 | int open(const char *__name, int __mode, ...);
19 |
20 | __END_DECLS
21 |
22 | #endif /* _MACH_SA_FCNTL_H_ */
23 |
--------------------------------------------------------------------------------
/include/mach/sa/memory.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 1994 The University of Utah and
3 | * the Computer Systems Laboratory (CSL). All rights reserved.
4 | *
5 | * Permission to use, copy, modify and distribute this software and its
6 | * documentation is hereby granted, provided that both the copyright
7 | * notice and this permission notice appear in all copies of the
8 | * software, derivative works or modified versions, and any portions
9 | * thereof, and that both notices appear in supporting documentation.
10 | *
11 | * THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS
12 | * IS" CONDITION. THE UNIVERSITY OF UTAH AND CSL DISCLAIM ANY LIABILITY OF
13 | * ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
14 | *
15 | * CSL requests users of this software to return to csl-dist@cs.utah.edu any
16 | * improvements that they make and grant CSL redistribution rights.
17 | *
18 | * Author: Bryan Ford, University of Utah CSL
19 | */
20 | #ifndef _MACH_MEMORY_H_
21 | #define _MACH_MEMORY_H_
22 |
23 | #include
24 |
25 | #endif _MACH_MEMORY_H_
26 |
--------------------------------------------------------------------------------
/include/mach/sa/stddef.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 1994 The University of Utah and
3 | * the Computer Systems Laboratory (CSL). All rights reserved.
4 | *
5 | * Permission to use, copy, modify and distribute this software and its
6 | * documentation is hereby granted, provided that both the copyright
7 | * notice and this permission notice appear in all copies of the
8 | * software, derivative works or modified versions, and any portions
9 | * thereof, and that both notices appear in supporting documentation.
10 | *
11 | * THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS
12 | * IS" CONDITION. THE UNIVERSITY OF UTAH AND CSL DISCLAIM ANY LIABILITY OF
13 | * ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
14 | *
15 | * CSL requests users of this software to return to csl-dist@cs.utah.edu any
16 | * improvements that they make and grant CSL redistribution rights.
17 | *
18 | * Author: Bryan Ford, University of Utah CSL
19 | */
20 | #ifndef _MACH_STDDEF_H_
21 | #define _MACH_STDDEF_H_
22 |
23 |
24 | #endif _MACH_STDDEF_H_
25 |
--------------------------------------------------------------------------------
/include/mach/sa/strings.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 1994 The University of Utah and
3 | * the Computer Systems Laboratory at the University of Utah (CSL).
4 | * All rights reserved.
5 | *
6 | * Permission to use, copy, modify and distribute this software is hereby
7 | * granted provided that (1) source code retains these copyright, permission,
8 | * and disclaimer notices, and (2) redistributions including binaries
9 | * reproduce the notices in supporting documentation, and (3) all advertising
10 | * materials mentioning features or use of this software display the following
11 | * acknowledgement: ``This product includes software developed by the
12 | * Computer Systems Laboratory at the University of Utah.''
13 | *
14 | * THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS
15 | * IS" CONDITION. THE UNIVERSITY OF UTAH AND CSL DISCLAIM ANY LIABILITY OF
16 | * ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
17 | *
18 | * CSL requests users of this software to return to csl-dist@cs.utah.edu any
19 | * improvements that they make and grant CSL redistribution rights.
20 | *
21 | * Author: Bryan Ford, University of Utah CSL
22 | */
23 | #ifndef _MACH_STRINGS_H_
24 | #define _MACH_STRINGS_H_
25 |
26 | #include
27 |
28 | #endif _MACH_STRINGS_H_
29 |
--------------------------------------------------------------------------------
/include/mach/sa/time.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 1995 The University of Utah and
3 | * the Computer Systems Laboratory at the University of Utah (CSL).
4 | * All rights reserved.
5 | *
6 | * Permission to use, copy, modify and distribute this software is hereby
7 | * granted provided that (1) source code retains these copyright, permission,
8 | * and disclaimer notices, and (2) redistributions including binaries
9 | * reproduce the notices in supporting documentation, and (3) all advertising
10 | * materials mentioning features or use of this software display the following
11 | * acknowledgement: ``This product includes software developed by the
12 | * Computer Systems Laboratory at the University of Utah.''
13 | *
14 | * THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS
15 | * IS" CONDITION. THE UNIVERSITY OF UTAH AND CSL DISCLAIM ANY LIABILITY OF
16 | * ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
17 | *
18 | * CSL requests users of this software to return to csl-dist@cs.utah.edu any
19 | * improvements that they make and grant CSL redistribution rights.
20 | *
21 | * Author: Bryan Ford, University of Utah CSL
22 | */
23 | #ifndef _MACH_SA_TIME_H
24 | #define _MACH_SA_TIME_H
25 |
26 | #endif /* _MACH_SA_TIME_H */
27 |
--------------------------------------------------------------------------------
/include/mach/sa/unistd.h:
--------------------------------------------------------------------------------
1 | #ifndef _UNISTD_H_
2 | #define _UNISTD_H_
3 |
4 | #include
5 | #include
6 |
7 | __BEGIN_DECLS
8 |
9 | __DECL(int,close(int fd));
10 | __DECL(int,read(int fd, void *buf, unsigned int n));
11 | __DECL(int,write(int fd, const void *buf, unsigned int n));
12 | __DECL(off_t,lseek(int fd, off_t offset, int whence));
13 | __DECL(int,rename(const char *oldpath, const char *newpath));
14 | __DECL(void *,sbrk(int size));
15 |
16 | __END_DECLS
17 |
18 | #endif /* _UNISTD_H_ */
19 |
--------------------------------------------------------------------------------
/kernel/bogus/bootstrap_symbols.h:
--------------------------------------------------------------------------------
1 | #define BOOTSTRAP_SYMBOLS 0
2 |
--------------------------------------------------------------------------------
/kernel/bogus/fast_tas.h:
--------------------------------------------------------------------------------
1 | #define FAST_TAS 0
2 |
--------------------------------------------------------------------------------
/kernel/bogus/hw_footprint.h:
--------------------------------------------------------------------------------
1 | #define HW_FOOTPRINT 0
2 |
--------------------------------------------------------------------------------
/kernel/bogus/mach_assert.h:
--------------------------------------------------------------------------------
1 | #ifdef DEBUG
2 | #define MACH_ASSERT 1
3 | #else
4 | #define MACH_ASSERT 0
5 | #endif
6 |
--------------------------------------------------------------------------------
/kernel/bogus/mach_counters.h:
--------------------------------------------------------------------------------
1 | #define MACH_COUNTERS 0
2 |
--------------------------------------------------------------------------------
/kernel/bogus/mach_debug.h:
--------------------------------------------------------------------------------
1 | #define MACH_DEBUG 1
2 |
--------------------------------------------------------------------------------
/kernel/bogus/mach_fixpri.h:
--------------------------------------------------------------------------------
1 | #define MACH_FIXPRI 1
2 |
--------------------------------------------------------------------------------
/kernel/bogus/mach_host.h:
--------------------------------------------------------------------------------
1 | #define MACH_HOST 0
2 |
--------------------------------------------------------------------------------
/kernel/bogus/mach_ipc_compat.h:
--------------------------------------------------------------------------------
1 | #define MACH_IPC_COMPAT 1
2 |
--------------------------------------------------------------------------------
/kernel/bogus/mach_ipc_debug.h:
--------------------------------------------------------------------------------
1 | #define MACH_IPC_DEBUG 1
2 |
--------------------------------------------------------------------------------
/kernel/bogus/mach_ipc_test.h:
--------------------------------------------------------------------------------
1 | #define MACH_IPC_TEST 0
2 |
--------------------------------------------------------------------------------
/kernel/bogus/mach_kdb.h:
--------------------------------------------------------------------------------
1 | #ifdef DEBUG
2 | #define MACH_KDB 1
3 | #else
4 | #define MACH_KDB 0
5 | #endif
6 |
--------------------------------------------------------------------------------
/kernel/bogus/mach_ldebug.h:
--------------------------------------------------------------------------------
1 | #define MACH_LDEBUG 0
2 |
--------------------------------------------------------------------------------
/kernel/bogus/mach_lock_mon.h:
--------------------------------------------------------------------------------
1 | #define MACH_LOCK_MON 0
2 |
--------------------------------------------------------------------------------
/kernel/bogus/mach_machine_routines.h:
--------------------------------------------------------------------------------
1 | #define MACH_MACHINE_ROUTINES 0
2 |
--------------------------------------------------------------------------------
/kernel/bogus/mach_mp_debug.h:
--------------------------------------------------------------------------------
1 | #define MACH_MP_DEBUG 0
2 |
--------------------------------------------------------------------------------
/kernel/bogus/mach_pagemap.h:
--------------------------------------------------------------------------------
1 | #define MACH_PAGEMAP 1
2 |
--------------------------------------------------------------------------------
/kernel/bogus/mach_pcsample.h:
--------------------------------------------------------------------------------
1 | #define MACH_PCSAMPLE 1
2 |
--------------------------------------------------------------------------------
/kernel/bogus/mach_ttd.h:
--------------------------------------------------------------------------------
1 | #define MACH_TTD 0
2 |
--------------------------------------------------------------------------------
/kernel/bogus/mach_vm_debug.h:
--------------------------------------------------------------------------------
1 | #define MACH_VM_DEBUG 1
2 |
--------------------------------------------------------------------------------
/kernel/bogus/net_atm.h:
--------------------------------------------------------------------------------
1 | #define NET_ATM 0
2 |
--------------------------------------------------------------------------------
/kernel/bogus/norma_device.h:
--------------------------------------------------------------------------------
1 | #define NORMA_DEVICE 0
2 |
--------------------------------------------------------------------------------
/kernel/bogus/norma_ether.h:
--------------------------------------------------------------------------------
1 | #define NORMA_ETHER 0
2 |
--------------------------------------------------------------------------------
/kernel/bogus/norma_ipc.h:
--------------------------------------------------------------------------------
1 | #define NORMA_IPC 0 /* can no longer be turned on */
2 |
--------------------------------------------------------------------------------
/kernel/bogus/norma_task.h:
--------------------------------------------------------------------------------
1 | #define NORMA_TASK 0
2 |
--------------------------------------------------------------------------------
/kernel/bogus/norma_vm.h:
--------------------------------------------------------------------------------
1 | #define NORMA_VM 0
2 |
--------------------------------------------------------------------------------
/kernel/bogus/panic.c:
--------------------------------------------------------------------------------
1 | /*XXX*/
2 |
--------------------------------------------------------------------------------
/kernel/bogus/power_save.h:
--------------------------------------------------------------------------------
1 | #define POWER_SAVE 0
2 |
--------------------------------------------------------------------------------
/kernel/bogus/simple_clock.h:
--------------------------------------------------------------------------------
1 | #define SIMPLE_CLOCK 0
2 |
--------------------------------------------------------------------------------
/kernel/bogus/stat_time.h:
--------------------------------------------------------------------------------
1 | #define STAT_TIME 1
2 |
--------------------------------------------------------------------------------
/kernel/bogus/xpr_debug.h:
--------------------------------------------------------------------------------
1 | #define XPR_DEBUG 1
2 |
--------------------------------------------------------------------------------
/kernel/chips/kernel_font.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openmach/mach4/69fa77870f20d854c875135e116ebc80b118e7ff/kernel/chips/kernel_font.c
--------------------------------------------------------------------------------
/kernel/ddb/db_expr.h:
--------------------------------------------------------------------------------
1 | /*
2 | * (c) Copyright 1992, 1993, 1994, 1995 OPEN SOFTWARE FOUNDATION, INC.
3 | * ALL RIGHTS RESERVED
4 | */
5 | /*
6 | * OSF RI nmk19b2 5/2/95
7 | */
8 |
9 | #ifndef _DDB_DB_EXPR_H_
10 | #define _DDB_DB_EXPR_H_
11 |
12 | #include
13 | #include
14 |
15 |
16 | /* Prototypes for functions exported by this module.
17 | */
18 |
19 | int db_size_option(
20 | char *modif,
21 | boolean_t *u_option,
22 | boolean_t *t_option);
23 |
24 | int db_expression(db_expr_t *valuep);
25 |
26 | #endif /* !_DDB_DB_EXPR_H_ */
27 |
--------------------------------------------------------------------------------
/kernel/device/device.srv:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 1994 The University of Utah and
3 | * the Computer Systems Laboratory at the University of Utah (CSL).
4 | * All rights reserved.
5 | *
6 | * Permission to use, copy, modify and distribute this software is hereby
7 | * granted provided that (1) source code retains these copyright, permission,
8 | * and disclaimer notices, and (2) redistributions including binaries
9 | * reproduce the notices in supporting documentation, and (3) all advertising
10 | * materials mentioning features or use of this software display the following
11 | * acknowledgement: ``This product includes software developed by the
12 | * Computer Systems Laboratory at the University of Utah.''
13 | *
14 | * THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS
15 | * IS" CONDITION. THE UNIVERSITY OF UTAH AND CSL DISCLAIM ANY LIABILITY OF
16 | * ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
17 | *
18 | * CSL requests users of this software to return to csl-dist@cs.utah.edu any
19 | * improvements that they make and grant CSL redistribution rights.
20 | *
21 | * Author: Bryan Ford, University of Utah CSL
22 | */
23 | /* This is a server presentation file. */
24 |
25 | #define KERNEL_SERVER 1
26 |
27 | simport ; /* for obsolete routines */
28 |
29 | #include
30 |
--------------------------------------------------------------------------------
/kernel/device/device_reply.cli:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 1994 The University of Utah and
3 | * the Computer Systems Laboratory at the University of Utah (CSL).
4 | * All rights reserved.
5 | *
6 | * Permission to use, copy, modify and distribute this software is hereby
7 | * granted provided that (1) source code retains these copyright, permission,
8 | * and disclaimer notices, and (2) redistributions including binaries
9 | * reproduce the notices in supporting documentation, and (3) all advertising
10 | * materials mentioning features or use of this software display the following
11 | * acknowledgement: ``This product includes software developed by the
12 | * Computer Systems Laboratory at the University of Utah.''
13 | *
14 | * THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS
15 | * IS" CONDITION. THE UNIVERSITY OF UTAH AND CSL DISCLAIM ANY LIABILITY OF
16 | * ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
17 | *
18 | * CSL requests users of this software to return to csl-dist@cs.utah.edu any
19 | * improvements that they make and grant CSL redistribution rights.
20 | *
21 | * Author: Bryan Ford, University of Utah CSL
22 | */
23 | /* This is a client presentation file. */
24 |
25 | #define KERNEL_USER 1
26 |
27 | #include
28 |
--------------------------------------------------------------------------------
/kernel/device/memory_object_reply.cli:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 1994 The University of Utah and
3 | * the Computer Systems Laboratory at the University of Utah (CSL).
4 | * All rights reserved.
5 | *
6 | * Permission to use, copy, modify and distribute this software is hereby
7 | * granted provided that (1) source code retains these copyright, permission,
8 | * and disclaimer notices, and (2) redistributions including binaries
9 | * reproduce the notices in supporting documentation, and (3) all advertising
10 | * materials mentioning features or use of this software display the following
11 | * acknowledgement: ``This product includes software developed by the
12 | * Computer Systems Laboratory at the University of Utah.''
13 | *
14 | * THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS
15 | * IS" CONDITION. THE UNIVERSITY OF UTAH AND CSL DISCLAIM ANY LIABILITY OF
16 | * ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
17 | *
18 | * CSL requests users of this software to return to csl-dist@cs.utah.edu any
19 | * improvements that they make and grant CSL redistribution rights.
20 | *
21 | * Author: Bryan Ford, University of Utah CSL
22 | */
23 | /* This is a client presentation file. */
24 |
25 | #define KERNEL_USER 1
26 |
27 | #include
28 |
--------------------------------------------------------------------------------
/kernel/ipc/ipc_kmsg_queue.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Mach Operating System
3 | * Copyright (c) 1993 Carnegie Mellon University
4 | * All Rights Reserved.
5 | *
6 | * Permission to use, copy, modify and distribute this software and its
7 | * documentation is hereby granted, provided that both the copyright
8 | * notice and this permission notice appear in all copies of the
9 | * software, derivative works or modified versions, and any portions
10 | * thereof, and that both notices appear in supporting documentation.
11 | *
12 | * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
13 | * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
14 | * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
15 | *
16 | * Carnegie Mellon requests users of this software to return to
17 | *
18 | * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
19 | * School of Computer Science
20 | * Carnegie Mellon University
21 | * Pittsburgh PA 15213-3890
22 | *
23 | * any improvements or extensions that they make and grant Carnegie Mellon
24 | * the rights to redistribute these changes.
25 | */
26 | #ifndef _IPC_KMSG_QUEUE_H_
27 | #define _IPC_KMSG_QUEUE_H_
28 | struct ipc_kmsg_queue {
29 | struct ipc_kmsg *ikmq_base; };
30 | #endif
31 |
32 |
--------------------------------------------------------------------------------
/kernel/ipc/mach_port.srv:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 1994 The University of Utah and
3 | * the Computer Systems Laboratory at the University of Utah (CSL).
4 | * All rights reserved.
5 | *
6 | * Permission to use, copy, modify and distribute this software is hereby
7 | * granted provided that (1) source code retains these copyright, permission,
8 | * and disclaimer notices, and (2) redistributions including binaries
9 | * reproduce the notices in supporting documentation, and (3) all advertising
10 | * materials mentioning features or use of this software display the following
11 | * acknowledgement: ``This product includes software developed by the
12 | * Computer Systems Laboratory at the University of Utah.''
13 | *
14 | * THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS
15 | * IS" CONDITION. THE UNIVERSITY OF UTAH AND CSL DISCLAIM ANY LIABILITY OF
16 | * ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
17 | *
18 | * CSL requests users of this software to return to csl-dist@cs.utah.edu any
19 | * improvements that they make and grant CSL redistribution rights.
20 | *
21 | * Author: Bryan Ford, University of Utah CSL
22 | */
23 | /* This is a server presentation file. */
24 |
25 | #define KERNEL_SERVER 1
26 |
27 | #include
28 |
--------------------------------------------------------------------------------
/kernel/kern/ipc_sched.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Mach Operating System
3 | * Copyright (c) 1992,1991,1990 Carnegie Mellon University
4 | * All Rights Reserved.
5 | *
6 | * Permission to use, copy, modify and distribute this software and its
7 | * documentation is hereby granted, provided that both the copyright
8 | * notice and this permission notice appear in all copies of the
9 | * software, derivative works or modified versions, and any portions
10 | * thereof, and that both notices appear in supporting documentation.
11 | *
12 | * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
13 | * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
14 | * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
15 | *
16 | * Carnegie Mellon requests users of this software to return to
17 | *
18 | * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
19 | * School of Computer Science
20 | * Carnegie Mellon University
21 | * Pittsburgh PA 15213-3890
22 | *
23 | * any improvements or extensions that they make and grant Carnegie Mellon
24 | * the rights to redistribute these changes.
25 | */
26 |
27 | #ifndef _KERN_IPC_SCHED_H_
28 | #define _KERN_IPC_SCHED_H_
29 |
30 | #include
31 |
32 | #endif /* _KERN_IPC_SCHED_H_ */
33 |
--------------------------------------------------------------------------------
/kernel/kern/mach_debug.srv:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 1994 The University of Utah and
3 | * the Computer Systems Laboratory (CSL). All rights reserved.
4 | *
5 | * Permission to use, copy, modify and distribute this software is hereby
6 | * granted provided that (1) source code retains these copyright, permission,
7 | * and disclaimer notices, and (2) redistributions including binaries
8 | * reproduce the notices in supporting documentation, and (3) all advertising
9 | * materials mentioning features or use of this software display the following
10 | * acknowledgement: ``This product includes software developed by the
11 | * Computer Systems Laboratory at the University of Utah.''
12 | *
13 | * THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS
14 | * IS" CONDITION. THE UNIVERSITY OF UTAH AND CSL DISCLAIM ANY LIABILITY OF
15 | * ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
16 | *
17 | * CSL requests users of this software to return to csl-dist@cs.utah.edu any
18 | * improvements that they make and grant CSL redistribution rights.
19 | *
20 | * Author: Bryan Ford, University of Utah CSL
21 | */
22 | /* This is a server presentation file. */
23 |
24 | #define KERNEL_SERVER 1
25 |
26 | #include
27 |
--------------------------------------------------------------------------------
/kernel/util/Makerules:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 1994 The University of Utah and
3 | # the Computer Systems Laboratory (CSL). All rights reserved.
4 | #
5 | # Permission to use, copy, modify and distribute this software and its
6 | # documentation is hereby granted, provided that both the copyright
7 | # notice and this permission notice appear in all copies of the
8 | # software, derivative works or modified versions, and any portions
9 | # thereof, and that both notices appear in supporting documentation.
10 | #
11 | # THE UNIVERSITY OF UTAH AND CSS ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS
12 | # IS" CONDITION. THE UNIVERSITY OF UTAH AND CSS DISCLAIM ANY LIABILITY OF
13 | # ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
14 | #
15 | # CSS requests users of this software to return to css-dist@cs.utah.edu any
16 | # improvements that they make and grant CSS redistribution rights.
17 | #
18 | # Author: Bryan Ford, University of Utah CSS
19 | #
20 | ifndef _kernel_util_makerules_
21 | _kernel_util_makerules = yes
22 |
23 |
24 | # Old defines that I hope to phase out
25 | DEFINES += -DMACH_KERNEL
26 |
27 |
28 | # Include the makefile containing the generic rules.
29 | include $(GSRCDIR)/Makerules
30 |
31 |
32 | endif
33 |
--------------------------------------------------------------------------------
/kernel/util/config.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 1995 The University of Utah and
3 | * the Computer Systems Laboratory at the University of Utah (CSL).
4 | * All rights reserved.
5 | *
6 | * Permission to use, copy, modify and distribute this software is hereby
7 | * granted provided that (1) source code retains these copyright, permission,
8 | * and disclaimer notices, and (2) redistributions including binaries
9 | * reproduce the notices in supporting documentation, and (3) all advertising
10 | * materials mentioning features or use of this software display the following
11 | * acknowledgement: ``This product includes software developed by the
12 | * Computer Systems Laboratory at the University of Utah.''
13 | *
14 | * THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS
15 | * IS" CONDITION. THE UNIVERSITY OF UTAH AND CSL DISCLAIM ANY LIABILITY OF
16 | * ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
17 | *
18 | * CSL requests users of this software to return to csl-dist@cs.utah.edu any
19 | * improvements that they make and grant CSL redistribution rights.
20 | *
21 | * Author: Bryan Ford, University of Utah CSL
22 | */
23 | /* This file is just an empty default config.h file. */
24 |
--------------------------------------------------------------------------------
/kernel/util/cpu.c:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 1995 The University of Utah and
3 | * the Computer Systems Laboratory at the University of Utah (CSL).
4 | * All rights reserved.
5 | *
6 | * Permission to use, copy, modify and distribute this software is hereby
7 | * granted provided that (1) source code retains these copyright, permission,
8 | * and disclaimer notices, and (2) redistributions including binaries
9 | * reproduce the notices in supporting documentation, and (3) all advertising
10 | * materials mentioning features or use of this software display the following
11 | * acknowledgement: ``This product includes software developed by the
12 | * Computer Systems Laboratory at the University of Utah.''
13 | *
14 | * THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS
15 | * IS" CONDITION. THE UNIVERSITY OF UTAH AND CSL DISCLAIM ANY LIABILITY OF
16 | * ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
17 | *
18 | * CSL requests users of this software to return to csl-dist@cs.utah.edu any
19 | * improvements that they make and grant CSL redistribution rights.
20 | *
21 | * Author: Bryan Ford, University of Utah CSL
22 | */
23 |
24 | #include "cpu.h"
25 |
26 | struct cpu cpu[NCPUS];
27 |
28 |
--------------------------------------------------------------------------------
/kernel/util/cpu_subs.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 1995 The University of Utah and
3 | * the Computer Systems Laboratory at the University of Utah (CSL).
4 | * All rights reserved.
5 | *
6 | * Permission to use, copy, modify and distribute this software is hereby
7 | * granted provided that (1) source code retains these copyright, permission,
8 | * and disclaimer notices, and (2) redistributions including binaries
9 | * reproduce the notices in supporting documentation, and (3) all advertising
10 | * materials mentioning features or use of this software display the following
11 | * acknowledgement: ``This product includes software developed by the
12 | * Computer Systems Laboratory at the University of Utah.''
13 | *
14 | * THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS
15 | * IS" CONDITION. THE UNIVERSITY OF UTAH AND CSL DISCLAIM ANY LIABILITY OF
16 | * ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
17 | *
18 | * CSL requests users of this software to return to csl-dist@cs.utah.edu any
19 | * improvements that they make and grant CSL redistribution rights.
20 | *
21 | * Author: Bryan Ford, University of Utah CSL
22 | */
23 | /* This file is just a terminator for the set of cpu_subs.h headers. */
24 |
--------------------------------------------------------------------------------
/kernel/util/cpus.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 1995 The University of Utah and
3 | * the Computer Systems Laboratory at the University of Utah (CSL).
4 | * All rights reserved.
5 | *
6 | * Permission to use, copy, modify and distribute this software is hereby
7 | * granted provided that (1) source code retains these copyright, permission,
8 | * and disclaimer notices, and (2) redistributions including binaries
9 | * reproduce the notices in supporting documentation, and (3) all advertising
10 | * materials mentioning features or use of this software display the following
11 | * acknowledgement: ``This product includes software developed by the
12 | * Computer Systems Laboratory at the University of Utah.''
13 | *
14 | * THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS
15 | * IS" CONDITION. THE UNIVERSITY OF UTAH AND CSL DISCLAIM ANY LIABILITY OF
16 | * ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
17 | *
18 | * CSL requests users of this software to return to csl-dist@cs.utah.edu any
19 | * improvements that they make and grant CSL redistribution rights.
20 | *
21 | * Author: Bryan Ford, University of Utah CSL
22 | */
23 |
24 | /* Default cpus.h sets things up for a uniprocessor. */
25 | #define NCPUS 1
26 | #undef MULTIPROCESSOR
27 |
28 |
--------------------------------------------------------------------------------
/kernel/util/putchar.c:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 1995 The University of Utah and
3 | * the Computer Systems Laboratory at the University of Utah (CSL).
4 | * All rights reserved.
5 | *
6 | * Permission to use, copy, modify and distribute this software is hereby
7 | * granted provided that (1) source code retains these copyright, permission,
8 | * and disclaimer notices, and (2) redistributions including binaries
9 | * reproduce the notices in supporting documentation, and (3) all advertising
10 | * materials mentioning features or use of this software display the following
11 | * acknowledgement: ``This product includes software developed by the
12 | * Computer Systems Laboratory at the University of Utah.''
13 | *
14 | * THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS
15 | * IS" CONDITION. THE UNIVERSITY OF UTAH AND CSL DISCLAIM ANY LIABILITY OF
16 | * ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
17 | *
18 | * CSL requests users of this software to return to csl-dist@cs.utah.edu any
19 | * improvements that they make and grant CSL redistribution rights.
20 | *
21 | * Author: Bryan Ford, University of Utah CSL
22 | */
23 |
24 | int putchar(int c)
25 | {
26 | cnputc(c);
27 | }
28 |
29 |
--------------------------------------------------------------------------------
/kernel/vm/memory_object_default.cli:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 1994 The University of Utah and
3 | * the Computer Systems Laboratory at the University of Utah (CSL).
4 | * All rights reserved.
5 | *
6 | * Permission to use, copy, modify and distribute this software is hereby
7 | * granted provided that (1) source code retains these copyright, permission,
8 | * and disclaimer notices, and (2) redistributions including binaries
9 | * reproduce the notices in supporting documentation, and (3) all advertising
10 | * materials mentioning features or use of this software display the following
11 | * acknowledgement: ``This product includes software developed by the
12 | * Computer Systems Laboratory at the University of Utah.''
13 | *
14 | * THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS
15 | * IS" CONDITION. THE UNIVERSITY OF UTAH AND CSL DISCLAIM ANY LIABILITY OF
16 | * ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
17 | *
18 | * CSL requests users of this software to return to csl-dist@cs.utah.edu any
19 | * improvements that they make and grant CSL redistribution rights.
20 | *
21 | * Author: Bryan Ford, University of Utah CSL
22 | */
23 | /* This is a client presentation file. */
24 |
25 | #define KERNEL_USER 1
26 | #define SEQNOS 1
27 |
28 | #include
29 |
--------------------------------------------------------------------------------
/kernel/vm/memory_object_user.cli:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 1994 The University of Utah and
3 | * the Computer Systems Laboratory at the University of Utah (CSL).
4 | * All rights reserved.
5 | *
6 | * Permission to use, copy, modify and distribute this software is hereby
7 | * granted provided that (1) source code retains these copyright, permission,
8 | * and disclaimer notices, and (2) redistributions including binaries
9 | * reproduce the notices in supporting documentation, and (3) all advertising
10 | * materials mentioning features or use of this software display the following
11 | * acknowledgement: ``This product includes software developed by the
12 | * Computer Systems Laboratory at the University of Utah.''
13 | *
14 | * THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS
15 | * IS" CONDITION. THE UNIVERSITY OF UTAH AND CSL DISCLAIM ANY LIABILITY OF
16 | * ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
17 | *
18 | * CSL requests users of this software to return to csl-dist@cs.utah.edu any
19 | * improvements that they make and grant CSL redistribution rights.
20 | *
21 | * Author: Bryan Ford, University of Utah CSL
22 | */
23 | /* This is a client presentation file. */
24 |
25 | #define KERNEL_USER 1
26 | #define SEQNOS 1
27 |
28 | #include
29 |
--------------------------------------------------------------------------------
/libmach/bootstrap.pres:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 1994 The University of Utah and
3 | * the Computer Systems Laboratory at the University of Utah (CSL).
4 | * All rights reserved.
5 | *
6 | * Permission to use, copy, modify and distribute this software is hereby
7 | * granted provided that (1) source code retains these copyright, permission,
8 | * and disclaimer notices, and (2) redistributions including binaries
9 | * reproduce the notices in supporting documentation, and (3) all advertising
10 | * materials mentioning features or use of this software display the following
11 | * acknowledgement: ``This product includes software developed by the
12 | * Computer Systems Laboratory at the University of Utah.''
13 | *
14 | * THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS
15 | * IS" CONDITION. THE UNIVERSITY OF UTAH AND CSL DISCLAIM ANY LIABILITY OF
16 | * ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
17 | *
18 | * CSL requests users of this software to return to csl-dist@cs.utah.edu any
19 | * improvements that they make and grant CSL redistribution rights.
20 | *
21 | * Author: Bryan Ford, University of Utah CSL
22 | */
23 | #include
24 |
--------------------------------------------------------------------------------
/libmach/c/Makerules:
--------------------------------------------------------------------------------
1 |
2 | #
3 | # Copyright (c) 1995 The University of Utah and
4 | # the Computer Systems Laboratory (CSL). All rights reserved.
5 | #
6 | # Permission to use, copy, modify and distribute this software and its
7 | # documentation is hereby granted, provided that both the copyright
8 | # notice and this permission notice appear in all copies of the
9 | # software, derivative works or modified versions, and any portions
10 | # thereof, and that both notices appear in supporting documentation.
11 | #
12 | # THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS
13 | # IS" CONDITION. THE UNIVERSITY OF UTAH AND CSL DISCLAIM ANY LIABILITY OF
14 | # ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
15 | #
16 | # CSL requests users of this software to return to csl-dist@cs.utah.edu any
17 | # improvements that they make and grant CSL redistribution rights.
18 | #
19 | # Author: Bryan Ford, University of Utah CSL
20 | #
21 | ifndef _mach4_libmach_c_makerules_
22 | _mach4_libmach_c_makerules_ = yes
23 |
24 | SRCDIRS += $(GSRCDIR)/libmach/c \
25 | $(GSRCDIR)/libmach/c/stdio \
26 | $(GSRCDIR)/libmach/c/malloc \
27 | $(GSRCDIR)/libmach/lmm
28 |
29 | include $(GSRCDIR)/Makerules.lib
30 |
31 | endif
32 |
--------------------------------------------------------------------------------
/libmach/c/abort.c:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 1994 The University of Utah and
3 | * the Computer Systems Laboratory (CSL). All rights reserved.
4 | *
5 | * Permission to use, copy, modify and distribute this software and its
6 | * documentation is hereby granted, provided that both the copyright
7 | * notice and this permission notice appear in all copies of the
8 | * software, derivative works or modified versions, and any portions
9 | * thereof, and that both notices appear in supporting documentation.
10 | *
11 | * THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS
12 | * IS" CONDITION. THE UNIVERSITY OF UTAH AND CSL DISCLAIM ANY LIABILITY OF
13 | * ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
14 | *
15 | * CSL requests users of this software to return to csl-dist@cs.utah.edu any
16 | * improvements that they make and grant CSL redistribution rights.
17 | *
18 | * Author: Bryan Ford, University of Utah CSL
19 | */
20 |
21 | #include
22 |
23 | void __abort(void)
24 | {
25 | _exit(1);
26 | }
27 |
28 | void abort(void)
29 | {
30 | __abort();
31 | }
32 |
33 |
--------------------------------------------------------------------------------
/libmach/c/abs.c:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 1994 The University of Utah and
3 | * the Computer Systems Laboratory (CSL). All rights reserved.
4 | *
5 | * Permission to use, copy, modify and distribute this software and its
6 | * documentation is hereby granted, provided that both the copyright
7 | * notice and this permission notice appear in all copies of the
8 | * software, derivative works or modified versions, and any portions
9 | * thereof, and that both notices appear in supporting documentation.
10 | *
11 | * THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS
12 | * IS" CONDITION. THE UNIVERSITY OF UTAH AND CSL DISCLAIM ANY LIABILITY OF
13 | * ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
14 | *
15 | * CSL requests users of this software to return to csl-dist@cs.utah.edu any
16 | * improvements that they make and grant CSL redistribution rights.
17 | *
18 | * Author: Bryan Ford, University of Utah CSL
19 | */
20 |
21 | #include
22 |
23 | #undef abs
24 |
25 | int abs(int val)
26 | {
27 | return val >= 0 ? val : -val;
28 | }
29 |
30 |
--------------------------------------------------------------------------------
/libmach/c/atol.c:
--------------------------------------------------------------------------------
1 |
2 | #include
3 | #include
4 |
5 | long
6 | atol(const char *str)
7 | {
8 | long n = 0;
9 | while (isdigit(*str))
10 | {
11 | n = (n * 10) + *str - '0';
12 | str++;
13 | }
14 | return n;
15 | }
16 |
17 |
--------------------------------------------------------------------------------
/libmach/c/errno.c:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 1995 The University of Utah and
3 | * the Computer Systems Laboratory at the University of Utah (CSL).
4 | * All rights reserved.
5 | *
6 | * Permission to use, copy, modify and distribute this software is hereby
7 | * granted provided that (1) source code retains these copyright, permission,
8 | * and disclaimer notices, and (2) redistributions including binaries
9 | * reproduce the notices in supporting documentation, and (3) all advertising
10 | * materials mentioning features or use of this software display the following
11 | * acknowledgement: ``This product includes software developed by the
12 | * Computer Systems Laboratory at the University of Utah.''
13 | *
14 | * THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS
15 | * IS" CONDITION. THE UNIVERSITY OF UTAH AND CSL DISCLAIM ANY LIABILITY OF
16 | * ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
17 | *
18 | * CSL requests users of this software to return to csl-dist@cs.utah.edu any
19 | * improvements that they make and grant CSL redistribution rights.
20 | *
21 | * Author: Bryan Ford, University of Utah CSL
22 | */
23 |
24 | int errno;
25 |
26 |
--------------------------------------------------------------------------------
/libmach/c/malloc/free.c:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 1995 The University of Utah and
3 | * the Computer Systems Laboratory at the University of Utah (CSL).
4 | * All rights reserved.
5 | *
6 | * Permission to use, copy, modify and distribute this software is hereby
7 | * granted provided that (1) source code retains these copyright, permission,
8 | * and disclaimer notices, and (2) redistributions including binaries
9 | * reproduce the notices in supporting documentation, and (3) all advertising
10 | * materials mentioning features or use of this software display the following
11 | * acknowledgement: ``This product includes software developed by the
12 | * Computer Systems Laboratory at the University of Utah.''
13 | *
14 | * THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS
15 | * IS" CONDITION. THE UNIVERSITY OF UTAH AND CSL DISCLAIM ANY LIABILITY OF
16 | * ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
17 | *
18 | * CSL requests users of this software to return to csl-dist@cs.utah.edu any
19 | * improvements that they make and grant CSL redistribution rights.
20 | *
21 | * Author: Bryan Ford, University of Utah CSL
22 | */
23 |
24 | #include "malloc.h"
25 |
26 | void free(void *chunk_ptr)
27 | {
28 | size_t *chunk = (size_t*)chunk_ptr - 1;
29 |
30 | lmm_free(&malloc_lmm, chunk, *chunk);
31 | }
32 |
33 |
--------------------------------------------------------------------------------
/libmach/c/malloc/malloc.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 1995 The University of Utah and
3 | * the Computer Systems Laboratory at the University of Utah (CSL).
4 | * All rights reserved.
5 | *
6 | * Permission to use, copy, modify and distribute this software is hereby
7 | * granted provided that (1) source code retains these copyright, permission,
8 | * and disclaimer notices, and (2) redistributions including binaries
9 | * reproduce the notices in supporting documentation, and (3) all advertising
10 | * materials mentioning features or use of this software display the following
11 | * acknowledgement: ``This product includes software developed by the
12 | * Computer Systems Laboratory at the University of Utah.''
13 | *
14 | * THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS
15 | * IS" CONDITION. THE UNIVERSITY OF UTAH AND CSL DISCLAIM ANY LIABILITY OF
16 | * ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
17 | *
18 | * CSL requests users of this software to return to csl-dist@cs.utah.edu any
19 | * improvements that they make and grant CSL redistribution rights.
20 | *
21 | * Author: Bryan Ford, University of Utah CSL
22 | */
23 |
24 | #include
25 | #include
26 |
27 |
--------------------------------------------------------------------------------
/libmach/c/malloc/morecore.c:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 1995 The University of Utah and
3 | * the Computer Systems Laboratory at the University of Utah (CSL).
4 | * All rights reserved.
5 | *
6 | * Permission to use, copy, modify and distribute this software is hereby
7 | * granted provided that (1) source code retains these copyright, permission,
8 | * and disclaimer notices, and (2) redistributions including binaries
9 | * reproduce the notices in supporting documentation, and (3) all advertising
10 | * materials mentioning features or use of this software display the following
11 | * acknowledgement: ``This product includes software developed by the
12 | * Computer Systems Laboratory at the University of Utah.''
13 | *
14 | * THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS
15 | * IS" CONDITION. THE UNIVERSITY OF UTAH AND CSL DISCLAIM ANY LIABILITY OF
16 | * ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
17 | *
18 | * CSL requests users of this software to return to csl-dist@cs.utah.edu any
19 | * improvements that they make and grant CSL redistribution rights.
20 | *
21 | * Author: Bryan Ford, University of Utah CSL
22 | */
23 |
24 | #include "malloc.h"
25 |
26 | int morecore(size_t size)
27 | {
28 | return 0;
29 | }
30 |
31 |
--------------------------------------------------------------------------------
/libmach/c/rindex.c:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 1994 The University of Utah and
3 | * the Computer Systems Laboratory (CSL). All rights reserved.
4 | *
5 | * Permission to use, copy, modify and distribute this software and its
6 | * documentation is hereby granted, provided that both the copyright
7 | * notice and this permission notice appear in all copies of the
8 | * software, derivative works or modified versions, and any portions
9 | * thereof, and that both notices appear in supporting documentation.
10 | *
11 | * THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS
12 | * IS" CONDITION. THE UNIVERSITY OF UTAH AND CSL DISCLAIM ANY LIABILITY OF
13 | * ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
14 | *
15 | * CSL requests users of this software to return to csl-dist@cs.utah.edu any
16 | * improvements that they make and grant CSL redistribution rights.
17 | *
18 | * Author: Bryan Ford, University of Utah CSL
19 | */
20 |
21 | #include
22 | #include
23 |
24 | char *rindex(const char *s, int c)
25 | {
26 | char *it = 0;
27 |
28 | while (1)
29 | {
30 | if (*s == c)
31 | it = (char *)s;
32 | if (*s == 0)
33 | return it;
34 | s++;
35 | }
36 | }
37 |
38 |
--------------------------------------------------------------------------------
/libmach/c/stdio/fgetc.c:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 1995-1994 The University of Utah and
3 | * the Computer Systems Laboratory at the University of Utah (CSL).
4 | * All rights reserved.
5 | *
6 | * Permission to use, copy, modify and distribute this software is hereby
7 | * granted provided that (1) source code retains these copyright, permission,
8 | * and disclaimer notices, and (2) redistributions including binaries
9 | * reproduce the notices in supporting documentation, and (3) all advertising
10 | * materials mentioning features or use of this software display the following
11 | * acknowledgement: ``This product includes software developed by the
12 | * Computer Systems Laboratory at the University of Utah.''
13 | *
14 | * THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS
15 | * IS" CONDITION. THE UNIVERSITY OF UTAH AND CSL DISCLAIM ANY LIABILITY OF
16 | * ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
17 | *
18 | * CSL requests users of this software to return to csl-dist@cs.utah.edu any
19 | * improvements that they make and grant CSL redistribution rights.
20 | *
21 | * Author: Bryan Ford, University of Utah CSL
22 | */
23 |
24 | #include
25 |
26 | int fgetc(FILE *stream)
27 | {
28 | unsigned char c;
29 | if (read(stream->fd, &c, 1) == 1)
30 | return c;
31 | else
32 | return -1;
33 | }
34 |
35 |
--------------------------------------------------------------------------------
/libmach/c/stdio/fputc.c:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 1995-1994 The University of Utah and
3 | * the Computer Systems Laboratory at the University of Utah (CSL).
4 | * All rights reserved.
5 | *
6 | * Permission to use, copy, modify and distribute this software is hereby
7 | * granted provided that (1) source code retains these copyright, permission,
8 | * and disclaimer notices, and (2) redistributions including binaries
9 | * reproduce the notices in supporting documentation, and (3) all advertising
10 | * materials mentioning features or use of this software display the following
11 | * acknowledgement: ``This product includes software developed by the
12 | * Computer Systems Laboratory at the University of Utah.''
13 | *
14 | * THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS
15 | * IS" CONDITION. THE UNIVERSITY OF UTAH AND CSL DISCLAIM ANY LIABILITY OF
16 | * ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
17 | *
18 | * CSL requests users of this software to return to csl-dist@cs.utah.edu any
19 | * improvements that they make and grant CSL redistribution rights.
20 | *
21 | * Author: Bryan Ford, University of Utah CSL
22 | */
23 |
24 | #include
25 | #include
26 |
27 | int fputc(int c, FILE *stream)
28 | {
29 | char ch = c;
30 |
31 | return write(stream->fd, &ch, 1);
32 | }
33 |
34 |
--------------------------------------------------------------------------------
/libmach/c/stdio/fread.c:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 1995-1994 The University of Utah and
3 | * the Computer Systems Laboratory at the University of Utah (CSL).
4 | * All rights reserved.
5 | *
6 | * Permission to use, copy, modify and distribute this software is hereby
7 | * granted provided that (1) source code retains these copyright, permission,
8 | * and disclaimer notices, and (2) redistributions including binaries
9 | * reproduce the notices in supporting documentation, and (3) all advertising
10 | * materials mentioning features or use of this software display the following
11 | * acknowledgement: ``This product includes software developed by the
12 | * Computer Systems Laboratory at the University of Utah.''
13 | *
14 | * THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS
15 | * IS" CONDITION. THE UNIVERSITY OF UTAH AND CSL DISCLAIM ANY LIABILITY OF
16 | * ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
17 | *
18 | * CSL requests users of this software to return to csl-dist@cs.utah.edu any
19 | * improvements that they make and grant CSL redistribution rights.
20 | *
21 | * Author: Bryan Ford, University of Utah CSL
22 | */
23 |
24 | #include
25 | #include
26 |
27 | int fread(void *buf, int size, int count, FILE *stream)
28 | {
29 | return read(stream->fd, buf, size * count);
30 | }
31 |
32 |
--------------------------------------------------------------------------------
/libmach/c/stdio/ftell.c:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 1995-1994 The University of Utah and
3 | * the Computer Systems Laboratory at the University of Utah (CSL).
4 | * All rights reserved.
5 | *
6 | * Permission to use, copy, modify and distribute this software is hereby
7 | * granted provided that (1) source code retains these copyright, permission,
8 | * and disclaimer notices, and (2) redistributions including binaries
9 | * reproduce the notices in supporting documentation, and (3) all advertising
10 | * materials mentioning features or use of this software display the following
11 | * acknowledgement: ``This product includes software developed by the
12 | * Computer Systems Laboratory at the University of Utah.''
13 | *
14 | * THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS
15 | * IS" CONDITION. THE UNIVERSITY OF UTAH AND CSL DISCLAIM ANY LIABILITY OF
16 | * ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
17 | *
18 | * CSL requests users of this software to return to csl-dist@cs.utah.edu any
19 | * improvements that they make and grant CSL redistribution rights.
20 | *
21 | * Author: Bryan Ford, University of Utah CSL
22 | */
23 |
24 | #include
25 | #include
26 |
27 | long ftell(FILE *stream)
28 | {
29 | return lseek(stream->fd, 0, SEEK_CUR);
30 | }
31 |
32 |
--------------------------------------------------------------------------------
/libmach/c/stdio/fwrite.c:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 1995-1994 The University of Utah and
3 | * the Computer Systems Laboratory at the University of Utah (CSL).
4 | * All rights reserved.
5 | *
6 | * Permission to use, copy, modify and distribute this software is hereby
7 | * granted provided that (1) source code retains these copyright, permission,
8 | * and disclaimer notices, and (2) redistributions including binaries
9 | * reproduce the notices in supporting documentation, and (3) all advertising
10 | * materials mentioning features or use of this software display the following
11 | * acknowledgement: ``This product includes software developed by the
12 | * Computer Systems Laboratory at the University of Utah.''
13 | *
14 | * THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS
15 | * IS" CONDITION. THE UNIVERSITY OF UTAH AND CSL DISCLAIM ANY LIABILITY OF
16 | * ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
17 | *
18 | * CSL requests users of this software to return to csl-dist@cs.utah.edu any
19 | * improvements that they make and grant CSL redistribution rights.
20 | *
21 | * Author: Bryan Ford, University of Utah CSL
22 | */
23 |
24 | #include
25 | #include
26 |
27 | int fwrite(void *buf, int size, int count, FILE *stream)
28 | {
29 | return write(stream->fd, buf, size * count);
30 | }
31 |
32 |
--------------------------------------------------------------------------------
/libmach/c/stdio/remove.c:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 1995-1994 The University of Utah and
3 | * the Computer Systems Laboratory at the University of Utah (CSL).
4 | * All rights reserved.
5 | *
6 | * Permission to use, copy, modify and distribute this software is hereby
7 | * granted provided that (1) source code retains these copyright, permission,
8 | * and disclaimer notices, and (2) redistributions including binaries
9 | * reproduce the notices in supporting documentation, and (3) all advertising
10 | * materials mentioning features or use of this software display the following
11 | * acknowledgement: ``This product includes software developed by the
12 | * Computer Systems Laboratory at the University of Utah.''
13 | *
14 | * THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS
15 | * IS" CONDITION. THE UNIVERSITY OF UTAH AND CSL DISCLAIM ANY LIABILITY OF
16 | * ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
17 | *
18 | * CSL requests users of this software to return to csl-dist@cs.utah.edu any
19 | * improvements that they make and grant CSL redistribution rights.
20 | *
21 | * Author: Bryan Ford, University of Utah CSL
22 | */
23 |
24 | int remove(const char *filename)
25 | {
26 | return unlink(filename);
27 | }
28 |
29 |
--------------------------------------------------------------------------------
/libmach/c/stdio/rewind.c:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 1995-1994 The University of Utah and
3 | * the Computer Systems Laboratory at the University of Utah (CSL).
4 | * All rights reserved.
5 | *
6 | * Permission to use, copy, modify and distribute this software is hereby
7 | * granted provided that (1) source code retains these copyright, permission,
8 | * and disclaimer notices, and (2) redistributions including binaries
9 | * reproduce the notices in supporting documentation, and (3) all advertising
10 | * materials mentioning features or use of this software display the following
11 | * acknowledgement: ``This product includes software developed by the
12 | * Computer Systems Laboratory at the University of Utah.''
13 | *
14 | * THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS
15 | * IS" CONDITION. THE UNIVERSITY OF UTAH AND CSL DISCLAIM ANY LIABILITY OF
16 | * ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
17 | *
18 | * CSL requests users of this software to return to csl-dist@cs.utah.edu any
19 | * improvements that they make and grant CSL redistribution rights.
20 | *
21 | * Author: Bryan Ford, University of Utah CSL
22 | */
23 |
24 | #include
25 |
26 | void rewind(FILE *stream)
27 | {
28 | fseek(stream, 0, SEEK_SET);
29 | }
30 |
31 |
--------------------------------------------------------------------------------
/libmach/c/strcat.c:
--------------------------------------------------------------------------------
1 | /*
2 | * Mach Operating System
3 | * Copyright (c) 1992,1991,1990,1989 Carnegie Mellon University
4 | * All Rights Reserved.
5 | *
6 | * Permission to use, copy, modify and distribute this software and its
7 | * documentation is hereby granted, provided that both the copyright
8 | * notice and this permission notice appear in all copies of the
9 | * software, derivative works or modified versions, and any portions
10 | * thereof, and that both notices appear in supporting documentation.
11 | *
12 | * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
13 | * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
14 | * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
15 | *
16 | * Carnegie Mellon requests users of this software to return to
17 | *
18 | * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
19 | * School of Computer Science
20 | * Carnegie Mellon University
21 | * Pittsburgh PA 15213-3890
22 | *
23 | * any improvements or extensions that they make and grant Carnegie Mellon
24 | * the rights to redistribute these changes.
25 | */
26 |
27 | char *
28 | strcat(s, add)
29 | register char *s, *add;
30 | {
31 | register char *ret = s;
32 |
33 | while(*s) s++;
34 |
35 | while(*s++ = *add++) ;
36 |
37 | return ret;
38 | }
39 |
--------------------------------------------------------------------------------
/libmach/c/strdup.c:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 1994 The University of Utah and
3 | * the Computer Systems Laboratory (CSL). All rights reserved.
4 | *
5 | * Permission to use, copy, modify and distribute this software and its
6 | * documentation is hereby granted, provided that both the copyright
7 | * notice and this permission notice appear in all copies of the
8 | * software, derivative works or modified versions, and any portions
9 | * thereof, and that both notices appear in supporting documentation.
10 | *
11 | * THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS
12 | * IS" CONDITION. THE UNIVERSITY OF UTAH AND CSL DISCLAIM ANY LIABILITY OF
13 | * ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
14 | *
15 | * CSL requests users of this software to return to csl-dist@cs.utah.edu any
16 | * improvements that they make and grant CSL redistribution rights.
17 | *
18 | * Author: Bryan Ford, University of Utah CSL
19 | */
20 |
21 | #include
22 | #include
23 |
24 | char *strdup(const char *src)
25 | {
26 | char *buf = malloc(strlen(src)+1);
27 | if (buf)
28 | strcpy(buf, src);
29 | return buf;
30 | }
31 |
32 |
--------------------------------------------------------------------------------
/libmach/c/strncmp.c:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 1994 The University of Utah and
3 | * the Computer Systems Laboratory (CSL). All rights reserved.
4 | *
5 | * Permission to use, copy, modify and distribute this software and its
6 | * documentation is hereby granted, provided that both the copyright
7 | * notice and this permission notice appear in all copies of the
8 | * software, derivative works or modified versions, and any portions
9 | * thereof, and that both notices appear in supporting documentation.
10 | *
11 | * THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS
12 | * IS" CONDITION. THE UNIVERSITY OF UTAH AND CSL DISCLAIM ANY LIABILITY OF
13 | * ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
14 | *
15 | * CSL requests users of this software to return to csl-dist@cs.utah.edu any
16 | * improvements that they make and grant CSL redistribution rights.
17 | *
18 | * Author: Bryan Ford, University of Utah CSL
19 | */
20 |
21 | #include
22 |
23 | int
24 | strncmp(const char *s1, const char *s2, int n)
25 | {
26 | while (1)
27 | {
28 | if (n <= 0)
29 | return 0;
30 | if (*s1 != *s2)
31 | return *s1 - *s2;
32 | if (*s1 == 0)
33 | return 0;
34 |
35 | s1++;
36 | s2++;
37 | n--;
38 | }
39 | }
40 |
41 |
--------------------------------------------------------------------------------
/libmach/c/strstr.c:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 1994 The University of Utah and
3 | * the Computer Systems Laboratory (CSL). All rights reserved.
4 | *
5 | * Permission to use, copy, modify and distribute this software and its
6 | * documentation is hereby granted, provided that both the copyright
7 | * notice and this permission notice appear in all copies of the
8 | * software, derivative works or modified versions, and any portions
9 | * thereof, and that both notices appear in supporting documentation.
10 | *
11 | * THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS
12 | * IS" CONDITION. THE UNIVERSITY OF UTAH AND CSL DISCLAIM ANY LIABILITY OF
13 | * ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
14 | *
15 | * CSL requests users of this software to return to csl-dist@cs.utah.edu any
16 | * improvements that they make and grant CSL redistribution rights.
17 | *
18 | * Author: Bryan Ford, University of Utah CSL
19 | */
20 |
21 | #include
22 | #include
23 |
24 | void *strstr(const char *haystack, const char *needle)
25 | {
26 | int hlen = strlen(haystack);
27 | int nlen = strlen(needle);
28 |
29 | while (hlen >= nlen)
30 | {
31 | if (!memcmp(haystack, needle, nlen))
32 | return (void*)haystack;
33 |
34 | haystack++;
35 | hlen--;
36 | }
37 | return 0;
38 | }
39 |
40 |
--------------------------------------------------------------------------------
/libmach/default_pager.pres:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 1994 The University of Utah and
3 | * the Computer Systems Laboratory at the University of Utah (CSL).
4 | * All rights reserved.
5 | *
6 | * Permission to use, copy, modify and distribute this software is hereby
7 | * granted provided that (1) source code retains these copyright, permission,
8 | * and disclaimer notices, and (2) redistributions including binaries
9 | * reproduce the notices in supporting documentation, and (3) all advertising
10 | * materials mentioning features or use of this software display the following
11 | * acknowledgement: ``This product includes software developed by the
12 | * Computer Systems Laboratory at the University of Utah.''
13 | *
14 | * THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS
15 | * IS" CONDITION. THE UNIVERSITY OF UTAH AND CSL DISCLAIM ANY LIABILITY OF
16 | * ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
17 | *
18 | * CSL requests users of this software to return to csl-dist@cs.utah.edu any
19 | * improvements that they make and grant CSL redistribution rights.
20 | *
21 | * Author: Bryan Ford, University of Utah CSL
22 | */
23 | #include
24 |
--------------------------------------------------------------------------------
/libmach/default_pager_helper.pres:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 1994 The University of Utah and
3 | * the Computer Systems Laboratory at the University of Utah (CSL).
4 | * All rights reserved.
5 | *
6 | * Permission to use, copy, modify and distribute this software is hereby
7 | * granted provided that (1) source code retains these copyright, permission,
8 | * and disclaimer notices, and (2) redistributions including binaries
9 | * reproduce the notices in supporting documentation, and (3) all advertising
10 | * materials mentioning features or use of this software display the following
11 | * acknowledgement: ``This product includes software developed by the
12 | * Computer Systems Laboratory at the University of Utah.''
13 | *
14 | * THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS
15 | * IS" CONDITION. THE UNIVERSITY OF UTAH AND CSL DISCLAIM ANY LIABILITY OF
16 | * ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
17 | *
18 | * CSL requests users of this software to return to csl-dist@cs.utah.edu any
19 | * improvements that they make and grant CSL redistribution rights.
20 | *
21 | * Author: Bryan Ford, University of Utah CSL
22 | */
23 | #include
24 |
--------------------------------------------------------------------------------
/libmach/device.pres:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 1994 The University of Utah and
3 | * the Computer Systems Laboratory at the University of Utah (CSL).
4 | * All rights reserved.
5 | *
6 | * Permission to use, copy, modify and distribute this software is hereby
7 | * granted provided that (1) source code retains these copyright, permission,
8 | * and disclaimer notices, and (2) redistributions including binaries
9 | * reproduce the notices in supporting documentation, and (3) all advertising
10 | * materials mentioning features or use of this software display the following
11 | * acknowledgement: ``This product includes software developed by the
12 | * Computer Systems Laboratory at the University of Utah.''
13 | *
14 | * THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS
15 | * IS" CONDITION. THE UNIVERSITY OF UTAH AND CSL DISCLAIM ANY LIABILITY OF
16 | * ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
17 | *
18 | * CSL requests users of this software to return to csl-dist@cs.utah.edu any
19 | * improvements that they make and grant CSL redistribution rights.
20 | *
21 | * Author: Bryan Ford, University of Utah CSL
22 | */
23 | #include
24 |
--------------------------------------------------------------------------------
/libmach/device_reply.pres:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 1994 The University of Utah and
3 | * the Computer Systems Laboratory at the University of Utah (CSL).
4 | * All rights reserved.
5 | *
6 | * Permission to use, copy, modify and distribute this software is hereby
7 | * granted provided that (1) source code retains these copyright, permission,
8 | * and disclaimer notices, and (2) redistributions including binaries
9 | * reproduce the notices in supporting documentation, and (3) all advertising
10 | * materials mentioning features or use of this software display the following
11 | * acknowledgement: ``This product includes software developed by the
12 | * Computer Systems Laboratory at the University of Utah.''
13 | *
14 | * THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS
15 | * IS" CONDITION. THE UNIVERSITY OF UTAH AND CSL DISCLAIM ANY LIABILITY OF
16 | * ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
17 | *
18 | * CSL requests users of this software to return to csl-dist@cs.utah.edu any
19 | * improvements that they make and grant CSL redistribution rights.
20 | *
21 | * Author: Bryan Ford, University of Utah CSL
22 | */
23 | #include
24 |
--------------------------------------------------------------------------------
/libmach/device_request.pres:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 1994 The University of Utah and
3 | * the Computer Systems Laboratory at the University of Utah (CSL).
4 | * All rights reserved.
5 | *
6 | * Permission to use, copy, modify and distribute this software is hereby
7 | * granted provided that (1) source code retains these copyright, permission,
8 | * and disclaimer notices, and (2) redistributions including binaries
9 | * reproduce the notices in supporting documentation, and (3) all advertising
10 | * materials mentioning features or use of this software display the following
11 | * acknowledgement: ``This product includes software developed by the
12 | * Computer Systems Laboratory at the University of Utah.''
13 | *
14 | * THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS
15 | * IS" CONDITION. THE UNIVERSITY OF UTAH AND CSL DISCLAIM ANY LIABILITY OF
16 | * ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
17 | *
18 | * CSL requests users of this software to return to csl-dist@cs.utah.edu any
19 | * improvements that they make and grant CSL redistribution rights.
20 | *
21 | * Author: Bryan Ford, University of Utah CSL
22 | */
23 | #include
24 |
--------------------------------------------------------------------------------
/libmach/exc.pres:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 1994 The University of Utah and
3 | * the Computer Systems Laboratory at the University of Utah (CSL).
4 | * All rights reserved.
5 | *
6 | * Permission to use, copy, modify and distribute this software is hereby
7 | * granted provided that (1) source code retains these copyright, permission,
8 | * and disclaimer notices, and (2) redistributions including binaries
9 | * reproduce the notices in supporting documentation, and (3) all advertising
10 | * materials mentioning features or use of this software display the following
11 | * acknowledgement: ``This product includes software developed by the
12 | * Computer Systems Laboratory at the University of Utah.''
13 | *
14 | * THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS
15 | * IS" CONDITION. THE UNIVERSITY OF UTAH AND CSL DISCLAIM ANY LIABILITY OF
16 | * ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
17 | *
18 | * CSL requests users of this software to return to csl-dist@cs.utah.edu any
19 | * improvements that they make and grant CSL redistribution rights.
20 | *
21 | * Author: Bryan Ford, University of Utah CSL
22 | */
23 | #include
24 |
--------------------------------------------------------------------------------
/libmach/exec/Makerules:
--------------------------------------------------------------------------------
1 |
2 | #
3 | # Copyright (c) 1994 The University of Utah and
4 | # the Computer Systems Laboratory (CSL). All rights reserved.
5 | #
6 | # Permission to use, copy, modify and distribute this software and its
7 | # documentation is hereby granted, provided that both the copyright
8 | # notice and this permission notice appear in all copies of the
9 | # software, derivative works or modified versions, and any portions
10 | # thereof, and that both notices appear in supporting documentation.
11 | #
12 | # THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS
13 | # IS" CONDITION. THE UNIVERSITY OF UTAH AND CSL DISCLAIM ANY LIABILITY OF
14 | # ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
15 | #
16 | # CSL requests users of this software to return to csl-dist@cs.utah.edu any
17 | # improvements that they make and grant CSL redistribution rights.
18 | #
19 | # Author: Bryan Ford, University of Utah CSL
20 | #
21 | ifndef _mach4_libmach_exec_makerules_
22 | _mach4_libmach_exec_makerules_ = yes
23 |
24 | TARGET := libmach_exec.a
25 |
26 | SRCDIRS += $(GSRCDIR)/libmach/exec
27 |
28 | include $(GSRCDIR)/Makerules.lib
29 |
30 | endif
31 |
--------------------------------------------------------------------------------
/libmach/exec/objfmts.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 1995 The University of Utah and
3 | * the Computer Systems Laboratory at the University of Utah (CSL).
4 | * All rights reserved.
5 | *
6 | * Permission to use, copy, modify and distribute this software is hereby
7 | * granted provided that (1) source code retains these copyright, permission,
8 | * and disclaimer notices, and (2) redistributions including binaries
9 | * reproduce the notices in supporting documentation, and (3) all advertising
10 | * materials mentioning features or use of this software display the following
11 | * acknowledgement: ``This product includes software developed by the
12 | * Computer Systems Laboratory at the University of Utah.''
13 | *
14 | * THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS
15 | * IS" CONDITION. THE UNIVERSITY OF UTAH AND CSL DISCLAIM ANY LIABILITY OF
16 | * ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
17 | *
18 | * CSL requests users of this software to return to csl-dist@cs.utah.edu any
19 | * improvements that they make and grant CSL redistribution rights.
20 | *
21 | * Author: Bryan Ford, University of Utah CSL
22 | */
23 |
24 | objfmt(elf)
25 |
26 |
--------------------------------------------------------------------------------
/libmach/lmm/lmm_avail_in.c:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 1995 The University of Utah and
3 | * the Computer Systems Laboratory at the University of Utah (CSL).
4 | * All rights reserved.
5 | *
6 | * Permission to use, copy, modify and distribute this software is hereby
7 | * granted provided that (1) source code retains these copyright, permission,
8 | * and disclaimer notices, and (2) redistributions including binaries
9 | * reproduce the notices in supporting documentation, and (3) all advertising
10 | * materials mentioning features or use of this software display the following
11 | * acknowledgement: ``This product includes software developed by the
12 | * Computer Systems Laboratory at the University of Utah.''
13 | *
14 | * THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS
15 | * IS" CONDITION. THE UNIVERSITY OF UTAH AND CSL DISCLAIM ANY LIABILITY OF
16 | * ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
17 | *
18 | * CSL requests users of this software to return to csl-dist@cs.utah.edu any
19 | * improvements that they make and grant CSL redistribution rights.
20 | *
21 | * Author: Bryan Ford, University of Utah CSL
22 | */
23 | #if 0
24 |
25 | #include "lmm.h"
26 |
27 | void lmm_avail_in(unsigned flags, vm_offset_t addr, vm_size_t size)
28 | {
29 | }
30 |
31 | #endif
32 |
--------------------------------------------------------------------------------
/libmach/lmm/lmm_init.c:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 1995 The University of Utah and
3 | * the Computer Systems Laboratory at the University of Utah (CSL).
4 | * All rights reserved.
5 | *
6 | * Permission to use, copy, modify and distribute this software is hereby
7 | * granted provided that (1) source code retains these copyright, permission,
8 | * and disclaimer notices, and (2) redistributions including binaries
9 | * reproduce the notices in supporting documentation, and (3) all advertising
10 | * materials mentioning features or use of this software display the following
11 | * acknowledgement: ``This product includes software developed by the
12 | * Computer Systems Laboratory at the University of Utah.''
13 | *
14 | * THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS
15 | * IS" CONDITION. THE UNIVERSITY OF UTAH AND CSL DISCLAIM ANY LIABILITY OF
16 | * ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
17 | *
18 | * CSL requests users of this software to return to csl-dist@cs.utah.edu any
19 | * improvements that they make and grant CSL redistribution rights.
20 | *
21 | * Author: Bryan Ford, University of Utah CSL
22 | */
23 |
24 | #include "lmm.h"
25 |
26 | void lmm_init(lmm_t *lmm)
27 | {
28 | lmm->regions = 0;
29 | }
30 |
31 |
--------------------------------------------------------------------------------
/libmach/mach4_interface.pres:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 1994 The University of Utah and
3 | * the Computer Systems Laboratory at the University of Utah (CSL).
4 | * All rights reserved.
5 | *
6 | * Permission to use, copy, modify and distribute this software is hereby
7 | * granted provided that (1) source code retains these copyright, permission,
8 | * and disclaimer notices, and (2) redistributions including binaries
9 | * reproduce the notices in supporting documentation, and (3) all advertising
10 | * materials mentioning features or use of this software display the following
11 | * acknowledgement: ``This product includes software developed by the
12 | * Computer Systems Laboratory at the University of Utah.''
13 | *
14 | * THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS
15 | * IS" CONDITION. THE UNIVERSITY OF UTAH AND CSL DISCLAIM ANY LIABILITY OF
16 | * ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
17 | *
18 | * CSL requests users of this software to return to csl-dist@cs.utah.edu any
19 | * improvements that they make and grant CSL redistribution rights.
20 | *
21 | * Author: Bryan Ford, University of Utah CSL
22 | */
23 | #include
24 |
--------------------------------------------------------------------------------
/libmach/mach_debug.pres:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 1994 The University of Utah and
3 | * the Computer Systems Laboratory at the University of Utah (CSL).
4 | * All rights reserved.
5 | *
6 | * Permission to use, copy, modify and distribute this software is hereby
7 | * granted provided that (1) source code retains these copyright, permission,
8 | * and disclaimer notices, and (2) redistributions including binaries
9 | * reproduce the notices in supporting documentation, and (3) all advertising
10 | * materials mentioning features or use of this software display the following
11 | * acknowledgement: ``This product includes software developed by the
12 | * Computer Systems Laboratory at the University of Utah.''
13 | *
14 | * THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS
15 | * IS" CONDITION. THE UNIVERSITY OF UTAH AND CSL DISCLAIM ANY LIABILITY OF
16 | * ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
17 | *
18 | * CSL requests users of this software to return to csl-dist@cs.utah.edu any
19 | * improvements that they make and grant CSL redistribution rights.
20 | *
21 | * Author: Bryan Ford, University of Utah CSL
22 | */
23 | #include
24 |
--------------------------------------------------------------------------------
/libmach/mach_host.pres:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 1994 The University of Utah and
3 | * the Computer Systems Laboratory at the University of Utah (CSL).
4 | * All rights reserved.
5 | *
6 | * Permission to use, copy, modify and distribute this software is hereby
7 | * granted provided that (1) source code retains these copyright, permission,
8 | * and disclaimer notices, and (2) redistributions including binaries
9 | * reproduce the notices in supporting documentation, and (3) all advertising
10 | * materials mentioning features or use of this software display the following
11 | * acknowledgement: ``This product includes software developed by the
12 | * Computer Systems Laboratory at the University of Utah.''
13 | *
14 | * THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS
15 | * IS" CONDITION. THE UNIVERSITY OF UTAH AND CSL DISCLAIM ANY LIABILITY OF
16 | * ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
17 | *
18 | * CSL requests users of this software to return to csl-dist@cs.utah.edu any
19 | * improvements that they make and grant CSL redistribution rights.
20 | *
21 | * Author: Bryan Ford, University of Utah CSL
22 | */
23 | #include
24 |
--------------------------------------------------------------------------------
/libmach/memory_object_default.pres:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 1994 The University of Utah and
3 | * the Computer Systems Laboratory at the University of Utah (CSL).
4 | * All rights reserved.
5 | *
6 | * Permission to use, copy, modify and distribute this software is hereby
7 | * granted provided that (1) source code retains these copyright, permission,
8 | * and disclaimer notices, and (2) redistributions including binaries
9 | * reproduce the notices in supporting documentation, and (3) all advertising
10 | * materials mentioning features or use of this software display the following
11 | * acknowledgement: ``This product includes software developed by the
12 | * Computer Systems Laboratory at the University of Utah.''
13 | *
14 | * THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS
15 | * IS" CONDITION. THE UNIVERSITY OF UTAH AND CSL DISCLAIM ANY LIABILITY OF
16 | * ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
17 | *
18 | * CSL requests users of this software to return to csl-dist@cs.utah.edu any
19 | * improvements that they make and grant CSL redistribution rights.
20 | *
21 | * Author: Bryan Ford, University of Utah CSL
22 | */
23 | #include
24 |
--------------------------------------------------------------------------------
/libmach/memory_object_user.pres:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 1994 The University of Utah and
3 | * the Computer Systems Laboratory at the University of Utah (CSL).
4 | * All rights reserved.
5 | *
6 | * Permission to use, copy, modify and distribute this software is hereby
7 | * granted provided that (1) source code retains these copyright, permission,
8 | * and disclaimer notices, and (2) redistributions including binaries
9 | * reproduce the notices in supporting documentation, and (3) all advertising
10 | * materials mentioning features or use of this software display the following
11 | * acknowledgement: ``This product includes software developed by the
12 | * Computer Systems Laboratory at the University of Utah.''
13 | *
14 | * THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS
15 | * IS" CONDITION. THE UNIVERSITY OF UTAH AND CSL DISCLAIM ANY LIABILITY OF
16 | * ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
17 | *
18 | * CSL requests users of this software to return to csl-dist@cs.utah.edu any
19 | * improvements that they make and grant CSL redistribution rights.
20 | *
21 | * Author: Bryan Ford, University of Utah CSL
22 | */
23 | #include
24 |
--------------------------------------------------------------------------------
/libmach/notify_user.pres:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 1994 The University of Utah and
3 | * the Computer Systems Laboratory at the University of Utah (CSL).
4 | * All rights reserved.
5 | *
6 | * Permission to use, copy, modify and distribute this software is hereby
7 | * granted provided that (1) source code retains these copyright, permission,
8 | * and disclaimer notices, and (2) redistributions including binaries
9 | * reproduce the notices in supporting documentation, and (3) all advertising
10 | * materials mentioning features or use of this software display the following
11 | * acknowledgement: ``This product includes software developed by the
12 | * Computer Systems Laboratory at the University of Utah.''
13 | *
14 | * THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS
15 | * IS" CONDITION. THE UNIVERSITY OF UTAH AND CSL DISCLAIM ANY LIABILITY OF
16 | * ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
17 | *
18 | * CSL requests users of this software to return to csl-dist@cs.utah.edu any
19 | * improvements that they make and grant CSL redistribution rights.
20 | *
21 | * Author: Bryan Ford, University of Utah CSL
22 | */
23 | #include
24 |
--------------------------------------------------------------------------------
/libmach/servers/machid.pres:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 1994 The University of Utah and
3 | * the Computer Systems Laboratory at the University of Utah (CSL).
4 | * All rights reserved.
5 | *
6 | * Permission to use, copy, modify and distribute this software is hereby
7 | * granted provided that (1) source code retains these copyright, permission,
8 | * and disclaimer notices, and (2) redistributions including binaries
9 | * reproduce the notices in supporting documentation, and (3) all advertising
10 | * materials mentioning features or use of this software display the following
11 | * acknowledgement: ``This product includes software developed by the
12 | * Computer Systems Laboratory at the University of Utah.''
13 | *
14 | * THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS
15 | * IS" CONDITION. THE UNIVERSITY OF UTAH AND CSL DISCLAIM ANY LIABILITY OF
16 | * ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
17 | *
18 | * CSL requests users of this software to return to csl-dist@cs.utah.edu any
19 | * improvements that they make and grant CSL redistribution rights.
20 | *
21 | * Author: Bryan Ford, University of Utah CSL
22 | */
23 | #include
24 |
--------------------------------------------------------------------------------
/libmach/servers/machid_debug.pres:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 1994 The University of Utah and
3 | * the Computer Systems Laboratory at the University of Utah (CSL).
4 | * All rights reserved.
5 | *
6 | * Permission to use, copy, modify and distribute this software is hereby
7 | * granted provided that (1) source code retains these copyright, permission,
8 | * and disclaimer notices, and (2) redistributions including binaries
9 | * reproduce the notices in supporting documentation, and (3) all advertising
10 | * materials mentioning features or use of this software display the following
11 | * acknowledgement: ``This product includes software developed by the
12 | * Computer Systems Laboratory at the University of Utah.''
13 | *
14 | * THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS
15 | * IS" CONDITION. THE UNIVERSITY OF UTAH AND CSL DISCLAIM ANY LIABILITY OF
16 | * ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
17 | *
18 | * CSL requests users of this software to return to csl-dist@cs.utah.edu any
19 | * improvements that they make and grant CSL redistribution rights.
20 | *
21 | * Author: Bryan Ford, University of Utah CSL
22 | */
23 | #include
24 |
--------------------------------------------------------------------------------
/libmach/servers/machid_dpager.pres:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 1994 The University of Utah and
3 | * the Computer Systems Laboratory at the University of Utah (CSL).
4 | * All rights reserved.
5 | *
6 | * Permission to use, copy, modify and distribute this software is hereby
7 | * granted provided that (1) source code retains these copyright, permission,
8 | * and disclaimer notices, and (2) redistributions including binaries
9 | * reproduce the notices in supporting documentation, and (3) all advertising
10 | * materials mentioning features or use of this software display the following
11 | * acknowledgement: ``This product includes software developed by the
12 | * Computer Systems Laboratory at the University of Utah.''
13 | *
14 | * THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS
15 | * IS" CONDITION. THE UNIVERSITY OF UTAH AND CSL DISCLAIM ANY LIABILITY OF
16 | * ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
17 | *
18 | * CSL requests users of this software to return to csl-dist@cs.utah.edu any
19 | * improvements that they make and grant CSL redistribution rights.
20 | *
21 | * Author: Bryan Ford, University of Utah CSL
22 | */
23 | #include
24 |
--------------------------------------------------------------------------------
/libmach/servers/netname.pres:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 1994 The University of Utah and
3 | * the Computer Systems Laboratory at the University of Utah (CSL).
4 | * All rights reserved.
5 | *
6 | * Permission to use, copy, modify and distribute this software is hereby
7 | * granted provided that (1) source code retains these copyright, permission,
8 | * and disclaimer notices, and (2) redistributions including binaries
9 | * reproduce the notices in supporting documentation, and (3) all advertising
10 | * materials mentioning features or use of this software display the following
11 | * acknowledgement: ``This product includes software developed by the
12 | * Computer Systems Laboratory at the University of Utah.''
13 | *
14 | * THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS
15 | * IS" CONDITION. THE UNIVERSITY OF UTAH AND CSL DISCLAIM ANY LIABILITY OF
16 | * ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
17 | *
18 | * CSL requests users of this software to return to csl-dist@cs.utah.edu any
19 | * improvements that they make and grant CSL redistribution rights.
20 | *
21 | * Author: Bryan Ford, University of Utah CSL
22 | */
23 | #include
24 |
--------------------------------------------------------------------------------
/libmach/standalone/Makerules:
--------------------------------------------------------------------------------
1 |
2 | #
3 | # Copyright (c) 1994 The University of Utah and
4 | # the Computer Systems Laboratory (CSL). All rights reserved.
5 | #
6 | # Permission to use, copy, modify and distribute this software and its
7 | # documentation is hereby granted, provided that both the copyright
8 | # notice and this permission notice appear in all copies of the
9 | # software, derivative works or modified versions, and any portions
10 | # thereof, and that both notices appear in supporting documentation.
11 | #
12 | # THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS
13 | # IS" CONDITION. THE UNIVERSITY OF UTAH AND CSL DISCLAIM ANY LIABILITY OF
14 | # ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
15 | #
16 | # CSL requests users of this software to return to csl-dist@cs.utah.edu any
17 | # improvements that they make and grant CSL redistribution rights.
18 | #
19 | # Author: Bryan Ford, University of Utah CSL
20 | #
21 | ifndef _mach4_libmach_standalone_makerules_
22 | _mach4_libmach_standalone_makerules_ = yes
23 |
24 | SRCDIRS += $(GSRCDIR)/libmach/standalone $(GSRCDIR)/libmach/c $(GSRCDIR)/libmach
25 |
26 | include $(GSRCDIR)/Makerules.lib
27 |
28 | endif
29 |
--------------------------------------------------------------------------------
/libmach/standalone/_exit.c:
--------------------------------------------------------------------------------
1 | /*
2 | * Mach Operating System
3 | * Copyright (c) 1993-1989 Carnegie Mellon University
4 | * All Rights Reserved.
5 | *
6 | * Permission to use, copy, modify and distribute this software and its
7 | * documentation is hereby granted, provided that both the copyright
8 | * notice and this permission notice appear in all copies of the
9 | * software, derivative works or modified versions, and any portions
10 | * thereof, and that both notices appear in supporting documentation.
11 | *
12 | * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
13 | * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
14 | * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
15 | *
16 | * Carnegie Mellon requests users of this software to return to
17 | *
18 | * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
19 | * School of Computer Science
20 | * Carnegie Mellon University
21 | * Pittsburgh PA 15213-3890
22 | *
23 | * any improvements or extensions that they make and grant Carnegie Mellon
24 | * the rights to redistribute these changes.
25 | */
26 |
27 | #include
28 |
29 | void _exit(code)
30 | int code;
31 | {
32 | for (;;) {
33 | /* shouldn't return, but just in case... */
34 | (void) task_terminate(mach_task_self());
35 | }
36 | }
37 |
38 |
--------------------------------------------------------------------------------
/libmach/standalone/mach_init_sa.c:
--------------------------------------------------------------------------------
1 | /*
2 | * Mach Operating System
3 | * Copyright (c) 1991,1990,1989,1988,1987 Carnegie Mellon University
4 | * All Rights Reserved.
5 | *
6 | * Permission to use, copy, modify and distribute this software and its
7 | * documentation is hereby granted, provided that both the copyright
8 | * notice and this permission notice appear in all copies of the
9 | * software, derivative works or modified versions, and any portions
10 | * thereof, and that both notices appear in supporting documentation.
11 | *
12 | * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
13 | * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
14 | * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
15 | *
16 | * Carnegie Mellon requests users of this software to return to
17 | *
18 | * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
19 | * School of Computer Science
20 | * Carnegie Mellon University
21 | * Pittsburgh PA 15213-3890
22 | *
23 | * any improvements or extensions that they make and grant Carnegie Mellon
24 | * the rights to redistribute these changes.
25 | */
26 | /*
27 | * For stand-alone use, the registered ports (name_server_port, etc)
28 | * are not defined.
29 | */
30 |
31 | void mach_init_ports()
32 | {
33 | }
34 |
--------------------------------------------------------------------------------
/libmach/unixoid/Ovfork.c:
--------------------------------------------------------------------------------
1 | /*
2 | * Mach Operating System
3 | * Copyright (c) 1991,1990 Carnegie Mellon University
4 | * All Rights Reserved.
5 | *
6 | * Permission to use, copy, modify and distribute this software and its
7 | * documentation is hereby granted, provided that both the copyright
8 | * notice and this permission notice appear in all copies of the
9 | * software, derivative works or modified versions, and any portions
10 | * thereof, and that both notices appear in supporting documentation.
11 | *
12 | * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS
13 | * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
14 | * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
15 | *
16 | * Carnegie Mellon requests users of this software to return to
17 | *
18 | * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
19 | * School of Computer Science
20 | * Carnegie Mellon University
21 | * Pittsburgh PA 15213-3890
22 | *
23 | * any improvements or extensions that they make and grant Carnegie the
24 | * rights to redistribute these changes.
25 | */
26 | /*
27 | * Just calls fork, as the vfork kernel call no longer
28 | * does anything different from fork. The fork program calls
29 | * mach_init for the child.
30 | */
31 |
32 | int vfork()
33 | {
34 | return(fork());
35 | }
36 |
--------------------------------------------------------------------------------
/libthreads/options.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Mach Operating System
3 | * Copyright (c) 1991,1990,1989 Carnegie Mellon University
4 | * All Rights Reserved.
5 | *
6 | * Permission to use, copy, modify and distribute this software and its
7 | * documentation is hereby granted, provided that both the copyright
8 | * notice and this permission notice appear in all copies of the
9 | * software, derivative works or modified versions, and any portions
10 | * thereof, and that both notices appear in supporting documentation.
11 | *
12 | * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
13 | * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
14 | * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
15 | *
16 | * Carnegie Mellon requests users of this software to return to
17 | *
18 | * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
19 | * School of Computer Science
20 | * Carnegie Mellon University
21 | * Pittsburgh PA 15213-3890
22 | *
23 | * any improvements or extensions that they make and grant Carnegie Mellon
24 | * the rights to redistribute these changes.
25 | */
26 | /*
27 | * options.h
28 | */
29 |
30 | /*#define STATISTICS*/
31 | #define SPIN_RESCHED
32 | /*#define CHECK_STATUS*/
33 | /*#define RED_ZONE*/
34 | #define WAIT_DEBUG
35 |
--------------------------------------------------------------------------------
/mig/alloc.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Mach Operating System
3 | * Copyright (c) 1991,1990 Carnegie Mellon University
4 | * All Rights Reserved.
5 | *
6 | * Permission to use, copy, modify and distribute this software and its
7 | * documentation is hereby granted, provided that both the copyright
8 | * notice and this permission notice appear in all copies of the
9 | * software, derivative works or modified versions, and any portions
10 | * thereof, and that both notices appear in supporting documentation.
11 | *
12 | * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS
13 | * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
14 | * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
15 | *
16 | * Carnegie Mellon requests users of this software to return to
17 | *
18 | * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
19 | * School of Computer Science
20 | * Carnegie Mellon University
21 | * Pittsburgh PA 15213-3890
22 | *
23 | * any improvements or extensions that they make and grant Carnegie the
24 | * rights to redistribute these changes.
25 | */
26 |
27 | #ifndef _ALLOC_H
28 | #define _ALLOC_H
29 |
30 | extern char *malloc();
31 | extern char *calloc();
32 | extern void free();
33 |
34 | #endif _ALLOC_H
35 |
--------------------------------------------------------------------------------
/mig/lexxer.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Mach Operating System
3 | * Copyright (c) 1991,1990 Carnegie Mellon University
4 | * All Rights Reserved.
5 | *
6 | * Permission to use, copy, modify and distribute this software and its
7 | * documentation is hereby granted, provided that both the copyright
8 | * notice and this permission notice appear in all copies of the
9 | * software, derivative works or modified versions, and any portions
10 | * thereof, and that both notices appear in supporting documentation.
11 | *
12 | * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS
13 | * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
14 | * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
15 | *
16 | * Carnegie Mellon requests users of this software to return to
17 | *
18 | * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
19 | * School of Computer Science
20 | * Carnegie Mellon University
21 | * Pittsburgh PA 15213-3890
22 | *
23 | * any improvements or extensions that they make and grant Carnegie the
24 | * rights to redistribute these changes.
25 | */
26 |
27 | extern int lineno;
28 | extern char *inname;
29 |
30 | extern void LookFileName(void);
31 | extern void LookString(void);
32 | extern void LookQString(void);
33 | extern void LookNormal(void);
34 |
--------------------------------------------------------------------------------