Deleted Added
full compact
swtch32.S (90643) swtch32.S (91467)
1/* $FreeBSD: head/sys/powerpc/aim/swtch.S 90643 2002-02-14 01:39:11Z benno $ */
1/* $FreeBSD: head/sys/powerpc/aim/swtch.S 91467 2002-02-28 03:24:07Z benno $ */
2/* $NetBSD: locore.S,v 1.24 2000/05/31 05:09:17 thorpej Exp $ */
3
4/*
5 * Copyright (C) 2001 Benno Rice
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions

--- 106 unchanged lines hidden (view full) ---

116 * savectx(pcb)
117 * Update pcb, saving current processor state
118 */
119ENTRY(savectx)
120 stmw %r14,PCB_CONTEXT(%r3) /* Save the non-volatile GP regs */
121 mfcr %r4 /* Save the condition register */
122 stw %r4,PCB_CONTEXT(%r3)
123 blr
2/* $NetBSD: locore.S,v 1.24 2000/05/31 05:09:17 thorpej Exp $ */
3
4/*
5 * Copyright (C) 2001 Benno Rice
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions

--- 106 unchanged lines hidden (view full) ---

116 * savectx(pcb)
117 * Update pcb, saving current processor state
118 */
119ENTRY(savectx)
120 stmw %r14,PCB_CONTEXT(%r3) /* Save the non-volatile GP regs */
121 mfcr %r4 /* Save the condition register */
122 stw %r4,PCB_CONTEXT(%r3)
123 blr
124
125/*
126 * fork_trampoline()
127 * Set up the return from cpu_fork()
128 */
129ENTRY(fork_trampoline)
130 lwz %r3,CF_FUNC(1)
131 lwz %r4,CF_ARG0(1)
132 lwz %r5,CF_ARG1(1)
133 bl fork_exit
134 rfi