12faa5f1271587cda765f26bcf2951065300a01ffElliott Hughes/*
22faa5f1271587cda765f26bcf2951065300a01ffElliott Hughes * Copyright (C) 2011 The Android Open Source Project
32faa5f1271587cda765f26bcf2951065300a01ffElliott Hughes *
42faa5f1271587cda765f26bcf2951065300a01ffElliott Hughes * Licensed under the Apache License, Version 2.0 (the "License");
52faa5f1271587cda765f26bcf2951065300a01ffElliott Hughes * you may not use this file except in compliance with the License.
62faa5f1271587cda765f26bcf2951065300a01ffElliott Hughes * You may obtain a copy of the License at
72faa5f1271587cda765f26bcf2951065300a01ffElliott Hughes *
82faa5f1271587cda765f26bcf2951065300a01ffElliott Hughes *      http://www.apache.org/licenses/LICENSE-2.0
92faa5f1271587cda765f26bcf2951065300a01ffElliott Hughes *
102faa5f1271587cda765f26bcf2951065300a01ffElliott Hughes * Unless required by applicable law or agreed to in writing, software
112faa5f1271587cda765f26bcf2951065300a01ffElliott Hughes * distributed under the License is distributed on an "AS IS" BASIS,
122faa5f1271587cda765f26bcf2951065300a01ffElliott Hughes * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
132faa5f1271587cda765f26bcf2951065300a01ffElliott Hughes * See the License for the specific language governing permissions and
142faa5f1271587cda765f26bcf2951065300a01ffElliott Hughes * limitations under the License.
152faa5f1271587cda765f26bcf2951065300a01ffElliott Hughes */
16b033c75ebda80ac75f936366fe78d1edf5cec937Ian Rogers
17578bbdc684db8ed68e9fedbc678669d27fa68b6eBrian Carlstrom#include "thread.h"
18b033c75ebda80ac75f936366fe78d1edf5cec937Ian Rogers
197655f29fabc0a12765de828914a18314382e5a35Ian Rogers#include "asm_support_arm.h"
207655f29fabc0a12765de828914a18314382e5a35Ian Rogers#include "base/logging.h"
21ff1ed4770bf7ff024a807b9f909b1a26abb78341Ian Rogers
22b033c75ebda80ac75f936366fe78d1edf5cec937Ian Rogersnamespace art {
23b033c75ebda80ac75f936366fe78d1edf5cec937Ian Rogers
24b033c75ebda80ac75f936366fe78d1edf5cec937Ian Rogersvoid Thread::InitCpu() {
25dd7624d2b9e599d57762d12031b10b89defc9807Ian Rogers  CHECK_EQ(THREAD_FLAGS_OFFSET, ThreadFlagsOffset<4>().Int32Value());
26dd7624d2b9e599d57762d12031b10b89defc9807Ian Rogers  CHECK_EQ(THREAD_CARD_TABLE_OFFSET, CardTableOffset<4>().Int32Value());
27dd7624d2b9e599d57762d12031b10b89defc9807Ian Rogers  CHECK_EQ(THREAD_EXCEPTION_OFFSET, ExceptionOffset<4>().Int32Value());
28dd7624d2b9e599d57762d12031b10b89defc9807Ian Rogers  CHECK_EQ(THREAD_ID_OFFSET, ThinLockIdOffset<4>().Int32Value());
29b033c75ebda80ac75f936366fe78d1edf5cec937Ian Rogers}
30b033c75ebda80ac75f936366fe78d1edf5cec937Ian Rogers
311efa0a9d6cd5f5b40b8a21d39f1103a3610250eeAlexei Zavjalovvoid Thread::CleanupCpu() {
321efa0a9d6cd5f5b40b8a21d39f1103a3610250eeAlexei Zavjalov  // Do nothing.
331efa0a9d6cd5f5b40b8a21d39f1103a3610250eeAlexei Zavjalov}
341efa0a9d6cd5f5b40b8a21d39f1103a3610250eeAlexei Zavjalov
35b033c75ebda80ac75f936366fe78d1edf5cec937Ian Rogers}  // namespace art
36