Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 387
b: refs/heads/master
c: df6c680
h: refs/heads/master
i:
  385: c63cba4
  383: 489d8ed
v: v3
  • Loading branch information
Ashok Raj authored and Tony Luck committed Apr 22, 2005
1 parent 0b319b0 commit be26b9d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b8d8b883e6f029e99c35c88f853501740e322131
refs/heads/master: df6c6804ce1d383c878ab071bce8125125d96abc
10 changes: 7 additions & 3 deletions trunk/arch/ia64/kernel/head.S
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,10 @@ RestRR: \
add _idx1=1,_idx1;; \
br.cloop.sptk.few RestRR

#define SET_AREA_FOR_BOOTING_CPU(reg1, reg2) \
movl reg1=sal_state_for_booting_cpu;; \
ld8 reg2=[reg1];;

/*
* Adjust region registers saved before starting to save
* break regs and rest of the states that need to be preserved.
Expand Down Expand Up @@ -150,7 +154,8 @@ RestRR: \
stf.spill.nta [_reg1]=f31,16;;

#else
#define SAL_TO_OS_BOOT_HANDOFF_STATE_SAVE(a1,a2)
#define SET_AREA_FOR_BOOTING_CPU(a1, a2)
#define SAL_TO_OS_BOOT_HANDOFF_STATE_SAVE(a1,a2, a3)
#define SAVE_REGION_REGS(_tmp, _r0, _r1, _r2, _r3, _r4, _r5, _r6, _r7)
#define STORE_REGION_REGS(ptr, _r0, _r1, _r2, _r3, _r4, _r5, _r6, _r7)
#endif
Expand Down Expand Up @@ -260,8 +265,7 @@ start_ap:
;;
1: // now we are in virtual mode

movl r2=sal_state_for_booting_cpu;;
ld8 r16=[r2];;
SET_AREA_FOR_BOOTING_CPU(r2, r16);

STORE_REGION_REGS(r16, r8,r9,r10,r11,r12,r13,r14,r15);
SAL_TO_OS_BOOT_HANDOFF_STATE_SAVE(r16,r17,r25)
Expand Down

0 comments on commit be26b9d

Please sign in to comment.