File: NetBSD-1.1.diffs

package info (click to toggle)
clisp 1%3A2.27-0.5
  • links: PTS
  • area: main
  • in suites: woody
  • size: 49,860 kB
  • ctags: 20,752
  • sloc: ansic: 123,781; lisp: 67,533; asm: 19,633; xml: 11,766; sh: 9,788; fortran: 8,307; makefile: 3,570; objc: 2,481; perl: 1,744; java: 341; yacc: 318; sed: 117
file content (52 lines) | stat: -rw-r--r-- 1,392 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
-=-=-=-=-=-
Kernel configuration

To use generational GC under FreeBSD 2.1 and NetBSD 1.1 requires the
appropriate configuration of the kernel and in the case of NetBSD a
small kernel hack:

1. For clisp to use shared memory and thus generational GC the size of
SHMSEG needs to be increased.

To do this under FreeBSD 2.1, just add the following line to your
config file:
options		"SHMSEG=200"

Under NetBSD 1.1, edit the param.c file in the compile directory; you
may need to run 'make param.c' first.

2. Further to use generational GC under NetBSD requires a small hack
to the kernel. The following two patches, against NetBSD 1.1 kernel
sources, add the ability to return the address of a protection
fault. Note: this is compatible with the FreeBSD implementation, and
is also useful with gcl to implement SGC.

*** i386/machdep.c.orig	Mon Oct 16 12:43:28 1995
--- i386/machdep.c	Mon Nov 13 03:07:46 1995
***************
*** 532,537 ****
--- 532,538 ----
  
  	frame.sf_code = code;
  	frame.sf_scp = &fp->sf_sc;
+ 	frame.sf_addr = (char *)rcr2();
  	frame.sf_handler = catcher;
  
  	/*

*** include/frame.h.orig	Sat Oct 14 11:57:34 1995
--- include/frame.h	Mon Nov 13 03:09:01 1995
***************
*** 117,122 ****
--- 117,123 ----
  	int	sf_signum;
  	int	sf_code;
  	struct	sigcontext *sf_scp;
+ 	char    *sf_addr;
  	sig_t	sf_handler;
  	struct	sigcontext sf_sc;
  };

-=-=-=-=-=-