equal
deleted
inserted
replaced
23 #ifdef __WINS__ |
23 #ifdef __WINS__ |
24 #include <emulator.h> |
24 #include <emulator.h> |
25 #include <e32wins.h> |
25 #include <e32wins.h> |
26 #endif |
26 #endif |
27 #include "d32btrace.h" |
27 #include "d32btrace.h" |
28 |
|
29 // define this macro to enable tracing very early on in the boot sequence |
|
30 //#define __ENABLE_TRACE__ |
|
31 |
28 |
32 #ifdef __EPOC32__ |
29 #ifdef __EPOC32__ |
33 _LIT(KStartupExeSysBinName,"Z:\\Sys\\Bin\\ESTART.EXE"); |
30 _LIT(KStartupExeSysBinName,"Z:\\Sys\\Bin\\ESTART.EXE"); |
34 #else |
31 #else |
35 _LIT(KStartupExeName,"E32STRT.EXE"); |
32 _LIT(KStartupExeName,"E32STRT.EXE"); |
284 |
281 |
285 __PRINT(_L("StartupThread")); |
282 __PRINT(_L("StartupThread")); |
286 User::SetCritical(User::ESystemCritical); |
283 User::SetCritical(User::ESystemCritical); |
287 |
284 |
288 TInt r; |
285 TInt r; |
289 #ifdef SYMBIAN_FTRACE_ENABLE |
|
290 r = User::LoadLogicalDevice(_L("D_FTRACE")); |
|
291 __PRINT1(_L("User::LoadLogicalDevice(D_FTRACE) returns %d"),r); |
|
292 __ASSERT_ALWAYS(r==KErrNone || r==KErrAlreadyExists,Fault(ETraceLddLoadFailure)); |
|
293 |
|
294 r = TheFtrace.Open(EOwnerProcess); |
|
295 __ASSERT_ALWAYS(r==KErrNone || r==KErrAlreadyExists,Fault(ETraceLddLoadFailure)); |
|
296 #endif |
|
297 |
|
298 #if defined (__ENABLE_TRACE__) |
|
299 { |
|
300 RBTrace trace; |
|
301 |
|
302 trace.Open(); |
|
303 |
|
304 // trace.SetMode(RBTrace::EEnable + RBTrace::EFreeRunning); |
|
305 trace.SetFilter(BTrace::EThreadIdentification,1); |
|
306 |
|
307 trace.SetFilter(UTF::EBorder,1); |
|
308 trace.SetFilter(UTF::EError,1); |
|
309 |
|
310 trace.SetFilter2(EF32TraceUidEfsrv,1); |
|
311 // trace.SetFilter2(EF32TraceUidFileSys,1); |
|
312 // trace.SetFilter2(EF32TraceUidProxyDrive,1); |
|
313 |
|
314 trace.Close(); |
|
315 } |
|
316 |
|
317 #endif |
|
318 |
286 |
319 // |
287 // |
320 // Load the file system's device driver |
288 // Load the file system's device driver |
321 // |
289 // |
322 r=User::LoadLogicalDevice(KMediaLddName); |
290 r=User::LoadLogicalDevice(KMediaLddName); |