Skip to content
Snippets Groups Projects
Commit 8524260d authored by rtoy's avatar rtoy
Browse files

Based on some discussions on #lisp, allocate-vector for ppc needs to

write a word to the vector to make sure it's paged in, like on sparc.
parent 0462b4d4
No related branches found
No related tags found
No related merge requests found
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
;;; Scott Fahlman (FAHLMAN@CMUC). ;;; Scott Fahlman (FAHLMAN@CMUC).
;;; ********************************************************************** ;;; **********************************************************************
;;; ;;;
;;; $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/assembly/ppc/array.lisp,v 1.4 2004/09/08 02:10:54 rtoy Exp $ ;;; $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/assembly/ppc/array.lisp,v 1.5 2005/04/16 14:42:19 rtoy Exp $
;;; ;;;
;;; This file contains the support routines for arrays and vectors. ;;; This file contains the support routines for arrays and vectors.
;;; ;;;
...@@ -37,6 +37,9 @@ ...@@ -37,6 +37,9 @@
(inst srwi ndescr type vm:word-shift) (inst srwi ndescr type vm:word-shift)
(storew ndescr vector 0 vm:other-pointer-type) (storew ndescr vector 0 vm:other-pointer-type)
(storew length vector vm:vector-length-slot vm:other-pointer-type)) (storew length vector vm:vector-length-slot vm:other-pointer-type))
;; Like the sparc port, we need to touch the last word to make sure
;; this page is paged in. Do we need to touch all pages?
(storew zero-tn alloc-tn -1)
(move result vector)) (move result vector))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment